Skip to content

Commit 78f5548

Browse files
committed
feat: new command RobotCode: Select Execution Profiles
1 parent b188b27 commit 78f5548

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,11 @@
764764
"title": "Clear Cache and Restart Language Servers",
765765
"category": "RobotCode",
766766
"command": "robotcode.clearCacheRestartLanguageServers"
767+
},
768+
{
769+
"title": "Select Execution Profiles",
770+
"category": "RobotCode",
771+
"command": "robotcode.selectExecutionProfiles"
767772
}
768773
],
769774
"menus": {

vscode-client/testcontrollermanager.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,9 @@ export class TestControllerManager {
285285
}),
286286
vscode.commands.registerCommand("robotcode.debugCurrentFile", async (...args) => {
287287
await vscode.commands.executeCommand("testing.debugCurrentFile", ...args);
288+
}),
289+
vscode.commands.registerCommand("robotcode.selectExecutionProfiles", async () => {
290+
await this.configureRunProfile();
288291
})
289292
);
290293
}
@@ -304,7 +307,7 @@ export class TestControllerManager {
304307
])) as RobotCodeProfilesResult;
305308
}
306309

307-
private async configureRunProfile(): Promise<void> {
310+
public async configureRunProfile(): Promise<void> {
308311
if (vscode.workspace.workspaceFolders === undefined || vscode.workspace.workspaceFolders?.length === 0) return;
309312

310313
const folders = await filterAsync(

0 commit comments

Comments
 (0)