Sfoglia il codice sorgente

Fixes missing pending notification

main
Eric Amodio 1 anno fa
parent
commit
58a0db76f9
2 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  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 Vedi File

@ -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<any>, msg?: IpcMessage) {

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

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

Caricamento…
Annulla
Salva