File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,20 @@ import { registerLogger, traceError } from './common/log/logging';
8
8
import { sendTelemetryEvent } from './telemetry' ;
9
9
import { EventName } from './telemetry/constants' ;
10
10
import { IExtensionApi } from './apiTypes' ;
11
+ import { commands } from 'vscode' ;
12
+ import { getDebugpyPackagePath } from './debugger/adapter/remoteLaunchers' ;
11
13
12
14
export async function activate ( context : IExtensionContext ) : Promise < IExtensionApi | undefined > {
13
15
const outputChannel = createOutputChannel ( 'Python Debugger' ) ;
14
16
context . subscriptions . push ( outputChannel , registerLogger ( outputChannel ) ) ;
15
17
context . subscriptions . push ( registerCommand ( Commands . ViewOutput , ( ) => outputChannel . show ( ) ) ) ;
16
18
19
+ context . subscriptions . push (
20
+ commands . registerCommand ( 'python.getDebugpyPackagePath' , ( ) => {
21
+ return getDebugpyPackagePath ( ) ;
22
+ } ) ,
23
+ ) ;
24
+
17
25
try {
18
26
const api = await registerDebugger ( context ) ;
19
27
sendTelemetryEvent ( EventName . DEBUG_SUCCESS_ACTIVATION ) ;
You can’t perform that action at this time.
0 commit comments