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