Skip to content

Commit 47ccbba

Browse files
re-add powerShellExePath to package.json so vscode api can update it and remove references to developer.powerShellExePath
1 parent 600de8c commit 47ccbba

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,12 @@
526526
"type": "string",
527527
"description": "Specifies the PowerShell version name, as displayed by the 'PowerShell: Show Session Menu' command, used when the extension loads e.g \"Windows PowerShell (x86)\" or \"PowerShell Core 6 (x64)\". You can specify additional PowerShell executables by using the \"powershell.powerShellAdditionalExePaths\" setting."
528528
},
529+
"powershell.powerShellExePath": {
530+
"type": "string",
531+
"default": "",
532+
"scope": "machine",
533+
"description": "REMOVED. Please use the \"powershell.powerShellDefaultVersion\" setting instead."
534+
},
529535
"powershell.promptToUpdatePowerShell": {
530536
"type": "boolean",
531537
"description": "Specifies whether you should be prompted to update your version of PowerShell.",

src/session.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -304,11 +304,6 @@ export class SessionManager implements Middleware {
304304
this.suppressRestartPrompt = true;
305305
try {
306306
await Settings.change("powerShellExePath", undefined, true);
307-
308-
// This has been deprecated for a while so siliently remove it if it's there.
309-
if (this.sessionSettings.developer.powerShellExePath) {
310-
await Settings.change("developer.powerShellExePath", undefined, true);
311-
}
312307
} finally {
313308
this.suppressRestartPrompt = false;
314309
}

src/settings.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ export interface IDebuggingSettings {
7070
export interface IDeveloperSettings {
7171
featureFlags?: string[];
7272
// This setting is no longer used but is here to assist in cleaning up the users settings.
73-
powerShellExePath?: string;
7473
bundledModulesPath?: string;
7574
editorServicesLogLevel?: string;
7675
editorServicesWaitForDebugger?: boolean;
@@ -123,7 +122,6 @@ export function load(): ISettings {
123122

124123
const defaultDeveloperSettings: IDeveloperSettings = {
125124
featureFlags: [],
126-
powerShellExePath: undefined,
127125
bundledModulesPath: "../../../PowerShellEditorServices/module",
128126
editorServicesLogLevel: "Normal",
129127
editorServicesWaitForDebugger: false,

0 commit comments

Comments
 (0)