Skip to content

Commit 8abcb67

Browse files
committed
fix(vscode): trim and shorten long names and descriptions in Select Configuration Profiles command
1 parent 733491a commit 8abcb67

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -824,9 +824,9 @@
824824
"command": "robotcode.clearCacheRestartLanguageServers"
825825
},
826826
{
827-
"title": "Select Execution Profiles",
827+
"title": "Select Configuration Profiles",
828828
"category": "RobotCode",
829-
"command": "robotcode.selectExecutionProfiles"
829+
"command": "robotcode.selectConfigurationProfiles"
830830
},
831831
{
832832
"title": "Refresh",

vscode-client/testcontrollermanager.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ export class TestControllerManager {
266266
vscode.commands.registerCommand("robotcode.debugCurrentFile", async (...args) => {
267267
await vscode.commands.executeCommand("testing.debugCurrentFile", ...args);
268268
}),
269-
vscode.commands.registerCommand("robotcode.selectExecutionProfiles", async () => {
269+
vscode.commands.registerCommand("robotcode.selectConfigurationProfiles", async () => {
270270
await this.configureRunProfile();
271271
}),
272272
vscode.workspace.onDidChangeConfiguration(async (event) => {
@@ -465,7 +465,11 @@ export class TestControllerManager {
465465
}
466466

467467
const options = result.profiles.map((p) => {
468-
return { label: p.name, description: p.description, picked: p.selected };
468+
return {
469+
label: truncateAndReplaceNewlines(p.name.trim()),
470+
description: truncateAndReplaceNewlines(p.description.trim()),
471+
picked: p.selected,
472+
};
469473
});
470474

471475
const profiles = await vscode.window.showQuickPick([...options], {

0 commit comments

Comments
 (0)