提交 0b847998 编写于 作者: J Joao Moreno

bad model reference disposal

fixes #16050
上级 ced1d697
......@@ -189,7 +189,9 @@ export class MainThreadDocuments extends MainThreadDocumentsShape {
private _handleAsResourceInput(uri: URI): TPromise<boolean> {
return this._textModelResolverService.createModelReference(uri).then(ref => {
const result = !!ref.object;
ref.dispose();
// TODO@Joao TODO@Joh when should this model reference be disposed?
// ref.dispose();
return result;
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册