Skip to content

Commit

Permalink
Add trusted extension list
Browse files Browse the repository at this point in the history
Also trust github.com to make the auth flow smoother.
  • Loading branch information
code-asher committed Sep 29, 2023
1 parent 6275520 commit 0dc59c0
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions ci/build/build-vscode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,11 @@ main() {
export BUILD_SOURCEVERSION
BUILD_SOURCEVERSION=$(git rev-parse HEAD)

# Add the date, our name, links, and enable telemetry (this just makes
# telemetry available; telemetry can still be disabled by flag or setting).
# Add the date, our name, links, enable telemetry (this just makes telemetry
# available; telemetry can still be disabled by flag or setting), and
# configure trusted extensions (since some, like github.copilot-chat, never
# ask to be trusted and this is the only way to get auth working).
#
# This needs to be done before building as Code will read this file and embed
# it into the client-side code.
git checkout product.json # Reset in case the script exited early.
Expand Down Expand Up @@ -87,7 +90,13 @@ main() {
"tipsAndTricksUrl": "https://go.microsoft.com/fwlink/?linkid=852118",
"newsletterSignupUrl": "https://www.research.net/r/vsc-newsletter",
"linkProtectionTrustedDomains": [
"https://open-vsx.org"
"https://open-vsx.org",
"https://*.github.com"
],
"trustedExtensionAuthAccess": [
"vscode.git", "vscode.github",
"github.vscode-pull-request-github",
"github.copilot", "github.copilot-chat"
],
"aiConfig": {
"ariaKey": "code-server"
Expand Down

0 comments on commit 0dc59c0

Please sign in to comment.