Skip to content

Closing a tag causes built-in LSP to update diagnostics incorrectly #19

@jacksonludwig

Description

@jacksonludwig

With update_on_insert = false (the default) from neovim built in LSP, it is expected that diagnostics do not update unless a user exists insert mode.

However, it seems that closing a tag causes the LSP to refresh diagnostics, causing errors to appear while in insert mode. This is an issue as the LSP thinks there are many errors since the diagnostics seemed to be refreshed as if the tag is not closed.

For example, if I have a situation like this:

| = cursor

<Text|

Closing the tag results in

<Text>|</Text>

which is correct, except that the tsserver reports all sorts of errors in the buffer about there being an unclosed tag.

Once exiting insert mode, the errors go away.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions