Skip to content

Commit a09b214

Browse files
committed
Remove Async.RunSynchronously
1 parent 32942d2 commit a09b214

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/Compiler/Service/FSharpCheckerResults.fs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3895,6 +3895,9 @@ type FSharpCheckProjectResults
38953895
|> Array.toSeq
38963896
#endif //!FABLE_COMPILER
38973897
| Choice2Of2 task ->
3898+
#if FABLE_COMPILER
3899+
seq {}
3900+
#else
38983901
Async.RunSynchronously(
38993902
async {
39003903
let! tcSymbolUses = task
@@ -3907,6 +3910,7 @@ type FSharpCheckProjectResults
39073910
},
39083911
?cancellationToken = cancellationToken
39093912
)
3913+
#endif //!FABLE_COMPILER
39103914

39113915
results
39123916
|> Seq.filter (fun symbolUse -> symbolUse.ItemOccurrence <> ItemOccurrence.RelatedText)
@@ -3925,7 +3929,7 @@ type FSharpCheckProjectResults
39253929

39263930
let cenv = SymbolEnv(tcGlobals, thisCcu, Some ccuSig, tcImports)
39273931

3928-
let tcSymbolUses =
3932+
let tcSymbolUses : TcSymbolUses seq =
39293933
match builderOrSymbolUses with
39303934
| Choice1Of2 builder ->
39313935
#if FABLE_COMPILER
@@ -3943,7 +3947,12 @@ type FSharpCheckProjectResults
39433947
| _ -> TcSymbolUses.Empty)
39443948
|> Array.toSeq
39453949
#endif //!FABLE_COMPILER
3946-
| Choice2Of2 tcSymbolUses -> Async.RunSynchronously(tcSymbolUses, ?cancellationToken = cancellationToken)
3950+
| Choice2Of2 tcSymbolUses ->
3951+
#if FABLE_COMPILER
3952+
seq {}
3953+
#else
3954+
Async.RunSynchronously(tcSymbolUses, ?cancellationToken = cancellationToken)
3955+
#endif //!FABLE_COMPILER
39473956

39483957
[|
39493958
for r in tcSymbolUses do

0 commit comments

Comments
 (0)