mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 04:49:35 +00:00
Remove unnecessary listener (the initial reason the listener was added is now covered by IModeService.onModelModeChanged
)
This commit is contained in:
parent
ea12cfecf0
commit
bcc088aa50
|
@ -66,7 +66,6 @@ export class ResourceContextKey implements IContextKey<URI> {
|
|||
this._isFileSystemResource.set(Boolean(resource && _fileService.hasProvider(resource)));
|
||||
}));
|
||||
|
||||
this._disposables.add(_languageService.onDidEncounterLanguage(this._setLangId, this));
|
||||
this._disposables.add(_modelService.onModelAdded(model => {
|
||||
if (isEqual(model.uri, this.get())) {
|
||||
this._setLangId();
|
||||
|
|
Loading…
Reference in a new issue