From 58a0db76f9b23fa6ad24b9a879b21e90fcb38426 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Thu, 9 Feb 2023 01:36:37 -0500 Subject: [PATCH] Fixes missing pending notification --- src/plus/webviews/graph/graphWebview.ts | 1 + src/plus/webviews/graph/protocol.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plus/webviews/graph/graphWebview.ts b/src/plus/webviews/graph/graphWebview.ts index 5013ed7..b2255a2 100644 --- a/src/plus/webviews/graph/graphWebview.ts +++ b/src/plus/webviews/graph/graphWebview.ts @@ -1339,6 +1339,7 @@ export class GraphWebview extends WebviewBase { [DidChangeSubscriptionNotificationType, this.notifyDidChangeSubscription], [DidChangeWorkingTreeNotificationType, this.notifyDidChangeWorkingTree], [DidChangeWindowFocusNotificationType, this.notifyDidChangeWindowFocus], + [DidFetchNotificationType, this.notifyDidFetch], ]); private addPendingIpcNotification(type: IpcNotificationType, msg?: IpcMessage) { diff --git a/src/plus/webviews/graph/protocol.ts b/src/plus/webviews/graph/protocol.ts index b8be48f..23dc72b 100644 --- a/src/plus/webviews/graph/protocol.ts +++ b/src/plus/webviews/graph/protocol.ts @@ -270,7 +270,7 @@ export const UpdateSelectionCommandType = new IpcCommandType('graph/didChange'); +export const DidChangeNotificationType = new IpcNotificationType('graph/didChange', true); export interface DidChangeGraphConfigurationParams { config: GraphComponentConfig; @@ -381,4 +381,4 @@ export const DidSearchNotificationType = new IpcNotificationType('graph/didFetch'); +export const DidFetchNotificationType = new IpcNotificationType('graph/didFetch', true);