Skip to content

Commit 13bbb7b

Browse files
committed
fixed launch configuration issue while running tests
1 parent 8b899d1 commit 13bbb7b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

vscode/src/extension.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -607,13 +607,13 @@ export function activate(context: ExtensionContext): VSNetBeansAPI {
607607
}));
608608

609609
async function findRunConfiguration(uri : vscode.Uri) : Promise<vscode.DebugConfiguration|undefined> {
610-
// do not invoke debug start with no (java+) configurations, as it would probably create an user prompt
610+
// do not invoke debug start with no (jdk) configurations, as it would probably create an user prompt
611611
let cfg = vscode.workspace.getConfiguration("launch");
612612
let c = cfg.get('configurations');
613613
if (!Array.isArray(c)) {
614614
return undefined;
615615
}
616-
let f = c.filter((v) => v['type'] === 'java+');
616+
let f = c.filter((v) => v['type'] === 'jdk');
617617
if (!f.length) {
618618
return undefined;
619619
}
@@ -626,10 +626,10 @@ export function activate(context: ExtensionContext): VSNetBeansAPI {
626626
}
627627
}
628628
let provider = new P();
629-
let d = vscode.debug.registerDebugConfigurationProvider('java+', provider);
629+
let d = vscode.debug.registerDebugConfigurationProvider('jdk', provider);
630630
// let vscode to select a debug config
631631
return await vscode.commands.executeCommand('workbench.action.debug.start', { config: {
632-
type: 'java+',
632+
type: 'jdk',
633633
mainClass: uri.toString()
634634
}, noDebug: true}).then((v) => {
635635
d.dispose();

0 commit comments

Comments
 (0)