Skip to content

Commit

Permalink
Hack into the unknown (#2024)
Browse files Browse the repository at this point in the history
  • Loading branch information
nturinski authored May 23, 2022
1 parent 3f2fee2 commit dc38ac3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vscode-cosmosdb",
"version": "0.18.2-alpha.17",
"version": "0.18.2-alpha.18",
"aiKey": "AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",
"publisher": "ms-azuretools",
"displayName": "Azure Databases",
Expand Down
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export async function activateInternal(context: vscode.ExtensionContext, perfSta
ext.rgApi = await getResourceGroupsApi();
ext.rgApi.registerApplicationResourceResolver('ms-azuretools.vscode-cosmosdb', new DatabaseResolver());

const workspaceRootTreeItem = (await ext.rgApi.workspaceResourceTree.getChildren())[0] as AzExtParentTreeItem;
const workspaceRootTreeItem = (ext.rgApi.workspaceResourceTree as unknown as { _rootTreeItem: AzExtParentTreeItem })._rootTreeItem;
const databaseWorkspaceProvider = new DatabaseWorkspaceProvider(workspaceRootTreeItem);
ext.rgApi.registerWorkspaceResourceProvider('ms-azuretools.vscode-cosmosdb', databaseWorkspaceProvider);

Expand Down

0 comments on commit dc38ac3

Please sign in to comment.