enable 'New Notebook' entry points for PG SQL (#5194)

* enable 'New Notebook' entry points for PG SQL

* fix comment

* permanent fix for context menu entry point
This commit is contained in:
Alan Ren
2019-04-25 16:23:01 -07:00
committed by GitHub
parent 6528c0817d
commit 705e7b30bc
6 changed files with 23 additions and 8 deletions

View File

@@ -124,7 +124,7 @@ export class ServerTreeActionProvider extends ContributableActionProvider {
private getContextKeyService(context: ObjectExplorerContext): IContextKeyService {
let scopedContextService = this._contextKeyService.createScoped();
let connectionContextKey = new ConnectionContextKey(scopedContextService);
let connectionContextKey = new ConnectionContextKey(scopedContextService, this._queryManagementService);
let connectionProfile = context && context.profile;
connectionContextKey.set(connectionProfile);
let serverInfoContextKey = new ServerInfoContextKey(scopedContextService);