diff --git a/src/client/common/experiments/groups.ts b/src/client/common/experiments/groups.ts index 184c79875df1..7f2b9f74cef5 100644 --- a/src/client/common/experiments/groups.ts +++ b/src/client/common/experiments/groups.ts @@ -2,15 +2,3 @@ export enum ShowExtensionSurveyPrompt { experiment = 'pythonSurveyNotification', } - -// Feature flag for 'Python: Launch TensorBoard' feature -export enum NativeTensorBoard { - experiment = 'pythonTensorboardExperiment', -} - -// Feature gate to control whether we install the PyTorch profiler package -// torch.profiler release is being delayed till end of March. This allows us -// to turn on the profiler plugin install functionality between releases -export enum TorchProfiler { - experiment = 'PythonPyTorchProfiler', -} diff --git a/src/client/interpreter/configuration/pythonPathUpdaterService.ts b/src/client/interpreter/configuration/pythonPathUpdaterService.ts index 7bd1f99bd125..ea63733c9240 100644 --- a/src/client/interpreter/configuration/pythonPathUpdaterService.ts +++ b/src/client/interpreter/configuration/pythonPathUpdaterService.ts @@ -32,7 +32,7 @@ export class PythonPathUpdaterService implements IPythonPathUpdaterServiceManage failed = true; const message = reason && typeof reason.message === 'string' ? (reason.message as string) : ''; - window.showErrorMessage(`Failed to set 'pythonPath'. Error: ${message}`); + window.showErrorMessage(`Failed to set interpreter path. Error: ${message}`); traceError(reason); } // do not wait for this to complete diff --git a/src/test/interpreters/pythonPathUpdaterFactory.unit.test.ts b/src/test/interpreters/pythonPathUpdaterFactory.unit.test.ts index a69bde4e0fa3..379655187e88 100644 --- a/src/test/interpreters/pythonPathUpdaterFactory.unit.test.ts +++ b/src/test/interpreters/pythonPathUpdaterFactory.unit.test.ts @@ -1,6 +1,6 @@ import * as path from 'path'; import * as TypeMoq from 'typemoq'; -import { ConfigurationTarget, Uri, WorkspaceConfiguration } from 'vscode'; +import { ConfigurationTarget, Uri } from 'vscode'; import { IWorkspaceService } from '../../client/common/application/types'; import { IExperimentService, IInterpreterPathService } from '../../client/common/types'; import { PythonPathUpdaterServiceFactory } from '../../client/interpreter/configuration/pythonPathUpdaterServiceFactory'; @@ -28,13 +28,6 @@ suite('Python Path Settings Updater', () => { .returns(() => interpreterPathService.object); updaterServiceFactory = new PythonPathUpdaterServiceFactory(serviceContainer.object); } - function setupConfigProvider(resource?: Uri): TypeMoq.IMock { - const workspaceConfig = TypeMoq.Mock.ofType(); - workspaceService - .setup((w) => w.getConfiguration(TypeMoq.It.isValue('python'), TypeMoq.It.isValue(resource))) - .returns(() => workspaceConfig.object); - return workspaceConfig; - } suite('Global', () => { setup(() => setupMocks()); @@ -106,8 +99,6 @@ suite('Python Path Settings Updater', () => { const workspaceFolder = Uri.file(workspaceFolderPath); const pythonPath = Uri.file(path.join(workspaceFolderPath, 'env', 'bin', 'python')).fsPath; const expectedPythonPath = path.join('env', 'bin', 'python'); - const workspaceConfig = setupConfigProvider(workspaceFolder); - workspaceConfig.setup((w) => w.inspect(TypeMoq.It.isValue('pythonPath'))).returns(() => undefined); interpreterPathService.setup((i) => i.inspect(workspaceFolder)).returns(() => ({})); interpreterPathService .setup((i) => i.update(workspaceFolder, ConfigurationTarget.WorkspaceFolder, expectedPythonPath)) diff --git a/src/test/mocks/mockWorkspaceConfig.ts b/src/test/mocks/mockWorkspaceConfig.ts index bbdbb582bd82..8627cd599fba 100644 --- a/src/test/mocks/mockWorkspaceConfig.ts +++ b/src/test/mocks/mockWorkspaceConfig.ts @@ -24,11 +24,6 @@ export class MockWorkspaceConfiguration implements WorkspaceConfiguration { const keys = [...Object.keys(defaultSettings)]; keys.forEach((k) => this.values.set(k, defaultSettings[k])); } - - // Special case python path (not in the object) - if (defaultSettings && defaultSettings.pythonPath) { - this.values.set('pythonPath', defaultSettings.pythonPath); - } } public get(key: string, defaultValue?: T): T | undefined {