nushell / vscode-nushell-lang

A Nushell grammar for Visual Studio Code with IDE support
https://www.nushell.sh/
MIT License
122 stars 27 forks source link

Error displayed from LSP is not rendered correctly #184

Open jaudiger opened 6 months ago

jaudiger commented 6 months ago

I use this code:

const foo = $"(whoami)"

The LSP tries to show me the issue, but it seems VSCode renders it poorly:

image

fdncred commented 6 months ago

These are clearly ansi escape sequences from our miette errors. I'm not sure why it's showing up like this. It also shows up like this with nu-lsp in neovim.

jaudiger commented 6 months ago

Ok, at least, the behavior is "consistent" for both IDEs. Unfortunately, I don't know enough about this plugin interface to try resolving the problem.