fix the issue with explorer widget context menu (#11373)

This commit is contained in:
Alan Ren
2020-07-16 10:22:47 -07:00
committed by GitHub
parent 021c01e0b6
commit 16f24d8c6a
2 changed files with 2 additions and 1 deletions

View File

@@ -117,7 +117,7 @@ export class ExplorerTable extends Disposable {
}; };
} else { } else {
context = { context = {
profile: dataContext, profile: dataContext.toIConnectionProfile(),
uri: this.bootStrapService.getUnderlyingUri() uri: this.bootStrapService.getUnderlyingUri()
}; };
} }

View File

@@ -296,6 +296,7 @@ MenuRegistry.appendMenuItem(MenuId.ExplorerWidgetContext, {
id: commands.ExplorerScriptCreateAction.ID, id: commands.ExplorerScriptCreateAction.ID,
title: commands.ExplorerScriptCreateAction.LABEL title: commands.ExplorerScriptCreateAction.LABEL
}, },
when: ItemContextKey.ItemType.notEqualsTo('database'),
order: 2 order: 2
}); });
//#endregion //#endregion