Skip to content

Commit 7a3861f

Browse files
Add setting for the PackageManagement update feature (#2651)
Co-authored-by: Tyler Leonhardt (POWERSHELL) <[email protected]>
1 parent 45bc466 commit 7a3861f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

package.json

+5
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,11 @@
555555
"description": "Specifies whether you should be prompted to update your version of PowerShell.",
556556
"default": true
557557
},
558+
"powershell.promptToUpdatePackageManagement": {
559+
"type": "boolean",
560+
"description": "Specifies whether you should be prompted to update your version of PackageManagement if it's under 1.4.6.",
561+
"default": true
562+
},
558563
"powershell.startAsLoginShell.osx": {
559564
"type": "boolean",
560565
"default": true,

src/settings.ts

+3
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export interface ISettings {
8181
// This setting is no longer used but is here to assist in cleaning up the users settings.
8282
powerShellExePath?: string;
8383
promptToUpdatePowerShell?: boolean;
84+
promptToUpdatePackageManagement?: boolean;
8485
bundledModulesPath?: string;
8586
startAsLoginShell?: IStartAsLoginShellSettings;
8687
startAutomatically?: boolean;
@@ -201,6 +202,8 @@ export function load(): ISettings {
201202
configuration.get<string>("powerShellExePath", undefined),
202203
promptToUpdatePowerShell:
203204
configuration.get<boolean>("promptToUpdatePowerShell", true),
205+
promptToUpdatePackageManagement:
206+
configuration.get<boolean>("promptToUpdatePackageManagement", true),
204207
bundledModulesPath:
205208
"../../modules",
206209
useX86Host:

0 commit comments

Comments
 (0)