gtache / intellij-lsp

Plugin adding Language Server Protocol support for IntelliJ
Apache License 2.0
397 stars 48 forks source link

[Feature Request] Temporarily disable LSP #154

Open caugner opened 4 years ago

caugner commented 4 years ago

Background

I'm using vimeo/psalm's LSP in a large PHP project.

Problem

Unfortunately the LSP significantly slows down the editing, causing a delay (of up to a few seconds) after each typed character. This makes the LSP unusable while editing/programming, so I have to disable the plugin and restart the IDE in order to edit.

Solution

It would be great if the LSP server could be disabled temporarily (without disabling the plugin altogether):

  1. Add a menu item to the status icon to "Pause/Resume LSP".
  2. Add a checkbox in the settings to disable a specific LSP without having to remove it.

Alternatively, it would help to debounce the propagation of changes to the LSP server (until after 1000ms since the last change), so that I can type and edit without the LSP server continuously re-analyzing (and blocking the UI) after each typed character.