Skip to content

Support for go-to definition? #203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
peekxc opened this issue Jun 14, 2023 · 1 comment
Closed

Support for go-to definition? #203

peekxc opened this issue Jun 14, 2023 · 1 comment

Comments

@peekxc
Copy link

peekxc commented Jun 14, 2023

Does Ruff support go-to definition (also called "jump to definition") functionality, like PyLance?

According to VS-Code's language server extension guide, this is theoretically possible.

The following language features are currently supported in a language server along with code completions:
...
Goto Definition: provides go to definition support for a symbol selected in a text document.
...

When I install Ruff, the things that are mentioned as part of the extension work flawlessly (linting, auto-fix imports, etc.).

That being said, there is no "ruff" option in the Pythons "Language Server" option---it's unclear to me whether this is something that falls under the purview of ruff or VS Code to change

@zanieb
Copy link
Member

zanieb commented Jun 14, 2023

Hey! There's discussion about this over at astral-sh/ruff-lsp#23 — but ruff-lsp doesn't support this at this time and is intended to be used alongside a tool that does.

@charliermarsh charliermarsh closed this as not planned Won't fix, can't repro, duplicate, stale Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants