diff --git a/package.json b/package.json index 0f9f3e97cb2ab..651fcff4d56c5 100644 --- a/package.json +++ b/package.json @@ -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%", diff --git a/package.nls.json b/package.nls.json index 7a39d545fab60..870c0037c8ac6 100644 --- a/package.nls.json +++ b/package.nls.json @@ -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.", diff --git a/src/client/common/configSettings.ts b/src/client/common/configSettings.ts index 52ed1cbeda79e..785ec09b6dadf 100644 --- a/src/client/common/configSettings.ts +++ b/src/client/common/configSettings.ts @@ -124,6 +124,8 @@ export class PythonSettings implements IPythonSettings { public pylanceLspNotebooksEnabled = false; + public pylanceLspClientEnabled = false; + public experiments!: IExperiments; public languageServer: LanguageServerType = LanguageServerType.Node; @@ -314,6 +316,7 @@ export class PythonSettings implements IPythonSettings { this.globalModuleInstallation = pythonSettings.get('globalModuleInstallation') === true; this.pylanceLspNotebooksEnabled = pythonSettings.get('pylanceLspNotebooksEnabled') === true; + this.pylanceLspClientEnabled = pythonSettings.get('pylanceLspClientEnabled') === true; const sortImportSettings = systemVariables.resolveAny(pythonSettings.get('sortImports'))!; if (this.sortImports) { diff --git a/src/client/common/types.ts b/src/client/common/types.ts index 66c91b13444d1..f0cdcc335485b 100644 --- a/src/client/common/types.ts +++ b/src/client/common/types.ts @@ -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;