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)
- Within a macro, IntelliSense does not suggest members of a structure that is referenced through another macro HOT 1
- Cannot build and debug because the active file is not a C or C++ source file. macos HOT 2
- C/C++ Intellisense taking too long to start up even with small workspaces HOT 2
- Implementation header included at the end of a declaration header is not processed
- Refactor P2P references for Internal Build Errors
- incorrectly formed universal character name using \u{...} HOT 1
- Debugger target command line args containing semicolon are truncated HOT 5
- Intellisense generates _MSC_VER for clang-like compiler on linux when using -fms-extensions HOT 1
- Can Visual Studio Code use GDB to attach to process without the "Program" property? HOT 1
- Intellisense on Mac stopped working. HOT 1
- A C/C++ extension process has crashed HOT 1
- Performance issue on IntelliSense after the verion 1.18.5 HOT 9
- Issue with escaping characters in launch.json arguments
- The LineEnding setting in .clang-format has no effect within VS Code HOT 3
- Absolute compiler paths are resolved incorrectly on MacOS and Linux in the Configurations UI
- cpptools-srv quit unexpectedly HOT 4
- Incorrect tokens highlight with "requires" clause with brackets HOT 1
- Extension pack is not compatiable HOT 2
- C++ CTRL-F5 always hits the invisible `Breakpoint 1, main (argc=1, argv=0x7fffffffd648)` the first time it runs! HOT 1
- In the case of compilation, intellisense always indicates that the header file cannot be found HOT 5
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.