File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -612,13 +612,13 @@ export function activate(context: ExtensionContext): VSNetBeansAPI {
612
612
} ) ) ;
613
613
614
614
async function findRunConfiguration ( uri : vscode . Uri ) : Promise < vscode . DebugConfiguration | undefined > {
615
- // do not invoke debug start with no (java+ ) configurations, as it would probably create an user prompt
615
+ // do not invoke debug start with no (jdk ) configurations, as it would probably create an user prompt
616
616
let cfg = vscode . workspace . getConfiguration ( "launch" ) ;
617
617
let c = cfg . get ( 'configurations' ) ;
618
618
if ( ! Array . isArray ( c ) ) {
619
619
return undefined ;
620
620
}
621
- let f = c . filter ( ( v ) => v [ 'type' ] === 'java+ ' ) ;
621
+ let f = c . filter ( ( v ) => v [ 'type' ] === 'jdk ' ) ;
622
622
if ( ! f . length ) {
623
623
return undefined ;
624
624
}
@@ -631,10 +631,10 @@ export function activate(context: ExtensionContext): VSNetBeansAPI {
631
631
}
632
632
}
633
633
let provider = new P ( ) ;
634
- let d = vscode . debug . registerDebugConfigurationProvider ( 'java+ ' , provider ) ;
634
+ let d = vscode . debug . registerDebugConfigurationProvider ( 'jdk ' , provider ) ;
635
635
// let vscode to select a debug config
636
636
return await vscode . commands . executeCommand ( 'workbench.action.debug.start' , { config : {
637
- type : 'java+ ' ,
637
+ type : 'jdk ' ,
638
638
mainClass : uri . toString ( )
639
639
} , noDebug : true } ) . then ( ( v ) => {
640
640
d . dispose ( ) ;
You can’t perform that action at this time.
0 commit comments