Skip to content

Commit b7fee7c

Browse files
authored
expose getDebugpyPackagePath (#713)
* expose getDebugpyPackagePath * linting
1 parent 98f5b93 commit b7fee7c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/extension/extension.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,20 @@ import { registerLogger, traceError } from './common/log/logging';
88
import { sendTelemetryEvent } from './telemetry';
99
import { EventName } from './telemetry/constants';
1010
import { IExtensionApi } from './apiTypes';
11+
import { commands } from 'vscode';
12+
import { getDebugpyPackagePath } from './debugger/adapter/remoteLaunchers';
1113

1214
export async function activate(context: IExtensionContext): Promise<IExtensionApi | undefined> {
1315
const outputChannel = createOutputChannel('Python Debugger');
1416
context.subscriptions.push(outputChannel, registerLogger(outputChannel));
1517
context.subscriptions.push(registerCommand(Commands.ViewOutput, () => outputChannel.show()));
1618

19+
context.subscriptions.push(
20+
commands.registerCommand('python.getDebugpyPackagePath', () => {
21+
return getDebugpyPackagePath();
22+
}),
23+
);
24+
1725
try {
1826
const api = await registerDebugger(context);
1927
sendTelemetryEvent(EventName.DEBUG_SUCCESS_ACTIVATION);

0 commit comments

Comments
 (0)