Skip to content

Commit 15b9815

Browse files
author
Kartik Raj
authored
Remove python.pythonPath deprecation prompt (#20371)
Closes #20340
1 parent 32ab2f1 commit 15b9815

File tree

5 files changed

+0
-418
lines changed

5 files changed

+0
-418
lines changed

src/client/application/diagnostics/checks/pythonPathDeprecated.ts

Lines changed: 0 additions & 76 deletions
This file was deleted.

src/client/application/diagnostics/serviceRegistry.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ import {
3333
} from './checks/powerShellActivation';
3434
import { PylanceDefaultDiagnosticService, PylanceDefaultDiagnosticServiceId } from './checks/pylanceDefault';
3535
import { InvalidPythonInterpreterService, InvalidPythonInterpreterServiceId } from './checks/pythonInterpreter';
36-
import {
37-
PythonPathDeprecatedDiagnosticService,
38-
PythonPathDeprecatedDiagnosticServiceId,
39-
} from './checks/pythonPathDeprecated';
4036
import {
4137
SwitchToDefaultLanguageServerDiagnosticService,
4238
SwitchToDefaultLanguageServerDiagnosticServiceId,
@@ -92,11 +88,6 @@ export function registerTypes(serviceManager: IServiceManager): void {
9288
InvalidMacPythonInterpreterService,
9389
InvalidMacPythonInterpreterServiceId,
9490
);
95-
serviceManager.addSingleton<IDiagnosticsService>(
96-
IDiagnosticsService,
97-
PythonPathDeprecatedDiagnosticService,
98-
PythonPathDeprecatedDiagnosticServiceId,
99-
);
10091

10192
serviceManager.addSingleton<IDiagnosticsService>(
10293
IDiagnosticsService,

src/client/common/utils/localize.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ export namespace Diagnostics {
2828
'diagnostics.lsNotSupported',
2929
'Your operating system does not meet the minimum requirements of the Python Language Server. Reverting to the alternative autocompletion provider, Jedi.',
3030
);
31-
export const removedPythonPathFromSettings = localize(
32-
'diagnostics.removedPythonPathFromSettings',
33-
'The "python.pythonPath" setting in your settings.json is no longer used by the Python extension. If you want, you can use a new setting called "python.defaultInterpreterPath" instead. Keep in mind that you need to change the value of this setting manually as the Python extension doesn\'t modify it when you change interpreters. [Learn more](https://aka.ms/AA7jfor).',
34-
);
3531
export const invalidPythonPathInDebuggerSettings = localize(
3632
'diagnostics.invalidPythonPathInDebuggerSettings',
3733
'You need to select a Python interpreter before you start debugging.\n\nTip: click on "Select Interpreter" in the status bar.',

0 commit comments

Comments
 (0)