Remove unnecessary listener (the initial reason the listener was added is now covered by IModeService.onModelModeChanged)

This commit is contained in:
Alex Dima 2021-12-08 17:30:29 +01:00
parent ea12cfecf0
commit bcc088aa50
No known key found for this signature in database
GPG key ID: 39563C1504FDD0C9

View file

@ -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();