Skip to content

Commit c89dbaf

Browse files
committed
updating command names for better scoping
1 parent 00702ee commit c89dbaf

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,29 +120,29 @@
120120
"view/title": [
121121
{
122122
"command": "vscode-cmsis-debugger.liveWatch.add",
123-
"when": "view == vscode-cmsis-debugger.liveWatch",
123+
"when": "view == cmsis-debugger.liveWatch",
124124
"group": "navigation@1"
125125
},
126126
{
127127
"command": "vscode-cmsis-debugger.liveWatch.deleteAll",
128-
"when": "view == vscode-cmsis-debugger.liveWatch",
128+
"when": "view == cmsis-debugger.liveWatch",
129129
"group": "navigation@3"
130130
},
131131
{
132132
"command": "vscode-cmsis-debugger.liveWatch.refresh",
133-
"when": "view == vscode-cmsis-debugger.liveWatch",
133+
"when": "view == cmsis-debugger.liveWatch",
134134
"group": "navigation@2"
135135
}
136136
],
137137
"view/item/context": [
138138
{
139139
"command": "vscode-cmsis-debugger.liveWatch.modify",
140-
"when": "view == vscode-cmsis-debugger.liveWatch && viewItem == expression",
140+
"when": "view == cmsis-debugger.liveWatch && viewItem == expression",
141141
"group": "inline@1"
142142
},
143143
{
144144
"command": "vscode-cmsis-debugger.liveWatch.delete",
145-
"when": "view == vscode-cmsis-debugger.liveWatch && viewItem == expression",
145+
"when": "view == cmsis-debugger.liveWatch && viewItem == expression",
146146
"group": "inline@2"
147147
}
148148
]

src/views/live-watch/live-watch.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,11 @@ export class LiveWatchTreeDataProvider implements vscode.TreeDataProvider<LiveWa
133133

134134
private addVSCodeCommands() {
135135
const registerLiveWatchView = vscode.window.registerTreeDataProvider('cmsis-debugger.liveWatch', this);
136-
const addCommand = vscode.commands.registerCommand('cmsis-debugger.liveWatch.add', async () => await this.registerAddCommand());
137-
const deleteAllCommand = vscode.commands.registerCommand('cmsis-debugger.liveWatch.deleteAll', async () => await this.registerDeleteAllCommand());
138-
const deleteCommand = vscode.commands.registerCommand('cmsis-debugger.liveWatch.delete', async (node) => await this.registerDeleteCommand(node));
139-
const refreshCommand = vscode.commands.registerCommand('cmsis-debugger.liveWatch.refresh', async () => await this.refresh());
140-
const modifyCommand = vscode.commands.registerCommand('cmsis-debugger.liveWatch.modify', async (node) => await this.registerRenameCommand(node));
136+
const addCommand = vscode.commands.registerCommand('vscode-cmsis-debugger.liveWatch.add', async () => await this.registerAddCommand());
137+
const deleteAllCommand = vscode.commands.registerCommand('vscode-cmsis-debugger.liveWatch.deleteAll', async () => await this.registerDeleteAllCommand());
138+
const deleteCommand = vscode.commands.registerCommand('vscode-cmsis-debugger.liveWatch.delete', async (node) => await this.registerDeleteCommand(node));
139+
const refreshCommand = vscode.commands.registerCommand('vscode-cmsis-debugger.liveWatch.refresh', async () => await this.refresh());
140+
const modifyCommand = vscode.commands.registerCommand('vscode-cmsis-debugger.liveWatch.modify', async (node) => await this.registerRenameCommand(node));
141141
this._context.subscriptions.push(registerLiveWatchView,
142142
addCommand,
143143
deleteAllCommand, deleteCommand, refreshCommand, modifyCommand);

0 commit comments

Comments
 (0)