Skip to content

Commit 706ad90

Browse files
committed
fix merge error
1 parent 4769e0f commit 706ad90

2 files changed

Lines changed: 9 additions & 11 deletions

File tree

src/Main/Completion.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,8 @@ let completion
356356
// let variables = game.References.ScriptVariableNames |> List.map (fun v -> {defaultCompletionItem with label = v; kind = Some CompletionItemKind.Variable })
357357
// logInfo (sprintf "completion prefix %A %A" prefixSoFar (items |> List.map (fun x -> x.label)))
358358

359-
// let stopwatch = System.Diagnostics.Stopwatch.StartNew()
360-
// stopwatch.Start()
359+
let stopwatch = System.Diagnostics.Stopwatch.StartNew()
360+
stopwatch.Start()
361361
let position = PosHelper.fromZ p.position.line p.position.character // |> (fun p -> Pos.fromZ)
362362

363363
let filetext =

src/Main/Program.fs

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -940,10 +940,9 @@ type Server(client: ILanguageClient) =
940940
| TrySuccess s -> Some s
941941
| TryFailure -> None)
942942
| _ -> None)
943-
|> List.ofArray
944-
|> (fun l -> if List.isEmpty l then [ VIC3Lang.English ] else l)
945-
|> List.map Lang.VIC3
946-
| _, VIC3 -> [ Lang.VIC3 VIC3Lang.English ]
943+
|> (fun l -> if Array.isEmpty l then [| VIC3Lang.English |] else l)
944+
|> Array.map Lang.VIC3
945+
| _, VIC3 -> [| Lang.VIC3 VIC3Lang.English |]
947946
| JsonValue.Array (o: JsonValue array), EU5 ->
948947
o
949948
|> Array.choose (function
@@ -952,11 +951,10 @@ type Server(client: ILanguageClient) =
952951
| TrySuccess s -> Some s
953952
| TryFailure -> None)
954953
| _ -> None)
955-
|> List.ofArray
956-
|> (fun l -> if List.isEmpty l then [ EU5Lang.English ] else l)
957-
|> List.map Lang.EU5
958-
| _, EU5 -> [ Lang.EU5 EU5Lang.English ]
959-
| _, Custom -> [ Lang.Custom CustomLang.English ]
954+
|> (fun l -> if Array.isEmpty l then [| EU5Lang.English |] else l)
955+
|> Array.map Lang.EU5
956+
| _, EU5 -> [| Lang.EU5 EU5Lang.English |]
957+
| _, Custom -> [| Lang.Custom CustomLang.English |]
960958

961959
languages <- newLanguages
962960

0 commit comments

Comments
 (0)