Skip to content

Commit b9eafbb

Browse files
Use powerShellDefaultVersion everywhere and stop using powerShellExePath (#2304)
* Use powerShellDefaultVersion everywhere and stop using powerShellExePath * add modify settings in session menu * re-add powerShellExePath to package.json so vscode api can update it and remove references to developer.powerShellExePath * actually use setting... * still switch even if workspace setting is set * rob's feedback
1 parent 0a5b5be commit b9eafbb

File tree

5 files changed

+95
-183
lines changed

5 files changed

+95
-183
lines changed

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -499,12 +499,6 @@
499499
"default": [],
500500
"description": "Specify array of Modules to exclude from Command Explorer listing."
501501
},
502-
"powershell.powerShellExePath": {
503-
"type": "string",
504-
"default": "",
505-
"scope": "machine",
506-
"description": "Specifies the full path to a PowerShell executable. Changes the installation of PowerShell used for language and debugging services."
507-
},
508502
"powershell.powerShellAdditionalExePaths": {
509503
"type": "array",
510504
"description": "Specifies an array of versionName / exePath pairs where exePath points to a non-standard install location for PowerShell and versionName can be used to reference this path with the powershell.powerShellDefaultVersion setting.",
@@ -530,7 +524,13 @@
530524
},
531525
"powershell.powerShellDefaultVersion": {
532526
"type": "string",
533-
"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)\"."
527+
"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."
528+
},
529+
"powershell.powerShellExePath": {
530+
"type": "string",
531+
"default": "",
532+
"scope": "machine",
533+
"description": "REMOVED. Please use the \"powershell.powerShellDefaultVersion\" setting instead."
534534
},
535535
"powershell.promptToUpdatePowerShell": {
536536
"type": "boolean",

src/features/GenerateBugReport.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ ${tableHeader}\n${table};
113113

114114
private getRuntimeInfo() {
115115

116-
const powerShellExePath = this.sessionManager.getPowerShellExePath();
116+
const powerShellExePath = this.sessionManager.PowerShellExeDetails.exePath;
117117
const powerShellArgs = [
118118
"-NoProfile",
119119
"-Command",

0 commit comments

Comments
 (0)