File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,8 @@ main = do
7171 then Test. plugin
7272 else mempty
7373
74+ ,Main. argsThreads = case argsThreads of 0 -> Nothing ; i -> Just (fromIntegral i)
75+
7476 ,Main. argsIdeOptions = \ config sessionLoader ->
7577 let defOptions = defaultIdeOptions sessionLoader
7678 in defOptions
Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ runLspMode ghcideArgs@GhcideArguments{..} idePlugins = do
9898 { Main. argCommand = argsCommand
9999 , Main. argsHlsPlugins = idePlugins
100100 , Main. argsLogger = pure hlsLogger
101+ , Main. argsThreads = if argsThreads == 0 then Nothing else Just $ fromIntegral argsThreads
101102 , Main. argsIdeOptions = \ _config sessionLoader ->
102103 let defOptions = Ghcide. defaultIdeOptions sessionLoader
103104 in defOptions
You can’t perform that action at this time.
0 commit comments