File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/fable-standalone/src/Worker Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ type WorkerAnswer =
3636 | Loaded of version : string
3737 | LoadFailed
3838 | ParsedCode of errors : Fable.Standalone.Error []
39- | CompilationFinished of jsCode : string [] * errors : Fable.Standalone.Error [] * stats : CompileStats
39+ | CompilationFinished of jsCode : string * errors : Fable.Standalone.Error [] * stats : CompileStats
40+ | CompilationsFinished of jsCode : string [] * errors : Fable.Standalone.Error [] * stats : CompileStats
4041 | CompilerCrashed of message : string
4142 | FoundTooltip of id : Guid * lines : string []
4243 | FoundCompletions of id : Guid * Fable.Standalone.Completion []
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ let rec loop (box: MailboxProcessor<WorkerRequest>) (state: State) = async {
206206 | Some fable, CompileCode( fsharpCode, otherFSharpOptions) ->
207207 try
208208 let! ( jsCode , errors , stats ) = compileCode fable FILE_ NAME ([| FILE_ NAME |]) ([| fsharpCode |]) otherFSharpOptions
209- CompilationFinished ([| jsCode |] , errors, stats) |> state.Worker.Post
209+ CompilationFinished ( jsCode, errors, stats) |> state.Worker.Post
210210 with er ->
211211 JS.console.error er
212212 CompilerCrashed er.Message |> state.Worker.Post
@@ -233,7 +233,7 @@ let rec loop (box: MailboxProcessor<WorkerRequest>) (state: State) = async {
233233 combineStats c f // Stats
234234 )
235235
236- CompilationFinished combinedResults |> state.Worker.Post
236+ CompilationsFinished combinedResults |> state.Worker.Post
237237 with er ->
238238 JS.console.error er
239239 CompilerCrashed er.Message |> state.Worker.Post
You can’t perform that action at this time.
0 commit comments