Skip to content

Commit 2e6b4e4

Browse files
authored
fix(vscode): set a default value for the vscode host parameter (#766)
1 parent 28eecb6 commit 2e6b4e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/devtools/src/integrations/vscode.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export async function setup({ nuxt, options, openInEditorHooks, rpc }: NuxtDevto
3838
const installed = !!await which(codeBinary).catch(() => null)
3939
let port = vsOptions?.port || 3080
4040
let url = `http://localhost:${port}`
41-
const host = vsOptions?.host ? `--host=${vsOptions.host}` : ''
41+
const host = vsOptions?.host ? `--host=${vsOptions.host}` : '--host=127.0.0.1'
4242
let loaded = false
4343
let promise: Promise<void> | null = null
4444
const mode = vsOptions?.mode || 'local-serve'

0 commit comments

Comments
 (0)