提交 4dd31e92 编写于 作者: J Johannes Rieken

fix #65041

上级 0dd507ab
......@@ -52,6 +52,11 @@ export class ResourceContextKey extends Disposable implements IContextKey<URI> {
this._isFileSystemResource.set(Boolean(resource && _fileService.canHandleResource(resource)));
this._isFileSystemResourceOrUntitled.set(this._isFileSystemResource.get() || this._schemeKey.get() === Schemas.untitled);
}));
this._register(_modeService.onDidCreateMode(() => {
const value = this._resourceKey.get();
this._langIdKey.set(value ? this._modeService.getModeIdByFilepathOrFirstLine(value.fsPath) : null);
}));
}
set(value: URI) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册