Skip to content

LSP needs to handle non existing files #1159

@nojaf

Description

@nojaf

Not sure what we should do but I had the following:

  • I opened a new .res file on a specific branch.
  • I switched to the main branch (where the new file doesn't exist)
  • My editor still holds the removed file.

This now leads to a crash in the LSP server.

We probably need to clean up the internal state and not try to do provide any lsp responses for that file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions