mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
Fixes fallthrough with no options
This commit is contained in:
@@ -66,12 +66,17 @@ export class ExtHostEditors extends ExtHostEditorsShape {
|
||||
preserveFocus: preserveFocus,
|
||||
pinned: true
|
||||
};
|
||||
} else {
|
||||
} else if (typeof columnOrOptions === 'object') {
|
||||
options = {
|
||||
position: TypeConverters.fromViewColumn(columnOrOptions.column),
|
||||
preserveFocus: columnOrOptions.preserveFocus,
|
||||
pinned: columnOrOptions.preview === undefined ? true : !columnOrOptions.preview
|
||||
};
|
||||
} else {
|
||||
options = {
|
||||
preserveFocus: false,
|
||||
pinned: true
|
||||
};
|
||||
}
|
||||
|
||||
return this._proxy.$tryShowTextDocument(<URI>document.uri, options).then(id => {
|
||||
|
||||
Reference in New Issue
Block a user