diff --git a/package.json b/package.json index fd49baae2e3b..0c5bdb9d1aac 100644 --- a/package.json +++ b/package.json @@ -587,18 +587,18 @@ "scope": "resource", "type": "string" }, - "python.interpreter.displayInfo": { - "default": "pythonContext", - "description": "%python.interpreter.displayInfo.description%", + "python.interpreter.infoVisibility": { + "default": "onPythonRelated", + "description": "%python.interpreter.infoVisibility.description%", "enum": [ "never", - "pythonContext", + "onPythonRelated", "always" ], "enumDescriptions": [ - "%python.interpreter.displayInfo.never.description%", - "%python.interpreter.displayInfo.pythonContext.description%", - "%python.interpreter.displayInfo.always.description%" + "%python.interpreter.infoVisibility.never.description%", + "%python.interpreter.infoVisibility.onPythonRelated.description%", + "%python.interpreter.infoVisibility.always.description%" ], "scope": "machine", "type": "string" diff --git a/package.nls.json b/package.nls.json index b20d6b98fbc7..41b7205c7e6e 100644 --- a/package.nls.json +++ b/package.nls.json @@ -57,10 +57,10 @@ "python.linting.flake8Enabled.description": "Whether to lint Python files using flake8.", "python.linting.flake8Path.description": "Path to flake8, you can use a custom version of flake8 by modifying this setting to include the full path.", "python.linting.ignorePatterns.description": "Patterns used to exclude files or folders from being linted.", - "python.interpreter.displayInfo.description": "Controls when to display information of selected interpreter in the status bar.", - "python.interpreter.displayInfo.never.description": "Never display information of selected interpreter in the status bar.", - "python.interpreter.displayInfo.pythonContext.description": "Only display information of selected interpreter in the status bar if Python related files are opened.", - "python.interpreter.displayInfo.always.description": "Always display information of selected interpreter in the status bar.", + "python.interpreter.infoVisibility.description": "Controls when to display information of selected interpreter in the status bar.", + "python.interpreter.infoVisibility.never.description": "Never display information of selected interpreter in the status bar.", + "python.interpreter.infoVisibility.onPythonRelated.description": "Only display information of selected interpreter in the status bar if Python related files are opened.", + "python.interpreter.infoVisibility.always.description": "Always display information of selected interpreter in the status bar.", "python.linting.lintOnSave.description": "Whether to lint Python files when saved.", "python.linting.maxNumberOfProblems.description": "Controls the maximum number of problems produced by the server.", "python.linting.mypyArgs.description": "Arguments passed in. Each argument is a separate item in the array.", diff --git a/src/client/common/configSettings.ts b/src/client/common/configSettings.ts index 27709d56b953..b7789009c9c7 100644 --- a/src/client/common/configSettings.ts +++ b/src/client/common/configSettings.ts @@ -249,7 +249,9 @@ export class PythonSettings implements IPythonSettings { const poetryPath = systemVariables.resolveAny(pythonSettings.get('poetryPath'))!; this.poetryPath = poetryPath && poetryPath.length > 0 ? getAbsolutePath(poetryPath, workspaceRoot) : poetryPath; - this.interpreter = pythonSettings.get('interpreter') ?? { displayInfo: 'pythonContext' }; + this.interpreter = pythonSettings.get('interpreter') ?? { + infoVisibility: 'onPythonRelated', + }; // Get as a string and verify; don't just accept. let userLS = pythonSettings.get('languageServer'); userLS = systemVariables.resolveAny(userLS); diff --git a/src/client/common/types.ts b/src/client/common/types.ts index 87d9673ca183..66ff24a426a4 100644 --- a/src/client/common/types.ts +++ b/src/client/common/types.ts @@ -235,7 +235,7 @@ export interface IMypyCategorySeverity { readonly note: DiagnosticSeverity; } export interface IInterpreterSettings { - displayInfo: 'never' | 'pythonContext' | 'always'; + infoVisibility: 'never' | 'onPythonRelated' | 'always'; } export interface ILintingSettings {