@@ -36,7 +36,7 @@ func (ls *INOLanguageServer) clang2IdeRangeAndDocumentURI(logger jsonrpc.Functio
36
36
// - The IDE DocumentURI and Range
37
37
// - a boolean that is true if the clang range is in the preprocessed area of the sketch
38
38
// - an error
39
- func (ls * INOLanguageServer ) clang2IdeRangeAndDocumentURI2 (logger jsonrpc.FunctionLogger , clangURI lsp.DocumentURI , clangRange lsp.Range , opts * TranslationOpts ) (lsp.DocumentURI , lsp.Range , bool , error ) {
39
+ func (ls * INOLanguageServer ) clang2IdeRangeAndDocumentURI2 (logger jsonrpc.FunctionLogger , clangURI lsp.DocumentURI , clangRange lsp.Range , opts * translationOpts ) (lsp.DocumentURI , lsp.Range , bool , error ) {
40
40
// Sketchbook/Sketch/Sketch.ino <-> build-path/sketch/Sketch.ino.cpp
41
41
// Sketchbook/Sketch/AnotherTab.ino <-> build-path/sketch/Sketch.ino.cpp (different section from above)
42
42
if ls .clangURIRefersToIno (clangURI ) {
@@ -320,7 +320,7 @@ func (ls *INOLanguageServer) cland2IdeTextEdits(logger jsonrpc.FunctionLogger, c
320
320
func (ls * INOLanguageServer ) clang2IdeLocationsArray (logger jsonrpc.FunctionLogger , clangLocations []lsp.Location ) ([]lsp.Location , error ) {
321
321
return ls .clang2IdeLocationsArray2 (logger , clangLocations , nil )
322
322
}
323
- func (ls * INOLanguageServer ) clang2IdeLocationsArray2 (logger jsonrpc.FunctionLogger , clangLocations []lsp.Location , opts * TranslationOpts ) ([]lsp.Location , error ) {
323
+ func (ls * INOLanguageServer ) clang2IdeLocationsArray2 (logger jsonrpc.FunctionLogger , clangLocations []lsp.Location , opts * translationOpts ) ([]lsp.Location , error ) {
324
324
ideLocations := []lsp.Location {}
325
325
for _ , clangLocation := range clangLocations {
326
326
ideLocation , inPreprocessed , err := ls .clang2IdeLocation2 (logger , clangLocation , opts )
@@ -340,7 +340,7 @@ func (ls *INOLanguageServer) clang2IdeLocationsArray2(logger jsonrpc.FunctionLog
340
340
func (ls * INOLanguageServer ) clang2IdeLocation (logger jsonrpc.FunctionLogger , clangLocation lsp.Location ) (lsp.Location , bool , error ) {
341
341
return ls .clang2IdeLocation2 (logger , clangLocation , nil )
342
342
}
343
- func (ls * INOLanguageServer ) clang2IdeLocation2 (logger jsonrpc.FunctionLogger , clangLocation lsp.Location , opts * TranslationOpts ) (lsp.Location , bool , error ) {
343
+ func (ls * INOLanguageServer ) clang2IdeLocation2 (logger jsonrpc.FunctionLogger , clangLocation lsp.Location , opts * translationOpts ) (lsp.Location , bool , error ) {
344
344
ideURI , ideRange , inPreprocessed , err := ls .clang2IdeRangeAndDocumentURI2 (logger , clangLocation .URI , clangLocation .Range , opts )
345
345
return lsp.Location {
346
346
URI : ideURI ,
0 commit comments