Skip to content

Commit b12b8d0

Browse files
committed
better name for contextkey
1 parent 83e2c93 commit b12b8d0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
{
8383
"view": "ObjectScriptExplorer",
8484
"contents": "Connect a workspace folder to an [InterSystems server](https://intersystems-community.github.io/vscode-objectscript/serverside/) if you want to export or import ObjectScript code.\n[Choose Server and Namespace](command:vscode-objectscript.connectFolderToServerNamespace)\nOr [hide this ObjectScript view](command:vscode-objectscript.hideExplorerForWorkspace) if it is not needed for the current workspace.",
85-
"when": "vscode-objectscript.explorerRoots == 0"
85+
"when": "vscode-objectscript.explorerRootCount == 0"
8686
}
8787
],
8888
"menus": {

src/explorer/explorer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export class ObjectScriptExplorerProvider implements vscode.TreeDataProvider<Nod
127127
});
128128
}
129129
});
130-
await vscode.commands.executeCommand("setContext", "vscode-objectscript.explorerRoots", rootNodes.length);
130+
await vscode.commands.executeCommand("setContext", "vscode-objectscript.explorerRootCount", rootNodes.length);
131131
return rootNodes;
132132
}
133133
}

0 commit comments

Comments
 (0)