return undefined from detached editor, #18797

This commit is contained in:
Johannes Rieken
2017-02-09 16:15:48 +01:00
parent abad8fa85d
commit c332a2e4e0

View File

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