question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Selectively enable/disable LSP features

See original GitHub issue

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": []
    }
}

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
dclongcommented, 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.

0reactions
bollwyvlcommented, Oct 27, 2019

Cool! Excited to see what you come up with.

My thinking on the ugly ASCII mockup: I think more popups/hovers/(context)menus, aside from being harder to test, can make it harder to inform people what choice they are making when it comes to settings. “What the heck is a diagnostic and why would I hide it?” Hence I usually encourage anything remotely settings related (e.g would persist after restart) to err on the side of being more verbose and discoverable.

On Sun, Oct 27, 2019, 15:52 M. Krassowski notifications@github.com wrote:

I am working on a basic status indicator right now.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/krassowski/jupyterlab-lsp/issues/61?email_source=notifications&email_token=AAALCRBRLZX7RIVKZLKDCODQQXPN3A5CNFSM4JBA7UFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECLGNUA#issuecomment-546727632, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALCRCDTR2XLKHQD52RJO3QQXPN3ANCNFSM4JBA7UFA .

Read more comments on GitHub >

github_iconTop Results From Across the Web

A guide on disabling/enabling lsp-mode features
A guide on disabling/enabling lsp-mode features# · 1. Symbol highlighting · 2. lsp-ui-doc - on hover dialogs. · 3. Lenses · 4. Headerline...
Read more >
What lsp features do you enable disable? : r/emacs - Reddit
I've found this guide on enabling/disabling features which is quite helpful in understanding what everything is and how to toggle each piece ...
Read more >
Pyright configuration for disabling hint diagnostics #726 - GitHub
The issue is pyright's language server (I believe) doesn't allow you to selectively disable returning hints per diagnostic type like you want.
Read more >
Cisco Firepower Release Notes, Version 7.0 - Features and ...
Note that if you use the new method to enable SecureX integration, you must disable the feature before you upgrade to Version 7.1....
Read more >
RSVP Overview | Junos OS - Juniper Networks
The previous CLI configuration options for enabling or disabling message ... For dynamic LSP creation to function properly, BGP must be configured to ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found