Skip to content

Commit

Permalink
Remove unused setting disablePromptForFeatures (#1574)
Browse files Browse the repository at this point in the history
Fixes #1551
  • Loading branch information
DonJayamanne authored May 7, 2018
1 parent 397e93e commit e5c4bf7
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 25 deletions.
1 change: 1 addition & 0 deletions news/3 Code Health/1551.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove unused setting `disablePromptForFeatures`.
20 changes: 0 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1156,26 +1156,6 @@
"description": "Whether to check if Python is installed (also warn when using the macOS-installed Python).",
"scope": "resource"
},
"python.disablePromptForFeatures": {
"type": "array",
"default": [],
"description": "Do not display a prompt to install these features",
"items": {
"type": "string",
"default": "pylint",
"description": "Feature",
"enum": [
"flake8",
"mypy",
"pep8",
"pylama",
"prospector",
"pydocstyle",
"pylint"
]
},
"scope": "resource"
},
"python.envFile": {
"type": "string",
"description": "Absolute path to a file containing environment variable definitions.",
Expand Down
4 changes: 0 additions & 4 deletions src/client/common/configSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export class PythonSettings extends EventEmitter implements IPythonSettings {
public jediPath = '';
public jediMemoryLimit = 1024;
public envFile = '';
public disablePromptForFeatures: string[] = [];
public venvPath = '';
public venvFolders: string[] = [];
public devOptions: string[] = [];
Expand Down Expand Up @@ -136,9 +135,6 @@ export class PythonSettings extends EventEmitter implements IPythonSettings {

// tslint:disable-next-line:no-backbone-get-set-outside-model no-non-null-assertion
const lintingSettings = systemVariables.resolveAny(pythonSettings.get<ILintingSettings>('linting'))!;
// tslint:disable-next-line:no-backbone-get-set-outside-model no-non-null-assertion
this.disablePromptForFeatures = pythonSettings.get<string[]>('disablePromptForFeatures')!;
this.disablePromptForFeatures = Array.isArray(this.disablePromptForFeatures) ? this.disablePromptForFeatures : [];
if (this.linting) {
Object.assign<ILintingSettings, ILintingSettings>(this.linting, lintingSettings);
} else {
Expand Down
1 change: 0 additions & 1 deletion src/client/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ export interface IPythonSettings {
readonly sortImports?: ISortImportSettings;
readonly workspaceSymbols: IWorkspaceSymbolSettings;
readonly envFile: string;
readonly disablePromptForFeatures: string[];
readonly disableInstallationChecks: boolean;
readonly globalModuleInstallation: boolean;
}
Expand Down

0 comments on commit e5c4bf7

Please sign in to comment.