influxdata / flux-lsp

Implementation of Language Server Protocol for the flux language
MIT License
27 stars 5 forks source link

resolve #628 with continuous action prompts in (n)vim #633

Open digitallyserviced opened 9 months ago

digitallyserviced commented 9 months ago

When the composition is not valid (yet), the InternalError emits the LSP window/showMessageRequest which is inappropriate for standard error messages and notifications.

Generally any messages that are not going to provide the user with actionable options, and are simply that, messages, it will now use the appropriate command.

This should now make it so vim editors, do not harass the user with a prompt requiring dismissal on every edit until the composition/query is valid.

Also increased verbosity on some of the error messages so that they provide more accurate details as far as what may have caused the error for the user to inspect.

628