Skip to content

Arc URL resolution now honors launchSettings.json and defaults to localhost:5000#20

Merged
einari merged 2 commits into
mainfrom
copilot/improve-arc-support
May 16, 2026
Merged

Arc URL resolution now honors launchSettings.json and defaults to localhost:5000#20
einari merged 2 commits into
mainfrom
copilot/improve-arc-support

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 16, 2026

Summary

Arc commands previously fell back directly to a hardcoded default URL when --url/ARC_URL were unset, which missed common local Arc setups. This change adds launchSettings.json discovery (Properties/properties) and aligns the default Arc URL with Arc app defaults.

Added

  • Added launch settings URL discovery in Arc settings resolution by reading profiles.*.applicationUrl from Properties/launchSettings.json or properties/launchSettings.json (#issue)

Changed

  • Updated Arc URL resolution precedence to: --urlARC_URLlaunchSettings.json applicationUrl → default (http://localhost:5000) (#issue)
  • Updated Arc command examples and Arc docs to reflect http://localhost:5000 as the default URL and the new resolution order (#issue)
// Effective Arc URL resolution
if (--url is set) return url;
if (ARC_URL is set) return env;
if (launchSettings.applicationUrl exists) return applicationUrl;
return "http://localhost:5000";

Fixed

  • Fixed Arc CLI behavior for local projects where runtime URL is configured in launch settings but not passed as a flag/env var (#issue)
  • Fixed mismatch between documented/default Arc URL and expected Arc local default (http://localhost:5000) (#issue)

Removed

  • Removed implicit assumption that Arc URL fallback is only an env var + hardcoded default path (#issue)

Security

  • No security behavior change; launch settings parsing is local-file, read-only, and guarded for invalid/unreadable JSON (#issue)

Deprecated

  • No deprecations in this PR (#issue)

Copilot AI linked an issue May 16, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Update Arc support to read applicationUrl from launchSettings.json Arc URL resolution now honors launchSettings.json and defaults to localhost:5000 May 16, 2026
Copilot finished work on behalf of einari May 16, 2026 06:52
Copilot AI requested a review from einari May 16, 2026 06:52
@einari einari added the patch label May 16, 2026
@einari einari marked this pull request as ready for review May 16, 2026 06:54
@einari einari merged commit 90a3142 into main May 16, 2026
1 check passed
@einari einari deleted the copilot/improve-arc-support branch May 16, 2026 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve Arc support

2 participants