Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 43fe9b2

Browse filesBrowse files
author
Akos Kitta
committed
Can start the LS without real-time diagnostics.
Ref: arduino/arduino-language-server#124 Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
1 parent c810a04 commit 43fe9b2
Copy full SHA for 43fe9b2

File tree

2 files changed

+5
-1
lines changed
Filter options

2 files changed

+5
-1
lines changed

‎package.json

Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vscode-arduino-tools",
33
"private": true,
4-
"version": "0.0.2-beta.3",
4+
"version": "0.0.2-beta.4",
55
"publisher": "arduino",
66
"license": "Apache-2.0",
77
"author": "Arduino SA",

‎src/extension.ts

Copy file name to clipboardExpand all lines: src/extension.ts
+4Lines changed: 4 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.