Skip to content

Unrelated Ruby snippets show up in autocomplete suggestions in Vue project #45774

@yeskunall

Description

@yeskunall

Reproduction steps

  1. Setup a minimal Vue project (pnpm create vue@latest)
  2. Open project in Zed
  3. Make sure you have the Ruby and Vue extension installed
  4. No Ruby snippet suggestions
Recording

result.mp4

Note

In both cases, the Vue extension must be installed as a dev extension. Grab the extension tagged at this release.

Now, do the following:

  1. Comment out this line (it disables TypeScript completions [+ more] altogether in Vue SFC files. Now, you only get HTML/CSS hints/suggestions.)
  2. Type r
  3. You get a snippet suggestion from the Ruby extension
Recording

result.mp4


Fair questions to ask:

  1. Is this happening only with the Ruby + Vue extension? (I currently don’t have the time to explore that, but I intend to.)
  2. More?

Current vs. Expected behavior

This might be a very specific edge-case but I’m reporting it regardless:

Even if I am developing an extension, and I am deliberately causing unintended behavior (see step 1 in second reproduction set), I don’t expect to see snippet hints from a totally unrelated extension. From the reproduction steps above, there are no Ruby files created during step 1, and Zed itself is not running ruby-lsp, as seen in both recordings.

Zed version and system specs

Zed: v0.219.0+nightly.2049.2cad6c8ef1bc4b3d92c6f787339d469e7817ee3b (Zed Nightly 2cad6c8)
OS: macOS 15.7.3
Memory: 36 GiB
Architecture: aarch64

Attach Zed log file

Zed.log
2025-12-28T05:00:43-05:00 INFO  [lsp] starting language server process. binary path: "/Users/kimchi/.local/share/mise/installs/node/24.11.0/bin/node", working directory: "/Users/kimchi/dev/local/vue-project", args: ["/Users/kimchi/Library/Application Support/Zed/extensions/work/vue/node_modules/@vue/language-server/bin/vue-language-server.js", "--stdio"]
2025-12-28T05:00:43-05:00 INFO  [lsp] Language server with id 44 sent unhandled notification @/tailwindCSS/projectInitialized:
[
  null
]
2025-12-28T05:00:43-05:00 INFO  [language] found user-installed language server for vscode-css-language-server. path: "/Users/kimchi/.local/share/mise/installs/node/24.11.0/bin/vscode-css-language-server", arguments: ["--stdio"]
2025-12-28T05:00:43-05:00 WARN  [project.json-schema] Schema request failed: Failed to find language server vtsls to generate initialization params schema
2025-12-28T05:00:43-05:00 INFO  [language] found user-installed language server for clangd. path: "/opt/homebrew/opt/llvm/bin/clangd", arguments: []
2025-12-28T05:00:43-05:00 WARN  [project.json-schema] Schema request failed: Failed to find language server gopls to generate initialization params schema
2025-12-28T05:00:43-05:00 WARN  [project.json-schema] Schema request failed: Failed to find language server yaml-language-server to generate initialization params schema
2025-12-28T05:00:43-05:00 ERROR [crates/languages/src/python.rs:2095] Not a directory (os error 20)
2025-12-28T05:00:43-05:00 WARN  [project.json-schema] Schema request failed: Failed to find language server basedpyright to generate initialization params schema
2025-12-28T05:00:43-05:00 WARN  [project.json-schema] Schema request failed: Failed to find language server eslint to generate initialization params schema
2025-12-28T05:00:43-05:00 WARN  [project.json-schema] Schema request failed: Failed to find language server json-language-server to generate initialization params schema
2025-12-28T05:00:43-05:00 WARN  [project.json-schema] Schema request failed: Failed to find language server ruff to generate initialization params schema
2025-12-28T05:00:43-05:00 WARN  [project.json-schema] Schema request failed: Failed to find language server typescript-language-server to generate initialization params schema
2025-12-28T05:00:43-05:00 INFO  [language] found user-installed language server for tailwindcss-language-server. path: "/Users/kimchi/.local/share/mise/installs/node/24.11.0/bin/tailwindcss-language-server", arguments: ["--stdio"]
2025-12-28T05:00:43-05:00 WARN  [project.json-schema] Schema request failed: Failed to find language server package-version-server to generate initialization params schema
2025-12-28T05:00:43-05:00 INFO  [language] found user-installed language server for rust-analyzer. path: "/Users/kimchi/.config/cargo/bin/rust-analyzer", arguments: []

Relevant Zed settings

settings.json
"languages": {
  "JavaScript": {
    "code_actions_on_format": {
      "source.fixAll.eslint": true,
    },
    "prettier": {
      "allowed": false,
    },
  },
  "Markdown": {
    "format_on_save": "on",
    "remove_trailing_whitespace_on_save": false,
  },
  "TSX": {
    "code_actions_on_format": {
      "source.fixAll.eslint": true,
    },
    "prettier": {
      "allowed": false,
    },
  },
  "TypeScript": {
    "code_actions_on_format": {
      "source.fixAll.eslint": true,
    },
    "prettier": {
      "allowed": false,
    },
  },
},
"lsp": {
  "tailwindcss-language-server": {
    "settings": {
      "includeLanguages": {
        "templ": "html",
      },
      "experimental": {
        "classRegex": ["class=\"([^\"]*)\"", "className=\"([^\"]*)\""],
      },
    },
  },
  "vtsls": {
    "settings": {
      "typescript": {
        "preferences": {
          "importModuleSpecifier": "non-relative",
        },
      },
    },
  },
},

Relevant Keymap

N/A

(for AI issues) Model provider details

N/A

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:snippetsFeedback for Zed snippetsfrequency:commonBugs that happen for at least a third of the users across all platforms and kinds of usagepriority:P3Papercuts, minor issues with a clear workaround, cosmetic bugsstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduce

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions