Skip to content

Commit d717d00

Browse files
committed
Rename command
1 parent dee77af commit d717d00

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

java/java.lsp.server/vscode/src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@ export function activate(context: ExtensionContext): VSNetBeansAPI {
830830
}
831831
};
832832

833-
context.subscriptions.push(commands.registerCommand(COMMAND_PREFIX + '.run.test.parallel', async (projects?) => {
833+
context.subscriptions.push(commands.registerCommand(COMMAND_PREFIX + '.run.test.parallel.createProfile', async (projects?) => {
834834
if (projects) {
835835
testAdapter?.registerRunInParallelProfile(projects);
836836
}

java/java.lsp.server/vscode/src/testAdapter.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ export class NbTestAdapter {
6262

6363
async run(request: TestRunRequest, cancellation: CancellationToken, testInParallel: boolean = false, projects?: string[]): Promise<void> {
6464
if (!this.currentRun) {
65-
commands.executeCommand('workbench.debug.action.focusRepl');
65+
if (!testInParallel) {
66+
commands.executeCommand('workbench.debug.action.focusRepl');
67+
}
6668
cancellation.onCancellationRequested(() => this.cancel());
6769
this.currentRun = this.testController.createTestRun(request);
6870
this.itemsToRun = new Set();
@@ -140,7 +142,6 @@ export class NbTestAdapter {
140142
moduleName: testItem.parent?.id,
141143
modulePath: testItem.parent?.uri?.path,
142144
state,
143-
144145
});
145146
})
146147
}

0 commit comments

Comments
 (0)