Skip to content

Commit 639c353

Browse files
author
Akos Kitta
committed
Can start the LS without real-time diagnostics.
Ref: arduino/arduino-language-server#124 Signed-off-by: Akos Kitta <[email protected]>
1 parent c810a04 commit 639c353

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: src/extension.ts

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ interface LanguageServerConfig {
2727
readonly log?: boolean | string;
2828
readonly env?: any;
2929
readonly flags?: string[];
30+
readonly realTimeDiagnostics?: boolean;
3031
}
3132

3233
interface DebugConfig {
@@ -202,6 +203,9 @@ async function buildLanguageClient(config: LanguageServerConfig): Promise<Langua
202203
if (board.name) {
203204
args.push('-board-name', board.name);
204205
}
206+
if (typeof config.realTimeDiagnostics === 'boolean' && !config.realTimeDiagnostics) {
207+
args.push('-no-real-time-diagnostics');
208+
}
205209
if (flags && flags.length) {
206210
args.push(...flags);
207211
}

0 commit comments

Comments
 (0)