дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-29 13:52:36 +02:00
.ino sketches get C++ highlighting and code intelligence through Arduino Language Server: completion, signature help, hover, definition navigation and diagnostics. The IDE finds arduino-cli, clangd and the language server installed by Arduino IDE 2 (or paths from languages.arduino settings), reads the board FQBN from sketch.yaml or settings, roots the server at the sketch, and works around the server's capability quirks. Build, upload and serial monitor are left to a plugin. Co-authored-by: mushketer888 <[email protected]>
30 рядки
1.0 KiB
TOML
30 рядки
1.0 KiB
TOML
id = "arduino"
|
|
name = "Arduino"
|
|
# Arduino Language Server supplies Arduino's generated compile context to clangd.
|
|
extensions = ["ino"]
|
|
line-comment = "//"
|
|
block-comment = ["/*", "*/"]
|
|
indent = { tab-size = 2, insert-spaces = true }
|
|
ui-mode = "C++"
|
|
tree-sitter = "cpp"
|
|
|
|
[[language-servers]]
|
|
name = "arduino-language-server"
|
|
command = "arduino-language-server"
|
|
root-markers = ["*.ino", "sketch.yaml"]
|
|
require-root-marker = true
|
|
features = [
|
|
"diagnostics",
|
|
"completion",
|
|
"hover",
|
|
"signature-help",
|
|
"definition",
|
|
"type-definition",
|
|
"implementation",
|
|
"document-highlight",
|
|
"formatting",
|
|
"rename",
|
|
"code-action",
|
|
]
|
|
install-hint = "Install Arduino IDE 2 (includes Arduino Language Server, Arduino CLI and clangd) and the board's core. Configure the server command and arguments in Settings > Languages & Frameworks > Language Servers, or set languages.arduino.cli, languages.arduino.clangd, languages.arduino.languageServer and languages.arduino.cliConfig in settings.toml. Set the board FQBN in sketch.yaml or languages.arduino.fqbn in settings.toml."
|