You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added a new preference (`arduino.language.asyncWorkers`) to control the
number of async workers used by `clangd`.
Users can use fine tune the `clangd` thread count to overcome excessive
CPU usage.
Ref: arduino/arduino-language-server#177
Signed-off-by: Akos Kitta <[email protected]>
'Number of async workers used by the Arduino Language Server (clangd). Background index also uses this many workers. The minimum value is 0, and the maximum is 8. When it is 0, the language server uses all available cores. The default value is 0.'
* If `true`, the logging is not forwarded to the _Output_ view via the language client.
77
82
*/
78
83
readonlysilentOutput?: boolean;
84
+
/**
85
+
* Number of async workers used by `clangd`. Background index also uses this many workers. If `0`, `clangd` uses all available cores. It's `0` by default.
86
+
*/
87
+
readonlyjobs?: number;
79
88
}
80
89
81
90
/**
@@ -137,6 +146,7 @@ export class InoLanguage extends SketchContribution {
137
146
switch(preferenceName){
138
147
case'arduino.language.log':
139
148
case'arduino.language.realTimeDiagnostics':
149
+
case'arduino.language.asyncWorkers':
140
150
forceRestart();
141
151
}
142
152
}
@@ -168,9 +178,12 @@ export class InoLanguage extends SketchContribution {
"language.asyncWorkers": "Number of async workers used by the Arduino Language Server (clangd). Background index also uses this many workers. The minimum value is 0, and the maximum is 8. When it is 0, the language server uses all available cores. The default value is 0.",
388
389
"language.log": "True if the Arduino Language Server should generate log files into the sketch folder. Otherwise, false. It's false by default.",
389
390
"language.realTimeDiagnostics": "If true, the language server provides real-time diagnostics when typing in the editor. It's false by default.",
0 commit comments