Skip to content

Extension host unexpectedly restarts when opening vue/html files in versions 3.0.2 and 3.0.5(latest version) #5587

@Fu-Shengsheng

Description

@Fu-Shengsheng

Vue - Official extension or vue-tsc version

3.0.5

VSCode version

1.102.1

Vue version

2.7

TypeScript version

5.6.3

System Info

System:
    OS: macOS 15.5
    CPU: (11) arm64 Apple M3 Pro
    Memory: 252.55 MB / 36.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 22.17.0 - ~/.nvm/versions/node/v22.17.0/bin/node
    Yarn: 1.22.22 - ~/.nvm/versions/node/v22.17.0/bin/yarn
    npm: 10.9.2 - ~/.nvm/versions/node/v22.17.0/bin/npm
    pnpm: 10.7.0 - ~/Library/pnpm/pnpm
  Browsers:
    Chrome: 138.0.7204.184
    Edge: 138.0.3351.121
    Safari: 18.5

package.json dependencies

Steps to reproduce

Describe
When using the Vue (Official) VSCode extension, opening a .vue or .html file for the first time causes all VSCode extensions to reload. This seems to be triggered by workbench.action.restartExtensionHost. As a result, any tasks running in other extensions (like linters, debuggers, or terminals) are unexpectedly interrupted.


Tested versions

  • 3.0.3: No issue
  • 3.0.4: No issue
  • 3.0.2: Has the issue
  • 3.0.5 (latest): Has the issue

To reproduce

  1. Install the Vue (Official) extension version 3.0.2 or 3.0.5.
  2. Open VSCode with any project.
  3. Open a .vue or .html file for the first time in this session.
  4. The Extension Host restarts and all other extensions reload.

Expected behavior
Opening a .vue or .html file should not restart the Extension Host. Other extensions should keep running without interruption.


Environment

  • VSCode version: please fill in
  • OS: please fill in

Additional context
This issue does not occur in versions 3.0.3 and 3.0.4, so it seems to have been fixed temporarily and then reappeared in 3.0.5.
This can disrupt workflows if any tasks depend on the Extension Host staying alive.


Thank you!
Thank you for maintaining the Vue (Official) extension. Please let me know if more information is needed — happy to help test!

What is expected?

First time opening a .vue or .html file should not restart the Extension Host. Other extensions should keep running without interruption.

What is actually happening?

Opening a .vue or .html file for the first time(for example, the first time after reloading the window) causes all VSCode extensions to reload

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