Skip to content

Commit 2269a79

Browse files
committed
expose getDebugpyPackagePath
1 parent 98f5b93 commit 2269a79

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/extension/extension.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,21 @@ 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';
13+
1114

1215
export async function activate(context: IExtensionContext): Promise<IExtensionApi | undefined> {
1316
const outputChannel = createOutputChannel('Python Debugger');
1417
context.subscriptions.push(outputChannel, registerLogger(outputChannel));
1518
context.subscriptions.push(registerCommand(Commands.ViewOutput, () => outputChannel.show()));
1619

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

0 commit comments

Comments
 (0)