File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 7
7
"enabledApiProposals" : [
8
8
" portsAttributes" ,
9
9
" contribIssueReporter" ,
10
- " debugVisualization"
10
+ " debugVisualization" ,
11
+ " contribViewsWelcome"
11
12
],
12
13
"license" : " MIT" ,
13
14
"homepage" : " https://github.com/Microsoft/vscode-python-debugger" ,
521
522
"id" : " inlineHexDecoder" ,
522
523
"when" : " debugConfigurationType == 'debugpy' && (variableType == 'float' || variableType == 'int')"
523
524
}
525
+ ],
526
+ "viewsWelcome" : [
527
+ {
528
+ "view" : " debug" ,
529
+ "contents" : " \n [Show automatic Python configurations](command:workbench.action.debug.selectandstart?%5B%22debugpy%22%5D)\n " ,
530
+ "when" : " dynamicPythonConfigAvailable"
531
+ }
524
532
]
525
533
},
526
534
"extensionDependencies" : [
Original file line number Diff line number Diff line change @@ -206,5 +206,11 @@ export async function registerDebugger(context: IExtensionContext): Promise<IExt
206
206
} ) ,
207
207
) ;
208
208
209
+ executeCommand (
210
+ 'setContext' ,
211
+ 'dynamicPythonConfigAvailable' ,
212
+ window . activeTextEditor ?. document . languageId === 'python' ,
213
+ ) ;
214
+
209
215
return buildApi ( ) ;
210
216
}
You can’t perform that action at this time.
0 commit comments