Skip to content

Commit 117f90f

Browse files
committed
Hide more commands
1 parent 24f644b commit 117f90f

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

package.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,15 +303,16 @@
303303
"when": "coder.authenticated"
304304
},
305305
{
306-
"command": "coder.viewLogs"
306+
"command": "coder.viewLogs",
307+
"when": "true"
307308
},
308309
{
309310
"command": "coder.openAppStatus",
310-
"when": "coder.authenticated"
311+
"when": "false"
311312
},
312313
{
313-
"command": "coder.debug.listDeployments",
314-
"when": "coder.devMode"
314+
"command": "coder.open",
315+
"when": "coder.authenticated"
315316
},
316317
{
317318
"command": "coder.openFromSidebar",
@@ -324,6 +325,10 @@
324325
{
325326
"command": "coder.searchAllWorkspaces",
326327
"when": "false"
328+
},
329+
{
330+
"command": "coder.debug.listDeployments",
331+
"when": "coder.devMode"
327332
}
328333
],
329334
"view/title": [

src/commands.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ export class Commands {
242242
*
243243
* Otherwise, the currently connected workspace is used (if any).
244244
*/
245-
public async navigateToWorkspace(item: OpenableTreeItem) {
245+
public async navigateToWorkspace(item?: OpenableTreeItem) {
246246
if (item) {
247247
const baseUrl = this.requireExtensionBaseUrl();
248248
const workspaceId = createWorkspaceIdentifier(item.workspace);
@@ -266,7 +266,7 @@ export class Commands {
266266
*
267267
* Otherwise, the currently connected workspace is used (if any).
268268
*/
269-
public async navigateToWorkspaceSettings(item: OpenableTreeItem) {
269+
public async navigateToWorkspaceSettings(item?: OpenableTreeItem) {
270270
if (item) {
271271
const baseUrl = this.requireExtensionBaseUrl();
272272
const workspaceId = createWorkspaceIdentifier(item.workspace);

0 commit comments

Comments
 (0)