Code Monkey home page Code Monkey logo

Comments (3)

bobbrow avatar bobbrow commented on June 10, 2024

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.

yg-i avatar yg-i commented on June 10, 2024

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.

debug.log

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.

bobbrow avatar bobbrow commented on June 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.