File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/vs/workbench/services/editor/common Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export class CustomEditorLabelService extends Disposable implements ICustomEdito
40
40
private patterns : ICustomEditorLabelPattern [ ] = [ ] ;
41
41
private enabled = true ;
42
42
43
- private cache = new MRUCache < URI , string > ( 1000 ) ;
43
+ private cache = new MRUCache < URI , string | undefined > ( 1000 ) ;
44
44
45
45
constructor (
46
46
@IConfigurationService private readonly configurationService : IConfigurationService ,
@@ -126,9 +126,7 @@ export class CustomEditorLabelService extends Disposable implements ICustomEdito
126
126
}
127
127
128
128
const result = this . applyPatterns ( resource ) ;
129
- if ( result !== undefined ) {
130
- this . cache . set ( resource , result ) ;
131
- }
129
+ this . cache . set ( resource , result ) ;
132
130
133
131
return result ;
134
132
}
You can’t perform that action at this time.
0 commit comments