Skip to content

Commit 06d9887

Browse files
Remove python debugger from core extension
1 parent f6e1338 commit 06d9887

Some content is hidden

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

58 files changed

+488
-5451
lines changed

package.json

-386
Large diffs are not rendered by default.

src/client/common/application/debugService.ts

-7
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
Breakpoint,
99
BreakpointsChangeEvent,
1010
debug,
11-
DebugAdapterDescriptorFactory,
1211
DebugConfiguration,
1312
DebugConsole,
1413
DebugSession,
@@ -67,10 +66,4 @@ export class DebugService implements IDebugService {
6766
public removeBreakpoints(breakpoints: Breakpoint[]): void {
6867
debug.removeBreakpoints(breakpoints);
6968
}
70-
public registerDebugAdapterDescriptorFactory(
71-
debugType: string,
72-
factory: DebugAdapterDescriptorFactory,
73-
): Disposable {
74-
return debug.registerDebugAdapterDescriptorFactory(debugType, factory);
75-
}
7669
}

src/client/common/application/debugSessionTelemetry.ts

-80
This file was deleted.

src/client/common/application/types.ts

-12
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
CancellationToken,
1010
CompletionItemProvider,
1111
ConfigurationChangeEvent,
12-
DebugAdapterDescriptorFactory,
1312
DebugAdapterTrackerFactory,
1413
DebugConfiguration,
1514
DebugConfigurationProvider,
@@ -995,17 +994,6 @@ export interface IDebugService {
995994
*/
996995
registerDebugConfigurationProvider(debugType: string, provider: DebugConfigurationProvider): Disposable;
997996

998-
/**
999-
* Register a [debug adapter descriptor factory](#DebugAdapterDescriptorFactory) for a specific debug type.
1000-
* An extension is only allowed to register a DebugAdapterDescriptorFactory for the debug type(s) defined by the extension. Otherwise an error is thrown.
1001-
* Registering more than one DebugAdapterDescriptorFactory for a debug type results in an error.
1002-
*
1003-
* @param debugType The debug type for which the factory is registered.
1004-
* @param factory The [debug adapter descriptor factory](#DebugAdapterDescriptorFactory) to register.
1005-
* @return A [disposable](#Disposable) that unregisters this factory when being disposed.
1006-
*/
1007-
registerDebugAdapterDescriptorFactory(debugType: string, factory: DebugAdapterDescriptorFactory): Disposable;
1008-
1009997
/**
1010998
* Register a debug adapter tracker factory for the given debug type.
1011999
*

src/client/common/serviceRegistry.ts

-5
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import { CommandManager } from './application/commandManager';
2828
import { ReloadVSCodeCommandHandler } from './application/commands/reloadCommand';
2929
import { ReportIssueCommandHandler } from './application/commands/reportIssueCommand';
3030
import { DebugService } from './application/debugService';
31-
import { DebugSessionTelemetry } from './application/debugSessionTelemetry';
3231
import { DocumentManager } from './application/documentManager';
3332
import { Extensions } from './application/extensions';
3433
import { LanguageService } from './application/languageService';
@@ -183,8 +182,4 @@ export function registerTypes(serviceManager: IServiceManager): void {
183182
IExtensionSingleActivationService,
184183
ReportIssueCommandHandler,
185184
);
186-
serviceManager.addSingleton<IExtensionSingleActivationService>(
187-
IExtensionSingleActivationService,
188-
DebugSessionTelemetry,
189-
);
190185
}

src/client/debugger/constants.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
'use strict';
55

6-
export const DebuggerTypeName = 'python';
6+
export const DebuggerTypeName = 'debugpy';

src/client/debugger/extension/adapter/activator.ts

-53
This file was deleted.

0 commit comments

Comments
 (0)