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
Adds missing parameters to ICompleterProvider API #14809
Conversation
Thanks for making a pull request to jupyterlab! |
Hey @krassowski, should we change the jupyterlab/packages/completer/src/tokens.ts Lines 157 to 181 in 2161e6c
jupyterlab/packages/completer/src/handler.ts Lines 295 to 304 in 2161e6c
jupyterlab/packages/completer/src/handler.ts Lines 347 to 348 in 2161e6c
|
If we are changing the interface we should also implement the logic here. It will be useful beyond LSP implementation (for other completion providers). In the current draft the LSP implementation no longer needs to swap the completion handler (which was a nightmare previously), so hopefully we won't need to do this again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! One minor thing: a tests checking that trigger
gets passed down would be useful here (because trigger
is optional typing will not save us if someone deletes it accidentally in a refactor).
Co-authored-by: Michał Krassowski <5832902+krassowski@users.noreply.github.com>
Co-authored-by: Michał Krassowski <5832902+krassowski@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @hbcarlos
|
@meeseeksdev please backport to 4.0.x |
…#14848) Co-authored-by: Carlos Herrero <26092748+hbcarlos@users.noreply.github.com>
References
Fixes #14806
Code changes
see #14806
User-facing changes
N/A
Backwards-incompatible changes
N/A