We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd04ff8 commit 1768fb3Copy full SHA for 1768fb3
ghcide/src/Development/IDE/Main.hs
@@ -318,9 +318,10 @@ defaultMain recorder Arguments{..} = withHeapStats (cmapWithPrio LogHeapStats re
318
outH <- argsHandleOut
319
320
numProcessors <- getNumProcessors
321
+ let numCapabilities = max 1 $ maybe (numProcessors `div` 2) fromIntegral argsThreads
322
323
case argCommand of
- LSP -> withNumCapabilities (maybe (numProcessors `div` 2) fromIntegral argsThreads) $ do
324
+ LSP -> withNumCapabilities numCapabilities $ do
325
t <- offsetTime
326
log Info $ LogLspStart (pluginId <$> ipMap argsHlsPlugins)
327
0 commit comments