Skip to content

Commit

Permalink
never seen fantomas used this way
Browse files Browse the repository at this point in the history
  • Loading branch information
Happypig375 committed Aug 12, 2023
1 parent 2e11c07 commit e77937f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/FsAutoComplete/LspServers/AdaptiveFSharpLspServer.fs
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,8 @@ type AdaptiveFSharpLspServer
disposables.Add
<| fileChecked.Publish.Subscribe(fun (parseAndCheck, volatileFile, ct) ->
if volatileFile.Source.Length = 0 then
()
else // Don't analyze and error on an empty file
() // Don't analyze and error on an empty file
else
async {
let config = config |> AVal.force
do! builtInCompilerAnalyzers config volatileFile parseAndCheck
Expand Down Expand Up @@ -2443,8 +2443,8 @@ type AdaptiveFSharpLspServer
let! volatileFile = forceFindOpenFileOrRead filePath |> AsyncResult.ofStringErr

if volatileFile.Source.Length = 0 then
return None
else // An empty file has empty completions. Otherwise we would error down there
return None // An empty file has empty completions. Otherwise we would error down there
else

let! lineStr = volatileFile.Source |> tryGetLineStr pos |> Result.ofStringErr

Expand Down

0 comments on commit e77937f

Please sign in to comment.