Skip to content

Commit 0dc59c0

Browse files
committed
Add trusted extension list
Also trust github.com to make the auth flow smoother.
1 parent 6275520 commit 0dc59c0

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

ci/build/build-vscode.sh

+12-3
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,11 @@ main() {
5454
export BUILD_SOURCEVERSION
5555
BUILD_SOURCEVERSION=$(git rev-parse HEAD)
5656

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

0 commit comments

Comments
 (0)