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
+9-1
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@ package main
2
2
3
3
import (
4
4
"flag"
5
+
"fmt"
5
6
"io"
6
7
"log"
7
8
"os"
@@ -11,6 +12,7 @@ import (
11
12
)
12
13
13
14
varclangdPathstring
15
+
varcompileCommandsDirstring
14
16
varcliPathstring
15
17
varinitialFqbnstring
16
18
varinitialBoardNamestring
@@ -19,6 +21,7 @@ var loggingBasePath string
19
21
20
22
funcmain() {
21
23
flag.StringVar(&clangdPath, "clangd", "clangd", "Path to clangd executable")
24
+
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
25
flag.StringVar(&cliPath, "cli", "arduino-cli", "Path to arduino-cli executable")
23
26
flag.StringVar(&initialFqbn, "fqbn", "arduino:avr:uno", "Fully qualified board name to use initially (can be changed via JSON-RPC)")
24
27
flag.StringVar(&initialBoardName, "board-name", "", "User-friendly board name to use initially (can be changed via JSON-RPC)")
0 commit comments