Skip to content

Markdown escapes visible in LSP errors #51622

@4teapo

Description

@4teapo

Reproduction steps

  1. Start Zed
  2. Make sure the luau extension is installed
  3. Use settings below
  4. Make a .luau file
  5. Put:
--!strict
type foo = { a: string } | { b: number }
local foo: foo = { c = {} }

Current vs. Expected behavior

Current behavior

Image

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.

Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:diagnosticsFeedback for diagnostics, error messages, logs, etcarea:languages/markdownMarkdown markup supportfrequency:uncommonBugs that happen for a small subset of users, special configurations, rare circumstances, etcpriority:P3Papercuts, minor issues with a clear workaround, cosmetic bugsstate:needs reproNeeds reproduction steps and/or someone to reproduce

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions