mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-25 17:23:10 -05:00
Fix context menu for disconnected server nodes (#12018)
* Fix context menu for disconnected server nodes * Fix strict compile
This commit is contained in:
@@ -143,7 +143,9 @@ export class ServerTreeActionProvider {
|
||||
let serverInfoContextKey = new ServerInfoContextKey(scopedContextService);
|
||||
if (connectionProfile.id) {
|
||||
let serverInfo = this._connectionManagementService.getServerInfo(connectionProfile.id);
|
||||
serverInfoContextKey.set(serverInfo);
|
||||
if (serverInfo) {
|
||||
serverInfoContextKey.set(serverInfo);
|
||||
}
|
||||
}
|
||||
let treeNodeContextKey = new TreeNodeContextKey(scopedContextService);
|
||||
if (context.treeNode) {
|
||||
|
||||
Reference in New Issue
Block a user