File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
src/vs/workbench/contrib/extensions/browser Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ export class FileBasedRecommendations extends ExtensionRecommendations {
55
55
private readonly recommendationsByPattern = new Map < string , IStringDictionary < IFileOpenCondition [ ] > > ( ) ;
56
56
private readonly fileBasedRecommendations = new Map < string , { recommendedTime : number } > ( ) ;
57
57
private readonly fileBasedImportantRecommendations = new Set < string > ( ) ;
58
+ private readonly processedFileExtensions : string [ ] = [ ] ;
58
59
59
60
get recommendations ( ) : ReadonlyArray < ExtensionRecommendation > {
60
61
const recommendations : ExtensionRecommendation [ ] = [ ] ;
@@ -156,7 +157,11 @@ export class FileBasedRecommendations extends ExtensionRecommendations {
156
157
return ;
157
158
}
158
159
159
- this . promptRecommendedExtensionForFileExtension ( uri , extname ( uri ) . toLowerCase ( ) ) ;
160
+ const fileExtension = extname ( uri ) . toLowerCase ( ) ;
161
+ if ( ! this . processedFileExtensions . includes ( fileExtension ) ) {
162
+ this . processedFileExtensions . push ( fileExtension ) ;
163
+ this . promptRecommendedExtensionForFileExtension ( uri , fileExtension ) ;
164
+ }
160
165
}
161
166
162
167
/**
You can’t perform that action at this time.
0 commit comments