Skip to content

Commit

Permalink
fix: disable runSubset
Browse files Browse the repository at this point in the history
See haskell#3458 (comment) for discussion.

It forces runSubset for editor which does not support the file change
notification project wise (helix/neovim/...).

The good:
- Way faster updates

The ugly:
- If you change a file by an external process, HLS will be lost. Open
  this file in your editor and manually trigger some changes so HLS will
  be on sync again.
  • Loading branch information
guibou committed May 22, 2023
1 parent b84110b commit c1079fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ghcide/src/Development/IDE/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ defaultMain recorder Arguments{..} = withHeapStats (cmapWithPrio LogHeapStats re
let def_options = argsIdeOptions config sessionLoader

-- disable runSubset if the client doesn't support watched files
runSubset <- (optRunSubset def_options &&) <$> LSP.runLspT env isWatchSupported
runSubset <- pure True
log Debug $ LogShouldRunSubset runSubset

let options = def_options
Expand Down

0 comments on commit c1079fc

Please sign in to comment.