Skip to content

Commit

Permalink
Prevent duplicate view welcome content
Browse files Browse the repository at this point in the history
  • Loading branch information
msujew committed Jun 20, 2022
1 parent bab027a commit 48e277b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,9 @@ export class PluginViewRegistry implements FrontendApplicationContribution {
const toDispose = new DisposableCollection();

const viewsWelcome = this.viewsWelcome.get(viewWelcome.view) || [];
if (viewsWelcome.some(e => e.content === viewWelcome.content)) {
return toDispose;
}
viewsWelcome.push(viewWelcome);
this.viewsWelcome.set(viewWelcome.view, viewsWelcome);
this.handleViewWelcomeChange(viewWelcome.view);
Expand Down

0 comments on commit 48e277b

Please sign in to comment.