Skip to content

Commit

Permalink
feat: reset application state when webview resolves
Browse files Browse the repository at this point in the history
  • Loading branch information
yaslam-dev committed Feb 23, 2024
1 parent 785f7a4 commit 48dc5f4
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions ext-src/providers/recommendation.provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,12 @@ export class RecommendationWebView implements WebviewViewProvider {
name: currentWorkSpaceFolder,
},
});
}, 600);

this.extensionEventEmitter.fire({
type: 'onDiscardSuggestionClicked:Success',
data: {},
});
}, 500);
}
}

Expand All @@ -133,12 +138,6 @@ export class RecommendationWebView implements WebviewViewProvider {
}

this.eventEmitterQueue = [];
debugChannel.appendLine(
'Metabob webview is visible now. Cleanup Events: ' + this.eventEmitterQueue.length,
);
debugChannel.appendLine('this.intervals: ' + this.interval);

clearInterval(this.interval);
}

activateExtensionEventListener(): void {
Expand Down

0 comments on commit 48dc5f4

Please sign in to comment.