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

Selectively enable/disable LSP features #61

Open
krassowski opened this issue Oct 15, 2019 · 6 comments
Open

Selectively enable/disable LSP features #61

krassowski opened this issue Oct 15, 2019 · 6 comments
Milestone

Comments

@krassowski
Copy link
Member

krassowski commented Oct 15, 2019

Extracting discussion from #55, quote by @bollwyvl :

Not in this pr, but: I'd also like to see a toolbar item that let you
enable/disable different language server ui features for the current file.
It could be right aligned, but left of the kernel name/status icon, and
also have an indicator of whether there is pending stuff... This would be
particularly useful in the typescript case which takes upwards of a
minute
to fully resolve all the references in, say, index.ts.

I think that a statusbar would be a good place for it (so that we have it for both files and notebooks).

Sketch:

{
    "disableForKernels": {
      "title": "Disable for specific kernels",
      "type": "array",
      "items": {
        "type": "string"
      },
      "default": []
    }
}
@bollwyvl
Copy link
Collaborator

bollwyvl commented Oct 15, 2019 via email

@bollwyvl
Copy link
Collaborator

bollwyvl commented Oct 27, 2019

Riffing on the status bar idea, perhaps we have it show, e.g.:

(icons for placement only)

  [⏳ Python]  # initializing
  [🎧 Python]  # ready

When you click on it, it can show a sidebar/main area widget which shows:

  _____________________________________
_| ⏳ Untitled.ipynb Language Server  x|___________________

Feature                 Global   Python   This File
🆗 Diagnostics            ☑️        ☑️         ☑️
❔ Jump To Reference      ☑️        ☑️         ☑️
❔ Hover                  ☑️        ☑️         ☐

Open Advanced Settings Editor...

⛛ Python Language Server Info
   Docs | Issues | Version: 0.29.1

Those little status markers are what I would need to know that something
has arrived so it can be tested.

@krassowski
Copy link
Member Author

I like this idea. It could be in a popover but a new tab/sidebar widget would work as well.

@krassowski
Copy link
Member Author

I am working on a basic status indicator right now.

@bollwyvl
Copy link
Collaborator

bollwyvl commented Oct 27, 2019 via email

@krassowski krassowski added this to the 3.4 milestone Feb 1, 2021
@dclong
Copy link

dclong commented Feb 18, 2021

Agree that there should be a way to disable LSP (completely) just in case things are broken or completion is slow so that users to want to temporary disable it without uninstalling the extension.

Also, it's best it there's a way to restart lsp without restarting jupyterlab. This is critical for Docker based users.

@krassowski krassowski modified the milestones: 3.4, 3.9 Aug 1, 2021
@krassowski krassowski modified the milestones: 3.9, Future Sep 4, 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