File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1470,18 +1470,16 @@ func (ls *INOLanguageServer) extractDataFolderFromArduinoCLI(logger jsonrpc.Func
14701470 }
14711471
14721472 type cmdRes struct {
1473- Config struct {
1474- Directories struct {
1475- Data string `json:"data"`
1476- } `json:"directories"`
1477- } `json:"config"`
1473+ Directories struct {
1474+ Data string `json:"data"`
1475+ } `json:"directories"`
14781476 }
14791477 var res cmdRes
14801478 if err := json .Unmarshal (cmdOutput .Bytes (), & res ); err != nil {
14811479 return nil , errors .Errorf ("parsing arduino-cli output: %s" , err )
14821480 }
14831481 // Return only the build path
1484- dataDir = res .Config . Directories .Data
1482+ dataDir = res .Directories .Data
14851483 }
14861484
14871485 logger .Logf ("Arduino Data Dir -> %s" , dataDir )
You can’t perform that action at this time.
0 commit comments