File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 78
78
" ./vs/base/common/winjs.base.d.ts" ,
79
79
" ./vs/base/common/winjs.polyfill.promise.ts" ,
80
80
" ./vs/base/common/worker/simpleWorker.ts" ,
81
+ " ./vs/workbench/common/resources.ts" ,
81
82
" ./vs/base/node/decoder.ts" ,
82
83
" ./vs/base/node/id.ts" ,
83
84
" ./vs/base/node/paths.ts" ,
313
314
"exclude" : [
314
315
" ./typings/require-monaco.d.ts"
315
316
]
316
- }
317
+ }
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export class ResourceContextKey extends Disposable implements IContextKey<URI> {
25
25
private _resourceKey : IContextKey < URI > ;
26
26
private _schemeKey : IContextKey < string > ;
27
27
private _filenameKey : IContextKey < string > ;
28
- private _langIdKey : IContextKey < string > ;
28
+ private _langIdKey : IContextKey < string | null > ;
29
29
private _extensionKey : IContextKey < string > ;
30
30
private _hasResource : IContextKey < boolean > ;
31
31
private _isfileSystemResource : IContextKey < boolean > ;
@@ -58,7 +58,7 @@ export class ResourceContextKey extends Disposable implements IContextKey<URI> {
58
58
this . _resourceKey . set ( value ) ;
59
59
this . _schemeKey . set ( value && value . scheme ) ;
60
60
this . _filenameKey . set ( value && paths . basename ( value . fsPath ) ) ;
61
- this . _langIdKey . set ( value && this . _modeService . getModeIdByFilepathOrFirstLine ( value . fsPath ) ) ;
61
+ this . _langIdKey . set ( value ? this . _modeService . getModeIdByFilepathOrFirstLine ( value . fsPath ) : null ) ;
62
62
this . _extensionKey . set ( value && paths . extname ( value . fsPath ) ) ;
63
63
this . _hasResource . set ( ! ! value ) ;
64
64
this . _isfileSystemResource . set ( value && this . _fileService . canHandleResource ( value ) ) ;
You can’t perform that action at this time.
0 commit comments