mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-19 01:06:39 +00:00
#1207: Forward the realTimeDiagnostics
to the LS.
Closes #1207. Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
This commit is contained in:
parent
8ad10b5adf
commit
d4833affc6
@ -107,6 +107,9 @@ export class InoLanguage extends SketchContribution {
|
||||
}
|
||||
this.logger.info(`Starting language server: ${fqbn}`);
|
||||
const log = this.preferences.get('arduino.language.log');
|
||||
const realTimeDiagnostics = this.preferences.get(
|
||||
'arduino.language.realTimeDiagnostics'
|
||||
);
|
||||
let currentSketchPath: string | undefined = undefined;
|
||||
if (log) {
|
||||
const currentSketch = await this.sketchServiceClient.currentSketch();
|
||||
@ -141,6 +144,7 @@ export class InoLanguage extends SketchContribution {
|
||||
fqbn,
|
||||
name: name ? `"${name}"` : undefined,
|
||||
},
|
||||
realTimeDiagnostics,
|
||||
}
|
||||
),
|
||||
]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user