Skip to content

Duplicate code suggestions on some items #5002

Closed
@Tobls

Description

@Tobls

Vue - Official extension or vue-tsc version

2.1.10

VSCode version

Vue version

3.4.30

TypeScript version

System Info

System:
    OS: Linux 6.11 Arch Linux
    CPU: (20) x64 13th Gen Intel(R) Core(TM) i5-13600K
    Memory: 25.63 GB / 31.11 GB
    Container: Yes
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 23.1.0 - /usr/bin/node
    Yarn: 1.22.22 - /usr/bin/yarn
    npm: 10.9.0 - /usr/bin/npm
    pnpm: 9.12.3 - /usr/bin/pnpm

package.json dependencies

"dependencies": {
        "pinia": "^2.2.2"
    },
    "devDependencies": {
        "@vitejs/plugin-vue": "^5.0.5",
        "@vue/eslint-config-prettier": "^9.0.0",
        "autoprefixer": "^10.4.20",
        "postcss": "^8.4.45",
        "tailwindcss": "^3.4.10",
        "vite": "^5.3.1",
        "vue": "^3.4.30"
    }

Steps to reproduce

When trying to auto-import anything from vue, I get two autocompletion items, with only the second one actually importing it if needed.
out(1)
out2

What is expected?

Only the second completion item, the one that also auto-imports.

What is actually happening?

I get two autocompletion items, and the one without auto-import is the default.

Link to minimal reproduction

No response

Any additional comments?

I am using neovim and the hyprid mode

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions