antfu / vscode-vite

One step faster for Vite in VS Code ⚡️
https://marketplace.visualstudio.com/items?itemName=antfu.vite
452 stars 25 forks source link

Restart vite server command causes 'Terminate batch job' prompt in windows #5

Open qgates opened 3 years ago

qgates commented 3 years ago

With vite server already running, issuing 'Restart vite server' command causes ^CTerminate batch job (Y/N)? to appear in terminal window, even if it's not shown. Running the command a second time restarts the server.

Stop vite server also brings up the prompt.

Liwoj commented 2 years ago

Unfortunately using new VS Code Terminal "Autoreply" feature does not help with this:

settings.json

"terminal.integrated.autoReplies": {
        "Terminate batch job (Y/N)?": "Y\r",
    },

After using "Restart Vite server" command, the prompt is auto-answered but Vite server does not start. Running command again is required...