提交 edc2d3fa 编写于 作者: J Johannes Rieken

use isWeakRef as existence check for document references, #5117

上级 8f3ece6e
......@@ -294,7 +294,7 @@ export class ExtHostDocumentData extends MirrorModel2 {
}
get isDocumentReferenced(): boolean {
return this._documentRef && !weak.isDead(this._documentRef);
return weak.isWeakRef(this._documentRef) && !weak.isDead(this._documentRef);
}
_acceptLanguageId(newLanguageId: string): void {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册