Skip to content

Commit 60d45ae

Browse files
committed
fix: disable runSubset
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.
1 parent feb5965 commit 60d45ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ghcide/src/Development/IDE/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ defaultMain recorder Arguments{..} = withHeapStats (cmapWithPrio LogHeapStats re
329329
let def_options = argsIdeOptions config sessionLoader
330330

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

335335
let options = def_options

0 commit comments

Comments
 (0)