Skip to content

TypeScript LSP suddenly deactivates on edits #952

@0xlynett

Description

@0xlynett

I have [email protected] and [email protected] installed via Bun.

Currently, I'm manually starting up the LSP server on boot (not sure how to get it to autostart) before then editing the file - any changes that include letters, numbers or certain other characters causes it to .

My guess is that it has something to do with completions: outside of a few characters I've tested, it appears that anything that could trigger a completion also results in the LSP shutting down. It also flashes "LSP: completion" on edits after the LSP server actually dies, though I wasn't able to screenshot that.

Steps to reproduce

  1. Create JavaScript or TypeScript file
  2. Start LSP
  3. Check status manually + statusbar (active)
  4. Make an edit
  5. Check status again (inactive)

Screenshots

Before any changes made
Image

-, +, and ` seemingly don't trigger the behavior
Image

Typing text causes the LSP to go away (on manually checking with Show LSP Status, it's down)
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions