Skip to content

Commit 83860ca

Browse files
committed
Load CPP symbols only after adding the file
1 parent fca69e3 commit 83860ca

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: ls/ls.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,9 @@ func (ls *INOLanguageServer) TextDocumentDidOpenNotifFromIDE(logger jsonrpc.Func
845845
logger.Logf("Clang already notified, do not notify it anymore")
846846
return
847847
}
848+
849+
// Queue a load of ino.cpp document symbols
850+
ls.queueLoadCppDocumentSymbols()
848851
}
849852

850853
if cppItem, err := ls.ino2cppTextDocumentItem(logger, inoTextDocItem); err != nil {
@@ -1111,7 +1114,6 @@ func (ls *INOLanguageServer) initializeWorkbench(logger jsonrpc.FunctionLogger,
11111114
}
11121115
}
11131116

1114-
ls.queueLoadCppDocumentSymbols()
11151117
return nil
11161118
}
11171119

0 commit comments

Comments
 (0)