This commit is contained in:
Johannes Rieken
2018-12-27 10:07:23 +01:00
parent 577f744a3e
commit 96d2413a4e
5 changed files with 8 additions and 8 deletions

View File

@@ -855,7 +855,7 @@ export namespace SelectionRange {
}
export function to(obj: modes.SelectionRange): vscode.SelectionRange {
return new types.SelectionRange(SelectionRangeKind.to(obj.kind), Range.to(obj.range));
return new types.SelectionRange(Range.to(obj.range), SelectionRangeKind.to(obj.kind));
}
}

View File

@@ -1060,9 +1060,9 @@ export class SelectionRange {
kind: SelectionRangeKind;
range: Range;
constructor(kind: SelectionRangeKind, range: Range) {
this.kind = kind;
constructor(range: Range, kind: SelectionRangeKind, ) {
this.range = range;
this.kind = kind;
}
}