Skip to content

Commit

Permalink
client move options
Browse files Browse the repository at this point in the history
  • Loading branch information
heejaechang committed Sep 28, 2022
1 parent a500e16 commit 70b22c4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -925,6 +925,12 @@
"description": "%python.pylanceLspNotebooksEnabled.description%",
"scope": "machine"
},
"python.pylanceLspClientEnabled": {
"type": "boolean",
"default": false,
"description": "%python.pylanceLspClientEnabled.description%",
"scope": "machine"
},
"python.sortImports.args": {
"default": [],
"description": "%python.sortImports.args.description%",
Expand Down
1 change: 1 addition & 0 deletions package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
"python.pipenvPath.description": "Path to the pipenv executable to use for activation.",
"python.poetryPath.description": "Path to the poetry executable.",
"python.pylanceLspNotebooksEnabled.description": "Determines if Pylance's experimental LSP notebooks support is used or not.",
"python.pylanceLspClientEnabled.description": "Determines if Pylance's experimental LSP client support is used or not.",
"python.sortImports.args.description": "Arguments passed in. Each argument is a separate item in the array.",
"python.sortImports.path.description": "Path to isort script, default using inner version",
"python.tensorBoard.logDirectory.description": "Set this setting to your preferred TensorBoard log directory to skip log directory prompt when starting TensorBoard.",
Expand Down
3 changes: 3 additions & 0 deletions src/client/common/configSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ export class PythonSettings implements IPythonSettings {

public pylanceLspNotebooksEnabled = false;

public pylanceLspClientEnabled = false;

public experiments!: IExperiments;

public languageServer: LanguageServerType = LanguageServerType.Node;
Expand Down Expand Up @@ -314,6 +316,7 @@ export class PythonSettings implements IPythonSettings {

this.globalModuleInstallation = pythonSettings.get<boolean>('globalModuleInstallation') === true;
this.pylanceLspNotebooksEnabled = pythonSettings.get<boolean>('pylanceLspNotebooksEnabled') === true;
this.pylanceLspClientEnabled = pythonSettings.get<boolean>('pylanceLspClientEnabled') === true;

const sortImportSettings = systemVariables.resolveAny(pythonSettings.get<ISortImportSettings>('sortImports'))!;
if (this.sortImports) {
Expand Down
1 change: 1 addition & 0 deletions src/client/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ export interface IPythonSettings {
readonly envFile: string;
readonly globalModuleInstallation: boolean;
readonly pylanceLspNotebooksEnabled: boolean;
readonly pylanceLspClientEnabled: boolean;
readonly experiments: IExperiments;
readonly languageServer: LanguageServerType;
readonly languageServerIsDefault: boolean;
Expand Down

0 comments on commit 70b22c4

Please sign in to comment.