Skip to content

Commit a8dac78

Browse files
committed
Fix running single tests
1 parent 6d2d1c0 commit a8dac78

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vscode/src/extension.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ export function activate(context: ExtensionContext): VSNetBeansAPI {
946946
debugConfig['testRun'] = testRun;
947947

948948
const workspaceFolder = vscode.workspace.getWorkspaceFolder(docUri);
949-
if (project || testRun) {
949+
if (project) {
950950
debugConfig['projectFile'] = docUri.toString();
951951
debugConfig['project'] = true;
952952
} else {
@@ -988,10 +988,10 @@ export function activate(context: ExtensionContext): VSNetBeansAPI {
988988
await runDebug(false, true, uri, methodName, nestedClass, launchConfiguration);
989989
}));
990990
context.subscriptions.push(commands.registerCommand(COMMAND_PREFIX + '.run.single', async (uri, methodName?, launchConfiguration?, nestedClass?) => {
991-
await runDebug(true, false, uri, methodName, nestedClass, launchConfiguration);
991+
await runDebug(true, true, uri, methodName, nestedClass, launchConfiguration);
992992
}));
993993
context.subscriptions.push(commands.registerCommand(COMMAND_PREFIX + '.debug.single', async (uri, methodName?, launchConfiguration?, nestedClass?) => {
994-
await runDebug(false, false, uri, methodName, nestedClass, launchConfiguration);
994+
await runDebug(false, true, uri, methodName, nestedClass, launchConfiguration);
995995
}));
996996
context.subscriptions.push(commands.registerCommand(COMMAND_PREFIX + '.project.run', async (node, launchConfiguration?) => {
997997
return runDebug(true, false, contextUri(node)?.toString() || '', undefined, undefined, launchConfiguration, true);

0 commit comments

Comments
 (0)