Skip to content

Commit d8a46bf

Browse files
committed
Make workspace command ids consistent
1 parent 9668580 commit d8a46bf

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163
"icon": "$(gear)"
164164
},
165165
{
166-
"command": "azureResourceGroups.refreshWorkspace",
166+
"command": "azureWorkspace.refresh",
167167
"title": "%azureResourceGroups.refresh%",
168168
"category": "Azure",
169169
"icon": "$(refresh)"
@@ -265,7 +265,7 @@
265265
"group": "navigation@3"
266266
},
267267
{
268-
"command": "azureResourceGroups.refreshWorkspace",
268+
"command": "azureWorkspace.refresh",
269269
"when": "view == azureWorkspace",
270270
"group": "navigation@10"
271271
},
@@ -361,7 +361,7 @@
361361
"when": "never"
362362
},
363363
{
364-
"command": "azureResourceGroups.refreshWorkspace",
364+
"command": "azureWorkspace.refresh",
365365
"when": "never"
366366
},
367367
{

package.nls.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"azureResourceGroups.loadMore": "Load More",
99
"azureResourceGroups.openInPortal": "Open in Portal",
1010
"azureResourceGroups.refresh": "Refresh",
11-
"azureResourceGroups.refreshWorkspace": "Refresh Workspace",
11+
"azureWorkspace.refresh": "Refresh Workspace",
1212
"azureResourceGroups.revealResource": "Reveal Resource",
1313
"azureResourceGroups.viewProperties": "View Properties",
1414
"azureResourceGroups.deleteConfirmation": "The behavior to use when confirming delete of a resource group.",

src/commands/registerCommands.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ export function registerCommands(): void {
4646
registerErrorHandler(c => c.errorHandling.suppressReportIssue = true);
4747
registerReportIssueCommand('azureResourceGroups.reportIssue');
4848
registerCommand('azureResourceGroups.createResource', createResource);
49-
registerCommand('azureResourceGroups.refreshWorkspace', refreshWorkspace);
50-
registerCommand('azureWorkspace.loadMore', async (context: IActionContext, node: AzExtTreeItem) => await ext.workspaceTree.loadMore(node, context));
5149

5250
registerCommand('azureResourceGroups.groupBy.resourceGroup', buildGroupByCommand('resourceGroup'));
5351
registerCommand('azureResourceGroups.groupBy.resourceType', buildGroupByCommand('resourceType'));
@@ -66,4 +64,7 @@ export function registerCommands(): void {
6664
context.telemetry.properties.url = url;
6765
await openUrl(url)
6866
});
67+
68+
registerCommand('azureWorkspace.refresh', refreshWorkspace);
69+
registerCommand('azureWorkspace.loadMore', async (context: IActionContext, node: AzExtTreeItem) => await ext.workspaceTree.loadMore(node, context));
6970
}

0 commit comments

Comments
 (0)