From 19a2dcec7672d512b33e25937eac3f7fc03a1f76 Mon Sep 17 00:00:00 2001 From: "Tyler Leonhardt (POWERSHELL)" Date: Mon, 20 Apr 2020 18:43:43 -0700 Subject: [PATCH] Add setting for the PackageManagement update feature --- package.json | 5 +++++ src/settings.ts | 3 +++ 2 files changed, 8 insertions(+) diff --git a/package.json b/package.json index f428a91059..0a565b4bbd 100644 --- a/package.json +++ b/package.json @@ -560,6 +560,11 @@ "description": "Specifies whether you should be prompted to update your version of PowerShell.", "default": true }, + "powershell.promptToUpdatePackageManagement": { + "type": "boolean", + "description": "Specifies whether you should be prompted to update your version of PackageManagement if it's under 1.4.6.", + "default": true + }, "powershell.startAsLoginShell.osx": { "type": "boolean", "default": true, diff --git a/src/settings.ts b/src/settings.ts index 9c81b2cc27..8c081f1428 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -80,6 +80,7 @@ export interface ISettings { // This setting is no longer used but is here to assist in cleaning up the users settings. powerShellExePath?: string; promptToUpdatePowerShell?: boolean; + promptToUpdatePackageManagement?: boolean; bundledModulesPath?: string; startAsLoginShell?: IStartAsLoginShellSettings; startAutomatically?: boolean; @@ -199,6 +200,8 @@ export function load(): ISettings { configuration.get("powerShellExePath", undefined), promptToUpdatePowerShell: configuration.get("promptToUpdatePowerShell", true), + promptToUpdatePackageManagement: + configuration.get("promptToUpdatePackageManagement", true), bundledModulesPath: "../../modules", useX86Host: