Skip to content

Make URLs GHE aware#316630

Merged
lramos15 merged 2 commits into
mainfrom
lramos15/ready-krill
May 15, 2026
Merged

Make URLs GHE aware#316630
lramos15 merged 2 commits into
mainfrom
lramos15/ready-krill

Conversation

@lramos15
Copy link
Copy Markdown
Member

Follow up needed for Copilot extension

Copilot AI review requested due to automatic review settings May 15, 2026 15:40
@lramos15 lramos15 enabled auto-merge (squash) May 15, 2026 15:41
@lramos15 lramos15 self-assigned this May 15, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR makes Copilot-related “manage settings/budget” links GitHub Enterprise-aware by routing URL construction through IDefaultAccountService, and removes the now-inappropriate fully-qualified GitHub.com URLs from product configuration.

Changes:

  • Add resolveGitHubUrl(path) to IDefaultAccountProvider/IDefaultAccountService and implement enterprise-aware resolution in the workbench default account provider.
  • Update chat/setup/onboarding UI surfaces to use defaultAccountService.resolveGitHubUrl(...) instead of product.defaultChatAgent.manageSettingsUrl/manageOverageUrl.
  • Remove manageSettingsUrl and manageOverageUrl from IDefaultChatAgent and product.json.
Show a summary per file
File Description
src/vs/workbench/test/browser/componentFixtures/fixtureUtils.ts Updates test service fixture to include resolveGitHubUrl.
src/vs/workbench/services/policies/test/browser/multiplexPolicyService.test.ts Updates policy test provider stub to implement resolveGitHubUrl.
src/vs/workbench/services/policies/test/browser/accountPolicyService.test.ts Updates policy test provider stub to implement resolveGitHubUrl.
src/vs/workbench/services/accounts/browser/defaultAccount.ts Implements enterprise-aware resolveGitHubUrl on provider/service.
src/vs/workbench/contrib/welcomeOnboarding/browser/onboardingVariationA.ts Switches Copilot settings link to enterprise-aware URL resolution.
src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.ts Refactors Copilot settings message to accept a settings URL at call time.
src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.ts Injects IDefaultAccountService and uses it for “manage settings” URL.
src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.ts Uses enterprise-aware URL resolution for settings/budget links.
src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.ts Uses enterprise-aware URL resolution for setup footer settings link.
src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.ts Uses enterprise-aware URL resolution for “Manage Budget” command.
src/vs/workbench/contrib/chat/browser/actions/chatActions.ts Uses enterprise-aware URL resolution for “Manage Copilot Settings” action.
src/vs/sessions/test/web.test.ts Updates sessions test default account mock to include resolveGitHubUrl.
src/vs/sessions/browser/sessionsSetUpService.ts Uses enterprise-aware URL resolution for setup footer settings link.
src/vs/platform/defaultAccount/common/defaultAccount.ts Extends default account provider/service interfaces with resolveGitHubUrl (with JSDoc).
src/vs/editor/standalone/browser/standaloneServices.ts Adds resolveGitHubUrl to standalone default account service implementation.
src/vs/editor/contrib/inlineCompletions/test/browser/utils.ts Updates inline completions test service stub to include resolveGitHubUrl.
src/vs/base/common/product.ts Removes manageSettingsUrl/manageOverageUrl from IDefaultChatAgent.
product.json Removes defaultChatAgent.manageSettingsUrl/manageOverageUrl values.

Copilot's findings

  • Files reviewed: 18/18 changed files
  • Comments generated: 2

Comment thread src/vs/base/common/product.ts
Comment thread src/vs/workbench/contrib/chat/browser/actions/chatActions.ts
@lramos15 lramos15 disabled auto-merge May 15, 2026 16:04
@lramos15 lramos15 merged commit 106b431 into main May 15, 2026
25 checks passed
@lramos15 lramos15 deleted the lramos15/ready-krill branch May 15, 2026 16:43
@vs-code-engineering vs-code-engineering Bot added this to the 1.121.0 milestone May 15, 2026
@alialobidm
Copy link
Copy Markdown

``

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.

4 participants