Browse Source

Fixes missing pending notification

main
Eric Amodio 2 years ago
parent
commit
58a0db76f9
2 changed files with 3 additions and 2 deletions
  1. +1
    -0
      src/plus/webviews/graph/graphWebview.ts
  2. +2
    -2
      src/plus/webviews/graph/protocol.ts

+ 1
- 0
src/plus/webviews/graph/graphWebview.ts View File

@ -1339,6 +1339,7 @@ export class GraphWebview extends WebviewBase {
[DidChangeSubscriptionNotificationType, this.notifyDidChangeSubscription], [DidChangeSubscriptionNotificationType, this.notifyDidChangeSubscription],
[DidChangeWorkingTreeNotificationType, this.notifyDidChangeWorkingTree], [DidChangeWorkingTreeNotificationType, this.notifyDidChangeWorkingTree],
[DidChangeWindowFocusNotificationType, this.notifyDidChangeWindowFocus], [DidChangeWindowFocusNotificationType, this.notifyDidChangeWindowFocus],
[DidFetchNotificationType, this.notifyDidFetch],
]); ]);
private addPendingIpcNotification(type: IpcNotificationType<any>, msg?: IpcMessage) { private addPendingIpcNotification(type: IpcNotificationType<any>, msg?: IpcMessage) {

+ 2
- 2
src/plus/webviews/graph/protocol.ts View File

@ -270,7 +270,7 @@ export const UpdateSelectionCommandType = new IpcCommandType
export interface DidChangeParams { export interface DidChangeParams {
state: State; state: State;
} }
export const DidChangeNotificationType = new IpcNotificationType<DidChangeParams>('graph/didChange');
export const DidChangeNotificationType = new IpcNotificationType<DidChangeParams>('graph/didChange', true);
export interface DidChangeGraphConfigurationParams { export interface DidChangeGraphConfigurationParams {
config: GraphComponentConfig; config: GraphComponentConfig;
@ -381,4 +381,4 @@ export const DidSearchNotificationType = new IpcNotificationType
export interface DidFetchParams { export interface DidFetchParams {
lastFetched: Date; lastFetched: Date;
} }
export const DidFetchNotificationType = new IpcNotificationType<DidFetchParams>('graph/didFetch');
export const DidFetchNotificationType = new IpcNotificationType<DidFetchParams>('graph/didFetch', true);

Loading…
Cancel
Save