Skip to content

autoImportSpecifierExcludeRegexes is ignored in Vue script setup #5364

Open
@f3oall

Description

@f3oall

Vue - Official extension or vue-tsc version

2.2.10

VSCode version

1.100.1

Vue version

3.5.13

TypeScript version

5.8.3

System Info

System:
    OS: Linux 6.11 Ubuntu 24.04.2 LTS 24.04.2 LTS (Noble Numbat)
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i9-12900H
    Memory: 23.38 GB / 31.01 GB
    Container: Yes
    Shell: 5.9 - /usr/bin/zsh
  Binaries:
    Node: 22.15.0 - ~/.nvm/versions/node/v22.15.0/bin/node
    npm: 10.9.2 - ~/.nvm/versions/node/v22.15.0/bin/npm
    pnpm: 10.10.0 - ~/.nvm/versions/node/v22.15.0/bin/pnpm

package.json dependencies

Steps to reproduce

Add the following vscode settings:

{
   "typescript.preferences.autoImportSpecifierExcludeRegexes": ["^node:"]
}

Try to auto import ref, it still suggests node:process. In .ts files it works.

What is expected?

Vue should respect typescript autoImportSpecifierExcludeRegexes

What is actually happening?

Vue doesn't respect typescript autoImportSpecifierExcludeRegexes

Link to minimal reproduction

No response

Any additional comments?

Is there any workaround?

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions