We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8216d4 commit 8d07776Copy full SHA for 8d07776
1 file changed
src/vs/workbench/api/node/extHostDocumentsAndEditors.ts
@@ -101,7 +101,7 @@ export class ExtHostDocumentsAndEditors implements ExtHostDocumentsAndEditorsSha
101
data.selections.map(typeConverters.Selection.to),
102
data.options,
103
data.visibleRanges.map(typeConverters.Range.to),
104
- typeConverters.ViewColumn.to(data.editorPosition)
+ typeof data.editorPosition === 'undefined' ? undefined : typeConverters.ViewColumn.to(data.editorPosition)
105
);
106
this._editors.set(data.id, editor);
107
}
0 commit comments