Skip to content
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

Is there a configuration option to enable jumping to builtin module stubs? #960

Closed
bzoracler opened this issue Dec 21, 2022 · 1 comment
Closed

Comments

@bzoracler
Copy link

I'm using Jupyter Lab's Jump to definition, and PR #687 completely disables jumping to 📜extension_module.pyi for the following package arrangement:

📂site-packages
 ┗━📂my_package
   ┣━📜__init__.py
   ┣━📦extension_module.so
   ┗━📜extension_module.pyi

Personally, I also find the behaviour in the PR (disabling jumping to the Python standard library builtins stubs) quite frustrating, as I frequently refer to the Python standard library's stubs.

I've temporarily disabled the behaviour by making the following change,

# pylsp/plugins/definition.py

def _not_internal_definition(definition):
    return True

but am wondering if there's been an update to exposing a configuration for them (preferably accessible in both JupyterLab and VSCode)?

@bzoracler
Copy link
Author

Oops - didn't realise this was an unmaintained repository. Posted here instead: python-lsp/python-lsp-server#317

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

1 participant