Fix another case where typeConverters.ViewColumn.to could be passed undefined

This commit is contained in:
Matt Bierner
2019-02-11 17:24:26 -08:00
parent a7ef42a93c
commit 614ad268cb
2 changed files with 2 additions and 2 deletions

View File

@@ -101,7 +101,7 @@ export class ExtHostDocumentsAndEditors implements ExtHostDocumentsAndEditorsSha
data.selections.map(typeConverters.Selection.to),
data.options,
data.visibleRanges.map(typeConverters.Range.to),
typeof data.editorPosition === 'undefined' ? undefined : typeConverters.ViewColumn.to(data.editorPosition)
typeof data.editorPosition === 'number' ? typeConverters.ViewColumn.to(data.editorPosition) : undefined
);
this._editors.set(data.id, editor);
}