File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
ghcide/src/Development/IDE Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -227,13 +227,14 @@ defaultMain Arguments{..} = do
227
227
outH <- argsHandleOut
228
228
229
229
numProcessors <- getNumProcessors
230
+ let numCapabilities = max 1 (maybe (numProcessors `div` 2 ) fromIntegral argsThreads)
230
231
231
232
case argCommand of
232
233
PrintExtensionSchema ->
233
234
LT. putStrLn $ decodeUtf8 $ A. encodePretty $ pluginsToVSCodeExtensionSchema argsHlsPlugins
234
235
PrintDefaultConfig ->
235
236
LT. putStrLn $ decodeUtf8 $ A. encodePretty $ pluginsToDefaultConfig argsHlsPlugins
236
- LSP -> withNumCapabilities ( maybe (numProcessors `div` 2 ) fromIntegral argsThreads) $ do
237
+ LSP -> withNumCapabilities numCapabilities $ do
237
238
t <- offsetTime
238
239
hPutStrLn stderr " Starting LSP server..."
239
240
hPutStrLn stderr " If you are seeing this in a terminal, you probably should have run WITHOUT the --lsp option!"
You can’t perform that action at this time.
0 commit comments