mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 10:38:59 +01:00
Tweak ctor of SelectionRange, https://github.com/Microsoft/language-server-protocol/issues/613
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user