-
-
Notifications
You must be signed in to change notification settings - Fork 9k
Markdown escapes visible in LSP errors #51622
Copy link
Copy link
Labels
area:diagnosticsFeedback for diagnostics, error messages, logs, etcFeedback for diagnostics, error messages, logs, etcarea:languages/markdownMarkdown markup supportMarkdown markup supportfrequency:uncommonBugs that happen for a small subset of users, special configurations, rare circumstances, etcBugs that happen for a small subset of users, special configurations, rare circumstances, etcpriority:P3Papercuts, minor issues with a clear workaround, cosmetic bugsPapercuts, minor issues with a clear workaround, cosmetic bugsstate:needs reproNeeds reproduction steps and/or someone to reproduceNeeds reproduction steps and/or someone to reproduce
Metadata
Metadata
Assignees
Labels
area:diagnosticsFeedback for diagnostics, error messages, logs, etcFeedback for diagnostics, error messages, logs, etcarea:languages/markdownMarkdown markup supportMarkdown markup supportfrequency:uncommonBugs that happen for a small subset of users, special configurations, rare circumstances, etcBugs that happen for a small subset of users, special configurations, rare circumstances, etcpriority:P3Papercuts, minor issues with a clear workaround, cosmetic bugsPapercuts, minor issues with a clear workaround, cosmetic bugsstate:needs reproNeeds reproduction steps and/or someone to reproduceNeeds reproduction steps and/or someone to reproduce
Type
Fields
Give feedbackNo fields configured for Bug.
Reproduction steps
.luaufileCurrent vs. Expected behavior
Current behavior
The error message contains spaces that become code block in Markdown, but those don't need the escape characters Zed inserts and Zed does not take this into account when doing markdown escape.
Expected behavior
No markdown escapes, like in the image below taken in vscode.
Zed version and system specs
Zed: v0.227.1+stable.199.9f9b707d39d62468d4cdaed2d8eb95a847da4cf9 (Zed)
OS: macOS 26.1
Memory: 18 GiB
Architecture: aarch64
Attach Zed log file
Zed.log
Relevant Zed settings
settings.json
{ "lsp": { "luau-lsp": { "settings": { "fflags": { "enable_new_solver": true, }, }, }, }, }Relevant Keymap
keymap.json
(for AI issues) Model provider details
No response
If you are using WSL on Windows, what flavor of Linux are you using?
None