Skip to content

Commit

Permalink
Remove python debugger from core extension
Browse files Browse the repository at this point in the history
  • Loading branch information
paulacamargo25 committed Nov 20, 2023
1 parent f6e1338 commit 06d9887
Show file tree
Hide file tree
Showing 58 changed files with 488 additions and 5,451 deletions.
386 changes: 0 additions & 386 deletions package.json

Large diffs are not rendered by default.

7 changes: 0 additions & 7 deletions src/client/common/application/debugService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
Breakpoint,
BreakpointsChangeEvent,
debug,
DebugAdapterDescriptorFactory,
DebugConfiguration,
DebugConsole,
DebugSession,
Expand Down Expand Up @@ -67,10 +66,4 @@ export class DebugService implements IDebugService {
public removeBreakpoints(breakpoints: Breakpoint[]): void {
debug.removeBreakpoints(breakpoints);
}
public registerDebugAdapterDescriptorFactory(
debugType: string,
factory: DebugAdapterDescriptorFactory,
): Disposable {
return debug.registerDebugAdapterDescriptorFactory(debugType, factory);
}
}
80 changes: 0 additions & 80 deletions src/client/common/application/debugSessionTelemetry.ts

This file was deleted.

12 changes: 0 additions & 12 deletions src/client/common/application/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
CancellationToken,
CompletionItemProvider,
ConfigurationChangeEvent,
DebugAdapterDescriptorFactory,
DebugAdapterTrackerFactory,
DebugConfiguration,
DebugConfigurationProvider,
Expand Down Expand Up @@ -995,17 +994,6 @@ export interface IDebugService {
*/
registerDebugConfigurationProvider(debugType: string, provider: DebugConfigurationProvider): Disposable;

/**
* Register a [debug adapter descriptor factory](#DebugAdapterDescriptorFactory) for a specific debug type.
* An extension is only allowed to register a DebugAdapterDescriptorFactory for the debug type(s) defined by the extension. Otherwise an error is thrown.
* Registering more than one DebugAdapterDescriptorFactory for a debug type results in an error.
*
* @param debugType The debug type for which the factory is registered.
* @param factory The [debug adapter descriptor factory](#DebugAdapterDescriptorFactory) to register.
* @return A [disposable](#Disposable) that unregisters this factory when being disposed.
*/
registerDebugAdapterDescriptorFactory(debugType: string, factory: DebugAdapterDescriptorFactory): Disposable;

/**
* Register a debug adapter tracker factory for the given debug type.
*
Expand Down
5 changes: 0 additions & 5 deletions src/client/common/serviceRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import { CommandManager } from './application/commandManager';
import { ReloadVSCodeCommandHandler } from './application/commands/reloadCommand';
import { ReportIssueCommandHandler } from './application/commands/reportIssueCommand';
import { DebugService } from './application/debugService';
import { DebugSessionTelemetry } from './application/debugSessionTelemetry';
import { DocumentManager } from './application/documentManager';
import { Extensions } from './application/extensions';
import { LanguageService } from './application/languageService';
Expand Down Expand Up @@ -183,8 +182,4 @@ export function registerTypes(serviceManager: IServiceManager): void {
IExtensionSingleActivationService,
ReportIssueCommandHandler,
);
serviceManager.addSingleton<IExtensionSingleActivationService>(
IExtensionSingleActivationService,
DebugSessionTelemetry,
);
}
2 changes: 1 addition & 1 deletion src/client/debugger/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

'use strict';

export const DebuggerTypeName = 'python';
export const DebuggerTypeName = 'debugpy';
53 changes: 0 additions & 53 deletions src/client/debugger/extension/adapter/activator.ts

This file was deleted.

Loading

0 comments on commit 06d9887

Please sign in to comment.