Skip to content

Commit

Permalink
fix(vscode): set a default value for the vscode host parameter (#766)
Browse files Browse the repository at this point in the history
  • Loading branch information
gsxdsm authored Dec 30, 2024
1 parent 28eecb6 commit 2e6b4e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/devtools/src/integrations/vscode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> | null = null
const mode = vsOptions?.mode || 'local-serve'
Expand Down

0 comments on commit 2e6b4e4

Please sign in to comment.