mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
use isWeakRef as existence check for document references, #5117
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user