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

Fix highlight errors when lsp crash or stop #864

Merged
merged 4 commits into from
Apr 22, 2024

Commits on Apr 19, 2024

  1. Fix highlight errors when lsp crash or stop

    It adds a check wether the client is still available before
    highlighting.
    
    If the client is not there anymore it returns `true` to unregister the
    autocommand
    
    This fix the
    `method textDocument/documentHighlight is not supported by any of the servers registered for the current buffer`
    errors when doing a LspRestart or the server crashes
    Francis Belanger committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    4d73020 View commit details
    Browse the repository at this point in the history

Commits on Apr 22, 2024

  1. Delete the highlight autocommands in the LspDetatch event

    Francis Belanger committed Apr 22, 2024
    Configuration menu
    Copy the full SHA
    f45cec0 View commit details
    Browse the repository at this point in the history
  2. Only delete autocmds for the current buffer with the group name

    Francis Belanger committed Apr 22, 2024
    Configuration menu
    Copy the full SHA
    a37febf View commit details
    Browse the repository at this point in the history
  3. Simplify clearing the autocommands

    Francis Belanger committed Apr 22, 2024
    Configuration menu
    Copy the full SHA
    5ba86c5 View commit details
    Browse the repository at this point in the history