Skip to content

Duplicated import after latest #5814

@francoism90

Description

@francoism90

Vue - Official extension or vue-tsc version

3.1.6 (downgrading to 3.1.5 fixes the issue)

VSCode version

1.106.3

Vue version

3.5.25

TypeScript version

5.9.3

System Info

System:
    OS: Linux 6.17 Alpine Linux
    CPU: (16) x64 AMD Ryzen 7 8845HS w/ Radeon 780M Graphics
    Memory: 5.55 GB / 13.44 GB
    Container: Yes
    Shell: 5.2.37 - /bin/bash
  Binaries:
    Node: 22.16.0 - /usr/bin/node
    Yarn: 1.22.22 - /usr/local/bin/yarn
    npm: 11.6.3 - /usr/local/bin/npm
    pnpm: 10.24.0 - /usr/local/bin/pnpm

package.json dependencies

{
    "$schema": "https://json.schemastore.org/package.json",
    "version": "0.0.0",
    "private": true,
    "type": "module",
    "engines": {
        "node": "^20.19.0 || >=22.12.0"
    },
    "scripts": {
        "dev": "vite",
        "build": "vite build",
        "build:ssr": "vite build && vite build --ssr",
        "type-check": "vue-tsc --build",
        "lint": "eslint . --fix --cache",
        "format": "prettier --write ."
    },
    "dependencies": {
        "@inertiajs/vue3": "^2.2.19"
    },
    "devDependencies": {
        "@tsconfig/node22": "^22.0.5",
        "@types/node": "^24.10.1",
        "@vitejs/plugin-vue": "^6.0.2",
        "@vitejs/plugin-vue-jsx": "^5.1.2",
        "@vitest/eslint-plugin": "^1.5.1",
        "@vue/eslint-config-prettier": "^10.2.0",
        "@vue/eslint-config-typescript": "^14.6.0",
        "@vue/tsconfig": "^0.8.1",
        "chokidar": "^5.0.0",
        "concurrently": "^9.2.1",
        "eslint": "^9.39.1",
        "eslint-plugin-vue": "^10.6.2",
        "jiti": "^2.6.1",
        "npm-run-all2": "^8.0.4",
        "prettier": "3.7.4",
        "prettier-plugin-tailwindcss": "^0.7.2",
        "typescript": "~5.9.3",
        "vite": "^7.2.6",
        "vite-plugin-pwa": "^1.2.0",
        "vite-plugin-vue-devtools": "^8.0.5",
        "vue-tsc": "^3.1.6",
        "workbox-window": "^7.4.0"
    }
}

Steps to reproduce

After making changes and save file, it will duplicate import statements.

What is expected?

No duplication.

What is actually happening?

Imports keep looping. It reminds me of an older bug that did the same.

Link to minimal reproduction

No response

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions