File tree Expand file tree Collapse file tree
src/vs/workbench/parts/extensions/electron-browser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import { IExtensionsWorkbenchService } from 'vs/workbench/parts/extensions/commo
2424export class ExtensionsAutoProfiler extends Disposable implements IWorkbenchContribution {
2525
2626 private readonly _session = new Map < ICpuProfilerTarget , CancellationTokenSource > ( ) ;
27+ private readonly _blame = new Set < string > ( ) ;
2728
2829 constructor (
2930 @IExtensionService private _extensionService : IExtensionService ,
@@ -170,6 +171,12 @@ export class ExtensionsAutoProfiler extends Disposable implements IWorkbenchCont
170171 return ;
171172 }
172173
174+ // only blame once per extension, don't blame too often
175+ if ( this . _blame . has ( extension . id ) || this . _blame . size >= 3 ) {
176+ return ;
177+ }
178+ this . _blame . add ( extension . id ) ;
179+
173180 // user-facing message when very bad...
174181 this . _notificationService . prompt (
175182 Severity . Info ,
You can’t perform that action at this time.
0 commit comments