use isWeakRef as existence check for document references, #5117

This commit is contained in:
Johannes Rieken
2016-04-11 12:12:21 +02:00
parent 8f3ece6e1f
commit edc2d3fa5b

View File

@@ -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 {