You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: main.go
+8-1
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ import (
11
11
)
12
12
13
13
varclangdPathstring
14
+
varcompileCommandsDirstring
14
15
varcliPathstring
15
16
varinitialFqbnstring
16
17
varinitialBoardNamestring
@@ -19,6 +20,7 @@ var loggingBasePath string
19
20
20
21
funcmain() {
21
22
flag.StringVar(&clangdPath, "clangd", "clangd", "Path to clangd executable")
23
+
flag.StringVar(&compileCommandsDir, "compile-commands-dir", "", "Specify a path to look for compile_commands.json. If path is invalid, clangd will look in the current directory and parent paths of each source file. If not specified, the clangd process is started without the compilation database.")
22
24
flag.StringVar(&cliPath, "cli", "arduino-cli", "Path to arduino-cli executable")
23
25
flag.StringVar(&initialFqbn, "fqbn", "arduino:avr:uno", "Fully qualified board name to use initially (can be changed via JSON-RPC)")
24
26
flag.StringVar(&initialBoardName, "board-name", "", "User-friendly board name to use initially (can be changed via JSON-RPC)")
0 commit comments