Skip to content

Commit 3e75937

Browse files
Remove debugger (#22502)
- Remove Debugger in the python extension, but only the fact to create a configuration using 'python' type. - It is still possible to debug using 'python' type config. - Add extension "Python Debugger" to extension pack
1 parent 84ef0ee commit 3e75937

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+73
-4220
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Python extension for Visual Studio Code
22

3-
A [Visual Studio Code](https://code.visualstudio.com/) [extension](https://marketplace.visualstudio.com/VSCode) with rich support for the [Python language](https://www.python.org/) (for all [actively supported versions](https://devguide.python.org/#status-of-python-branches) of the language: >=3.7), including features such as IntelliSense (Pylance), linting, debugging, code navigation, code formatting, refactoring, variable explorer, test explorer, and more!
3+
A [Visual Studio Code](https://code.visualstudio.com/) [extension](https://marketplace.visualstudio.com/VSCode) with rich support for the [Python language](https://www.python.org/) (for all [actively supported versions](https://devguide.python.org/#status-of-python-branches) of the language: >=3.7), including features such as IntelliSense (Pylance), linting, debugging (Python Debugger), code navigation, code formatting, refactoring, variable explorer, test explorer, and more!
44

55
## Support for [vscode.dev](https://vscode.dev/)
66

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ async function addExtensionPackDependencies() {
9898
// extension dependencies need not be installed during development
9999
const packageJsonContents = await fsExtra.readFile('package.json', 'utf-8');
100100
const packageJson = JSON.parse(packageJsonContents);
101-
packageJson.extensionPack = ['ms-python.vscode-pylance'].concat(
101+
packageJson.extensionPack = ['ms-python.vscode-pylance', 'ms-python.debugpy'].concat(
102102
packageJson.extensionPack ? packageJson.extensionPack : [],
103103
);
104104
// Remove potential duplicates.

package.json

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "python",
33
"displayName": "Python",
4-
"description": "IntelliSense (Pylance), Linting, Debugging (multi-threaded, remote), code formatting, refactoring, unit tests, and more.",
4+
"description": "IntelliSense (Pylance), Linting, Debugging (Python Debugger), code formatting, refactoring, unit tests, and more.",
55
"version": "2023.23.0-dev",
66
"featureFlags": {
77
"usingNewInterpreterStorage": true
@@ -66,7 +66,6 @@
6666
"activationEvents": [
6767
"onDebugInitialConfigurations",
6868
"onLanguage:python",
69-
"onDebugDynamicConfigurations:python",
7069
"onDebugResolve:python",
7170
"workspaceContains:mspythonconfig.json",
7271
"workspaceContains:pyproject.toml",
@@ -388,12 +387,6 @@
388387
"icon": "$(play)",
389388
"title": "%python.command.python.execInDedicatedTerminal.title%"
390389
},
391-
{
392-
"category": "Python",
393-
"command": "python.debugInTerminal",
394-
"icon": "$(debug-alt)",
395-
"title": "%python.command.python.debugInTerminal.title%"
396-
},
397390
{
398391
"category": "Python",
399392
"command": "python.execSelectionInDjangoShell",
@@ -1323,13 +1316,6 @@
13231316
"title": "%python.command.python.execInDedicatedTerminal.title%",
13241317
"when": "false"
13251318
},
1326-
{
1327-
"category": "Python",
1328-
"command": "python.debugInTerminal",
1329-
"icon": "$(debug-alt)",
1330-
"title": "%python.command.python.debugInTerminal.title%",
1331-
"when": "!virtualWorkspace && shellExecutionSupported && editorLangId == python"
1332-
},
13331319
{
13341320
"category": "Python",
13351321
"command": "python.execSelectionInDjangoShell",
@@ -1462,12 +1448,6 @@
14621448
"group": "navigation@0",
14631449
"title": "%python.command.python.execInDedicatedTerminal.title%",
14641450
"when": "resourceLangId == python && !isInDiffEditor && !virtualWorkspace && shellExecutionSupported"
1465-
},
1466-
{
1467-
"command": "python.debugInTerminal",
1468-
"group": "navigation@1",
1469-
"title": "%python.command.python.debugInTerminal.title%",
1470-
"when": "resourceLangId == python && !isInDiffEditor && !virtualWorkspace && shellExecutionSupported"
14711451
}
14721452
],
14731453
"explorer/context": [

src/client/application/diagnostics/serviceRegistry.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ import {
1111
EnvironmentPathVariableDiagnosticsService,
1212
EnvironmentPathVariableDiagnosticsServiceId,
1313
} from './checks/envPathVariable';
14-
import {
15-
InvalidLaunchJsonDebuggerService,
16-
InvalidLaunchJsonDebuggerServiceId,
17-
} from './checks/invalidLaunchJsonDebugger';
1814
import {
1915
InvalidPythonPathInDebuggerService,
2016
InvalidPythonPathInDebuggerServiceId,
@@ -59,11 +55,6 @@ export function registerTypes(serviceManager: IServiceManager): void {
5955
EnvironmentPathVariableDiagnosticsService,
6056
EnvironmentPathVariableDiagnosticsServiceId,
6157
);
62-
serviceManager.addSingleton<IDiagnosticsService>(
63-
IDiagnosticsService,
64-
InvalidLaunchJsonDebuggerService,
65-
InvalidLaunchJsonDebuggerServiceId,
66-
);
6758
serviceManager.addSingleton<IDiagnosticsService>(
6859
IDiagnosticsService,
6960
InvalidPythonInterpreterService,

src/client/debugger/extension/configuration/debugConfigurationService.ts

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

0 commit comments

Comments
 (0)