Comments (3)
Thank you for opening this issue. I think there is something unusual going on, because this operation is nearly instantaneous for me after copying your code into a C file.
The main contributor to the slowness is that the extension is choosing to do "Find all References" instead of "Go to Definition." Would you be able to enable Debug logging, restart the extension, rerun your scenario and then share the logs with us?
2.c.-.simple.-.Visual.Studio.Code.2024-05-13.09-04-54.mp4
from vscode-cpptools.
Thank you for your reply. Please see the attached log.
I performed 4-5 "goto definition" actions this time, 3 of which are instantaneous, the other 2 suffer from the problem depicted in my original video (all 5 goto definitions jump to inside either winuser.h or windef.h).
I did not perform any "find all references" action, but the LSP seems to have received/invoked lots of cpptools/findAllReferences action.
I'm going to try and see if I can get a cleaner log and if so I'll post it here.
from vscode-cpptools.
Hi @yg-i,
I'm looking at your log and I see multiple "Find all References" requests. I had thought that maybe what was happening was that VS Code was translating your "Go To Definition" request into a "Find all References" request. This happens by default when we return the current location as the result which can happen when we haven't located the actual definition. However, when this happens, I should see a "Go To Definition" request in the log right before the "Find all References" request and I don't see that.
Do you happen to have any extensions installed that automatically invoke "Find all References" as you move the cursor around? Most of the calls to "Find all References" seem to be happening right after moving the cursor, or opening a file (which also sets the cursor position).
from vscode-cpptools.
Related Issues (20)
- Improve handling of relative paths in `directory` field of `compile_commands.json` (spec is unclear) HOT 3
- launch.json HOT 1
- cpptools IntelliSense Updating and Parsing Wrokspace speed is much slower than previous versions HOT 2
- Intellisense fails to find system headers in 1.20.5 (possible cmake integration issue?) HOT 12
- Make hover menu show documentation from source file instead of header file if it's written in the Doxygen format HOT 1
- Intellisense fails to distinguish same name files in different directories HOT 2
- Detection of clang-format version fails in SSH remote session when clang-format is a symlink
- Cannot deduce class template arguments HOT 1
- Display entire definition line when pointing at variable HOT 2
- Feature Request: Suggest [nodiscard] as a C++ Keyword HOT 1
- Search freezes with cpptools enabled HOT 3
- [opensuse] language server crashes HOT 4
- Error: Attempting to use languageClient before initialized HOT 3
- The 'auto' keyword is not colored HOT 1
- Inconsistent naming of command options for "IntelliSense" configurations
- includePath does not support ${fileDirname} HOT 4
- Code analysis fails to get configured for non-open files the 1st time it's run
- When a function is referenced via a macro definition, the referencing function cannot find it HOT 1
- Support additional visualizers directories
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-cpptools.