From 2e6b4e4f7da8f8dc926cc0a9f13cbf6dd1562bac Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Sun, 29 Dec 2024 19:18:01 -0800 Subject: [PATCH] fix(vscode): set a default value for the vscode host parameter (#766) --- packages/devtools/src/integrations/vscode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/devtools/src/integrations/vscode.ts b/packages/devtools/src/integrations/vscode.ts index 47a6af98e..9dc45a573 100644 --- a/packages/devtools/src/integrations/vscode.ts +++ b/packages/devtools/src/integrations/vscode.ts @@ -38,7 +38,7 @@ export async function setup({ nuxt, options, openInEditorHooks, rpc }: NuxtDevto const installed = !!await which(codeBinary).catch(() => null) let port = vsOptions?.port || 3080 let url = `http://localhost:${port}` - const host = vsOptions?.host ? `--host=${vsOptions.host}` : '' + const host = vsOptions?.host ? `--host=${vsOptions.host}` : '--host=127.0.0.1' let loaded = false let promise: Promise | null = null const mode = vsOptions?.mode || 'local-serve'