mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
type converters, use namespace for Selection
This commit is contained in:
@@ -123,7 +123,7 @@ export class ExtHostEditors implements ExtHostEditorsShape {
|
||||
textEditor._acceptOptions(data.options);
|
||||
}
|
||||
if (data.selections) {
|
||||
const selections = data.selections.selections.map(TypeConverters.toSelection);
|
||||
const selections = data.selections.selections.map(TypeConverters.Selection.to);
|
||||
textEditor._acceptSelections(selections);
|
||||
}
|
||||
if (data.visibleRanges) {
|
||||
@@ -140,7 +140,7 @@ export class ExtHostEditors implements ExtHostEditorsShape {
|
||||
}
|
||||
if (data.selections) {
|
||||
const kind = TextEditorSelectionChangeKind.fromValue(data.selections.source);
|
||||
const selections = data.selections.selections.map(TypeConverters.toSelection);
|
||||
const selections = data.selections.selections.map(TypeConverters.Selection.to);
|
||||
this._onDidChangeTextEditorSelection.fire({
|
||||
textEditor,
|
||||
selections,
|
||||
|
||||
Reference in New Issue
Block a user