File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ import {
2727 PrimaryActionAuto ,
2828 PrimaryActionCore ,
2929 ProcessAssembly ,
30+ makePosition ,
3031} from './types' ;
3132
3233const routes = {
@@ -430,7 +431,7 @@ export const enableFeatureGate = (featureGate: string) =>
430431 createAction ( ActionType . EnableFeatureGate , { featureGate } ) ;
431432
432433export const gotoPosition = ( line : string | number , column : string | number ) =>
433- createAction ( ActionType . GotoPosition , { line : + line , column : + column } ) ;
434+ createAction ( ActionType . GotoPosition , makePosition ( line , column ) ) ;
434435
435436const requestFormat = ( ) =>
436437 createAction ( ActionType . RequestFormat ) ;
Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ export interface Position {
55 column : number ;
66}
77
8+ export const makePosition = ( line : string | number , column : string | number ) : Position =>
9+ ( { line : + line , column : + column } ) ;
10+
811export interface Crate {
912 id : string ;
1013 name : string ;
You can’t perform that action at this time.
0 commit comments