Skip to content

Set a default value for the vscode host parameter#766

Merged
antfu merged 1 commit into
nuxt:mainfrom
gsxdsm:upstream
Dec 30, 2024
Merged

Set a default value for the vscode host parameter#766
antfu merged 1 commit into
nuxt:mainfrom
gsxdsm:upstream

Conversation

@gsxdsm

@gsxdsm gsxdsm commented Dec 29, 2024

Copy link
Copy Markdown
Contributor

🔗 Fixes

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

Fixes a bug in #763 - when the host parameter is not specified, the MS Code Server and MS Code CLI won't start (empty parameter is unrecognized). This change defaults the host to 127.0.0.1.

Without this, the ms-code-cli will fail to start if the host isn't specified in nuxt config.
@gsxdsm

gsxdsm commented Dec 29, 2024

Copy link
Copy Markdown
Contributor Author

@antfu heads up - I found a bug in my changes, the ms-code-server and ms-code-cli options weren't working if a host wasn't specified. This sets a default value for the host (127.0.0.1)

@antfu antfu merged commit 2e6b4e4 into nuxt:main Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: existing links to "VS Code Server" should be updated fix: VS Code Server docs chaos Unable to connect to VS Code Server

2 participants