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

fix double model issue

上级 7e7e5d91
......@@ -151,6 +151,10 @@ class CellContentProvider implements ITextModelContentProvider {
}
async provideTextContent(resource: URI): Promise<ITextModel | null> {
const existing = this._modelService.getModel(resource);
if (existing) {
return existing;
}
const data = parseCellUri(resource);
if (!data) {
return null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册