Add trusted extension list

Also trust github.com to make the auth flow smoother.
This commit is contained in:
Asher 2023-09-29 10:37:20 -08:00
parent 6275520348
commit 0dc59c0da2
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A
1 changed files with 12 additions and 3 deletions

View File

@ -54,8 +54,11 @@ main() {
export BUILD_SOURCEVERSION export BUILD_SOURCEVERSION
BUILD_SOURCEVERSION=$(git rev-parse HEAD) BUILD_SOURCEVERSION=$(git rev-parse HEAD)
# Add the date, our name, links, and enable telemetry (this just makes # Add the date, our name, links, enable telemetry (this just makes telemetry
# telemetry available; telemetry can still be disabled by flag or setting). # 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 # This needs to be done before building as Code will read this file and embed
# it into the client-side code. # it into the client-side code.
git checkout product.json # Reset in case the script exited early. git checkout product.json # Reset in case the script exited early.
@ -87,7 +90,13 @@ main() {
"tipsAndTricksUrl": "https://go.microsoft.com/fwlink/?linkid=852118", "tipsAndTricksUrl": "https://go.microsoft.com/fwlink/?linkid=852118",
"newsletterSignupUrl": "https://www.research.net/r/vsc-newsletter", "newsletterSignupUrl": "https://www.research.net/r/vsc-newsletter",
"linkProtectionTrustedDomains": [ "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": { "aiConfig": {
"ariaKey": "code-server" "ariaKey": "code-server"