Skip to content

Commit a968e23

Browse files
author
Kartik Raj
committed
Team reviews
1 parent 1049fad commit a968e23

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -587,18 +587,18 @@
587587
"scope": "resource",
588588
"type": "string"
589589
},
590-
"python.interpreter.displayInfo": {
591-
"default": "pythonContext",
592-
"description": "%python.interpreter.displayInfo.description%",
590+
"python.interpreter.infoVisibility": {
591+
"default": "onPythonRelated",
592+
"description": "%python.interpreter.infoVisibility.description%",
593593
"enum": [
594594
"never",
595-
"pythonContext",
595+
"onPythonRelated",
596596
"always"
597597
],
598598
"enumDescriptions": [
599-
"%python.interpreter.displayInfo.never.description%",
600-
"%python.interpreter.displayInfo.pythonContext.description%",
601-
"%python.interpreter.displayInfo.always.description%"
599+
"%python.interpreter.infoVisibility.never.description%",
600+
"%python.interpreter.infoVisibility.onPythonRelated.description%",
601+
"%python.interpreter.infoVisibility.always.description%"
602602
],
603603
"scope": "machine",
604604
"type": "string"

package.nls.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@
5757
"python.linting.flake8Enabled.description": "Whether to lint Python files using flake8.",
5858
"python.linting.flake8Path.description": "Path to flake8, you can use a custom version of flake8 by modifying this setting to include the full path.",
5959
"python.linting.ignorePatterns.description": "Patterns used to exclude files or folders from being linted.",
60-
"python.interpreter.displayInfo.description": "Controls when to display information of selected interpreter in the status bar.",
61-
"python.interpreter.displayInfo.never.description": "Never display information of selected interpreter in the status bar.",
62-
"python.interpreter.displayInfo.pythonContext.description": "Only display information of selected interpreter in the status bar if Python related files are opened.",
63-
"python.interpreter.displayInfo.always.description": "Always display information of selected interpreter in the status bar.",
60+
"python.interpreter.infoVisibility.description": "Controls when to display information of selected interpreter in the status bar.",
61+
"python.interpreter.infoVisibility.never.description": "Never display information of selected interpreter in the status bar.",
62+
"python.interpreter.infoVisibility.onPythonRelated.description": "Only display information of selected interpreter in the status bar if Python related files are opened.",
63+
"python.interpreter.infoVisibility.always.description": "Always display information of selected interpreter in the status bar.",
6464
"python.linting.lintOnSave.description": "Whether to lint Python files when saved.",
6565
"python.linting.maxNumberOfProblems.description": "Controls the maximum number of problems produced by the server.",
6666
"python.linting.mypyArgs.description": "Arguments passed in. Each argument is a separate item in the array.",

src/client/common/configSettings.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,9 @@ export class PythonSettings implements IPythonSettings {
249249
const poetryPath = systemVariables.resolveAny(pythonSettings.get<string>('poetryPath'))!;
250250
this.poetryPath = poetryPath && poetryPath.length > 0 ? getAbsolutePath(poetryPath, workspaceRoot) : poetryPath;
251251

252-
this.interpreter = pythonSettings.get<IInterpreterSettings>('interpreter') ?? { displayInfo: 'pythonContext' };
252+
this.interpreter = pythonSettings.get<IInterpreterSettings>('interpreter') ?? {
253+
infoVisibility: 'onPythonRelated',
254+
};
253255
// Get as a string and verify; don't just accept.
254256
let userLS = pythonSettings.get<string>('languageServer');
255257
userLS = systemVariables.resolveAny(userLS);

src/client/common/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ export interface IMypyCategorySeverity {
235235
readonly note: DiagnosticSeverity;
236236
}
237237
export interface IInterpreterSettings {
238-
displayInfo: 'never' | 'pythonContext' | 'always';
238+
infoVisibility: 'never' | 'onPythonRelated' | 'always';
239239
}
240240

241241
export interface ILintingSettings {

0 commit comments

Comments
 (0)