Giter Club home page Giter Club logo

Comments (5)

roblourens avatar roblourens commented on June 14, 2024 1

we could definitely linkify variable values that look like locations (either file paths or URIs, URIs would be more general.)

This does already work today, you can cmd+click the value of [[FunctionLocation]]

from debug-adapter-protocol.

roblourens avatar roblourens commented on June 14, 2024

This seems like pretty limited applicability. I wonder if there's a simpler way to fix it up just for the case with a function, for example, in vscode we have a link detector on variable values, and if you include a location: "/path/file.js:123" property on the function, users can cmd+click to jump there.

Related, @minsa110 was asking for a "go to definition" from the variables explorer in notebooks. It's a little more practical in that context because most variables come from a single document and maybe one can reverse engineer the locations on demand.

from debug-adapter-protocol.

connor4312 avatar connor4312 commented on June 14, 2024

V8 does give us a magic [[FunctionLocation]] internal property. I don't really like the idea of treating 'magic properties' specially, but we could definitely linkify variable values that look like locations (either file paths or URIs, URIs would be more general.) And we could parse URIs that are children of the debug sessions's workspace folder to look a bit nicer.

I like that solution more than my proposal 😛

from debug-adapter-protocol.

roblourens avatar roblourens commented on June 14, 2024

Oh yeah, we have #343 already :)

from debug-adapter-protocol.

sandipchitale avatar sandipchitale commented on June 14, 2024

@roblourens I was not able to cmd+click the value of [[FunctionLocation]] in VSCode JS debugger when debugging an extension even though I see the source location. Has this made to the released version of VSCode?

from debug-adapter-protocol.

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.