Skip to content

Commit 8d07776

Browse files
committed
Fix potential exception
1 parent a8216d4 commit 8d07776

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/workbench/api/node/extHostDocumentsAndEditors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export class ExtHostDocumentsAndEditors implements ExtHostDocumentsAndEditorsSha
101101
data.selections.map(typeConverters.Selection.to),
102102
data.options,
103103
data.visibleRanges.map(typeConverters.Range.to),
104-
typeConverters.ViewColumn.to(data.editorPosition)
104+
typeof data.editorPosition === 'undefined' ? undefined : typeConverters.ViewColumn.to(data.editorPosition)
105105
);
106106
this._editors.set(data.id, editor);
107107
}

0 commit comments

Comments
 (0)