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

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

Closed
jacksonludwig opened this issue Jun 6, 2021 · 1 comment
Closed
Labels
wontfix This will not be worked on

Comments

@jacksonludwig
Copy link

jacksonludwig commented Jun 6, 2021

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.

@stale
Copy link

stale bot commented Oct 9, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Oct 9, 2021
@stale stale bot closed this as completed Oct 16, 2021
loichyan added a commit to loichyan/dotfiles that referenced this issue Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants