mirror of
https://github.com/coder/code-server.git
synced 2026-05-07 04:51:59 +02:00
Compare commits
2 Commits
v4.17.1-rc
...
v4.17.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2eba7af117 | ||
|
|
0dc59c0da2 |
@@ -40,6 +40,16 @@ main() {
|
|||||||
|
|
||||||
source ./ci/lib.sh
|
source ./ci/lib.sh
|
||||||
|
|
||||||
|
# Set the commit Code will embed into the product.json. We need to do this
|
||||||
|
# since Code tries to get the commit from the `.git` directory which will fail
|
||||||
|
# as it is a submodule.
|
||||||
|
#
|
||||||
|
# Also, we use code-server's commit rather than VS Code's otherwise it would
|
||||||
|
# not update when only our patch files change, and that will cause caching
|
||||||
|
# issues where the browser keeps using outdated code.
|
||||||
|
export BUILD_SOURCEVERSION
|
||||||
|
BUILD_SOURCEVERSION=$(git rev-parse HEAD)
|
||||||
|
|
||||||
pushd lib/vscode
|
pushd lib/vscode
|
||||||
|
|
||||||
if [[ ! ${VERSION-} ]]; then
|
if [[ ! ${VERSION-} ]]; then
|
||||||
@@ -48,14 +58,11 @@ main() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set the commit Code will embed into the product.json. We need to do this
|
# Add the date, our name, links, enable telemetry (this just makes telemetry
|
||||||
# since Code tries to get the commit from the `.git` directory which will fail
|
# available; telemetry can still be disabled by flag or setting), and
|
||||||
# as it is a submodule.
|
# configure trusted extensions (since some, like github.copilot-chat, never
|
||||||
export BUILD_SOURCEVERSION
|
# ask to be trusted and this is the only way to get auth working).
|
||||||
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).
|
|
||||||
# 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.
|
||||||
@@ -89,6 +96,11 @@ main() {
|
|||||||
"linkProtectionTrustedDomains": [
|
"linkProtectionTrustedDomains": [
|
||||||
"https://open-vsx.org"
|
"https://open-vsx.org"
|
||||||
],
|
],
|
||||||
|
"trustedExtensionAuthAccess": [
|
||||||
|
"vscode.git", "vscode.github",
|
||||||
|
"github.vscode-pull-request-github",
|
||||||
|
"github.copilot", "github.copilot-chat"
|
||||||
|
],
|
||||||
"aiConfig": {
|
"aiConfig": {
|
||||||
"ariaKey": "code-server"
|
"ariaKey": "code-server"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user