Open sean-mcmanus opened 2 years ago
@juxeii If you set C_Cpp.loggingLevel to "Debug" you should notice that the logging gets stuck on hover or documentHighlight requests, which are blocked by the IntelliSense update, and that is causing us to not get the Go to Def messages. We could potentially add code to avoid the IntelliSense update parse when the active document changes and/or stop sending hover and document highlight request messages on #include
lines.
@sean-mcmanus: Yes, I noticed there are not logger outputs while it tries to jump to the file in question.
@sean-mcmanus A hang in documentHighlight could be https://github.com/microsoft/vscode-cpptools/issues/8717
@Colengms No, I'm just referring to a normal/temporary delay of document highlight due to it being (temporarily) stuck waiting for the IntelliSense update.
Has there been any progress on this issue? Any work arounds? This happens even on relatively small projects, every other f12 takes between 3-5 seconds to resolve, making VSCode a no-go tool for me.
@simonboily Sorry, no progress yet. If you can avoid hovering or other mouse movement and do Go to Def via F12 that could help.
An extension can assume the responsibility of avoiding reparsing the document by storing the TextDocument reference in a map used to look up the parse result.
I recommend wrapping this behavior and calling it a day.
Discussed in https://github.com/microsoft/vscode-cpptools/discussions/8881