also check for nearDeath when accessing a document, #4488

This commit is contained in:
Johannes Rieken
2016-04-08 11:34:50 +02:00
parent a611a734b2
commit bac28cc23d

View File

@@ -294,7 +294,7 @@ export class ExtHostDocumentData extends MirrorModel2 {
}
get isDocumentReferenced(): boolean {
return this._documentRef && !weak.isDead(this._documentRef);
return this._documentRef && !weak.isNearDeath(this._documentRef) && !weak.isDead(this._documentRef) ;
}
_acceptLanguageId(newLanguageId: string): void {