mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
return undefined from detached editor, #18797
This commit is contained in:
@@ -501,7 +501,9 @@ class ExtHostTextEditor implements vscode.TextEditor {
|
||||
// ---- the document
|
||||
|
||||
get document(): vscode.TextDocument {
|
||||
return this._documentData.document;
|
||||
return this._documentData
|
||||
? this._documentData.document
|
||||
: undefined;
|
||||
}
|
||||
|
||||
set document(value) {
|
||||
|
||||
Reference in New Issue
Block a user