Skip to content

Commit 24dfffa

Browse files
Akos Kittakittaakos
Akos Kitta
authored andcommitted
ATL-835: Support for JSON file type.
Signed-off-by: Akos Kitta <[email protected]>
1 parent 6626701 commit 24dfffa

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

Diff for: arduino-ide-extension/src/common/protocol/sketches-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export namespace Sketch {
7474
export namespace Extensions {
7575
export const MAIN = ['.ino', '.pde'];
7676
export const SOURCE = ['.c', '.cpp', '.s'];
77-
export const ADDITIONAL = ['.h', '.c', '.hpp', '.hh', '.cpp', '.s'];
77+
export const ADDITIONAL = ['.h', '.c', '.hpp', '.hh', '.cpp', '.s', '.json'];
7878
export const ALL = Array.from(new Set([...MAIN, ...SOURCE, ...ADDITIONAL]));
7979
}
8080
export function isInSketch(uri: string | URI, sketch: Sketch): boolean {

Diff for: electron/build/template-package.json

+2
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@
138138
"theiaPlugins": {
139139
"vscode-builtin-cpp": "http://open-vsx.org/api/vscode/cpp/1.44.2/file/vscode.cpp-1.44.2.vsix",
140140
"vscode-arduino-language-server": "https://downloads.arduino.cc/vscode-arduino-language-server/nightly/vscode-arduino-language-server-0.0.1.vsix",
141+
"vscode-builtin-json": "https://open-vsx.org/api/vscode/json/1.46.1/file/vscode.json-1.46.1.vsix",
142+
"vscode-builtin-json-language-features": "https://open-vsx.org/api/vscode/json-language-features/1.46.1/file/vscode.json-language-features-1.46.1.vsix",
141143
"cortex-debug": "https://open-vsx.org/api/marus25/cortex-debug/0.3.7/file/marus25.cortex-debug-0.3.7.vsix"
142144
}
143145
}

Diff for: package.json

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
"theiaPlugins": {
3838
"vscode-builtin-cpp": "http://open-vsx.org/api/vscode/cpp/1.44.2/file/vscode.cpp-1.44.2.vsix",
3939
"vscode-arduino-language-server": "https://downloads.arduino.cc/vscode-arduino-language-server/nightly/vscode-arduino-language-server-0.0.1.vsix",
40+
"vscode-builtin-json": "https://open-vsx.org/api/vscode/json/1.46.1/file/vscode.json-1.46.1.vsix",
41+
"vscode-builtin-json-language-features": "https://open-vsx.org/api/vscode/json-language-features/1.46.1/file/vscode.json-language-features-1.46.1.vsix",
4042
"cortex-debug": "https://open-vsx.org/api/marus25/cortex-debug/0.3.7/file/marus25.cortex-debug-0.3.7.vsix"
4143
}
4244
}

0 commit comments

Comments
 (0)