mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-16 13:44:30 +10:00
Compare commits
29 Commits
1.104.3666
...
1.105.1707
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
88f558aafc | ||
|
|
11b807517c | ||
|
|
9664f9e77d | ||
|
|
5993ddb3a5 | ||
|
|
59e21c9cc6 | ||
|
|
2fccc0e2fe | ||
|
|
51ad421762 | ||
|
|
646b42473b | ||
|
|
068f270488 | ||
|
|
4ba37835b2 | ||
|
|
2487cd7ce2 | ||
|
|
75df078e52 | ||
|
|
9061e7e264 | ||
|
|
adef3f0534 | ||
|
|
dab94316d5 | ||
|
|
60b7a4640e | ||
|
|
f81d3d53ad | ||
|
|
a95e1ff14f | ||
|
|
36270ef9c3 | ||
|
|
c0ac4bd72e | ||
|
|
f60f14d085 | ||
|
|
a9167d21e2 | ||
|
|
e1f7642bcb | ||
|
|
94a6ad5495 | ||
|
|
73046b84aa | ||
|
|
578df58363 | ||
|
|
20382726b4 | ||
|
|
b943cab988 | ||
|
|
a69d10fa91 |
6
.github/workflows/insider-linux.yml
vendored
6
.github/workflows/insider-linux.yml
vendored
@@ -102,7 +102,7 @@ jobs:
|
||||
platform: x64
|
||||
|
||||
- name: Setup Node.js environment
|
||||
uses: actions/setup-node@v5
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
if: env.SHOULD_BUILD == 'yes'
|
||||
@@ -328,7 +328,7 @@ jobs:
|
||||
if: env.DISABLED != 'yes'
|
||||
|
||||
- name: Setup Node.js environment
|
||||
uses: actions/setup-node@v5
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
if: env.DISABLED != 'yes'
|
||||
@@ -550,7 +550,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Trigger repository rebuild
|
||||
uses: peter-evans/repository-dispatch@v3
|
||||
uses: peter-evans/repository-dispatch@v4
|
||||
with:
|
||||
token: ${{ secrets.STRONGER_GITHUB_TOKEN }}
|
||||
repository: VSCodium/repositories-linux
|
||||
|
||||
2
.github/workflows/insider-macos.yml
vendored
2
.github/workflows/insider-macos.yml
vendored
@@ -60,7 +60,7 @@ jobs:
|
||||
run: . get_pr.sh
|
||||
|
||||
- name: Setup Node.js environment
|
||||
uses: actions/setup-node@v5
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
|
||||
|
||||
12
.github/workflows/insider-spearhead.yml
vendored
12
.github/workflows/insider-spearhead.yml
vendored
@@ -28,6 +28,7 @@ jobs:
|
||||
GH_REPO_PATH: ${{ github.repository }}
|
||||
ORG_NAME: ${{ github.repository_owner }}
|
||||
OS_NAME: osx
|
||||
SOURCEMAPS_REPOSITORY: ${{ github.repository_owner }}/sourcemaps
|
||||
VERSIONS_REPOSITORY: ${{ github.repository_owner }}/versions
|
||||
VSCODE_ARCH: arm64
|
||||
VSCODE_LATEST: ${{ github.event.inputs.dont_update == 'true' && 'no' || 'yes' }}
|
||||
@@ -39,7 +40,7 @@ jobs:
|
||||
ref: insider
|
||||
|
||||
- name: Setup Node.js environment
|
||||
uses: actions/setup-node@v5
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
|
||||
@@ -76,6 +77,13 @@ jobs:
|
||||
run: ./prepare_src.sh
|
||||
if: env.SHOULD_BUILD == 'yes'
|
||||
|
||||
- name: Upload sourcemaps
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
|
||||
GITHUB_USERNAME: ${{ github.repository_owner }}
|
||||
run: ./upload_sourcemaps.sh
|
||||
if: env.SHOULD_BUILD == 'yes'
|
||||
|
||||
- name: Release source
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
|
||||
@@ -84,7 +92,7 @@ jobs:
|
||||
if: env.SHOULD_BUILD == 'yes'
|
||||
|
||||
- name: Dispatch builds
|
||||
uses: peter-evans/repository-dispatch@v3
|
||||
uses: peter-evans/repository-dispatch@v4
|
||||
with:
|
||||
event-type: insider
|
||||
if: github.event.inputs.dont_dispatch != 'true' && (env.SHOULD_BUILD == 'yes' || github.event.inputs.force_dispatch == 'true')
|
||||
|
||||
4
.github/workflows/insider-windows.yml
vendored
4
.github/workflows/insider-windows.yml
vendored
@@ -100,7 +100,7 @@ jobs:
|
||||
platform: x64
|
||||
|
||||
- name: Setup Node.js environment
|
||||
uses: actions/setup-node@v5
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
if: env.SHOULD_BUILD == 'yes'
|
||||
@@ -181,7 +181,7 @@ jobs:
|
||||
if: env.SHOULD_BUILD == 'yes'
|
||||
|
||||
- name: Setup Node.js environment
|
||||
uses: actions/setup-node@v5
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
if: env.SHOULD_BUILD == 'yes'
|
||||
|
||||
6
.github/workflows/stable-linux.yml
vendored
6
.github/workflows/stable-linux.yml
vendored
@@ -103,7 +103,7 @@ jobs:
|
||||
if: env.SHOULD_BUILD == 'yes'
|
||||
|
||||
- name: Setup Node.js environment
|
||||
uses: actions/setup-node@v5
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
if: env.SHOULD_BUILD == 'yes'
|
||||
@@ -329,7 +329,7 @@ jobs:
|
||||
if: env.DISABLED != 'yes'
|
||||
|
||||
- name: Setup Node.js environment
|
||||
uses: actions/setup-node@v5
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
if: env.DISABLED != 'yes'
|
||||
@@ -581,7 +581,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Trigger repository rebuild
|
||||
uses: peter-evans/repository-dispatch@v3
|
||||
uses: peter-evans/repository-dispatch@v4
|
||||
with:
|
||||
token: ${{ secrets.STRONGER_GITHUB_TOKEN }}
|
||||
repository: VSCodium/repositories-linux
|
||||
|
||||
2
.github/workflows/stable-macos.yml
vendored
2
.github/workflows/stable-macos.yml
vendored
@@ -59,7 +59,7 @@ jobs:
|
||||
run: . get_pr.sh
|
||||
|
||||
- name: Setup Node.js environment
|
||||
uses: actions/setup-node@v5
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
|
||||
|
||||
12
.github/workflows/stable-spearhead.yml
vendored
12
.github/workflows/stable-spearhead.yml
vendored
@@ -25,6 +25,7 @@ jobs:
|
||||
GH_REPO_PATH: ${{ github.repository }}
|
||||
ORG_NAME: ${{ github.repository_owner }}
|
||||
OS_NAME: osx
|
||||
SOURCEMAPS_REPOSITORY: ${{ github.repository_owner }}/sourcemaps
|
||||
VERSIONS_REPOSITORY: ${{ github.repository_owner }}/versions
|
||||
VSCODE_ARCH: arm64
|
||||
VSCODE_LATEST: ${{ github.event.inputs.dont_update == 'true' && 'no' || 'yes' }}
|
||||
@@ -34,7 +35,7 @@ jobs:
|
||||
- uses: actions/checkout@v5
|
||||
|
||||
- name: Setup Node.js environment
|
||||
uses: actions/setup-node@v5
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
|
||||
@@ -71,6 +72,13 @@ jobs:
|
||||
run: ./prepare_src.sh
|
||||
if: env.SHOULD_BUILD == 'yes'
|
||||
|
||||
- name: Upload sourcemaps
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
|
||||
GITHUB_USERNAME: ${{ github.repository_owner }}
|
||||
run: ./upload_sourcemaps.sh
|
||||
if: env.SHOULD_BUILD == 'yes'
|
||||
|
||||
- name: Release source
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.STRONGER_GITHUB_TOKEN }}
|
||||
@@ -79,7 +87,7 @@ jobs:
|
||||
if: env.SHOULD_BUILD == 'yes'
|
||||
|
||||
- name: Dispatch builds
|
||||
uses: peter-evans/repository-dispatch@v3
|
||||
uses: peter-evans/repository-dispatch@v4
|
||||
with:
|
||||
event-type: stable
|
||||
if: env.SHOULD_BUILD == 'yes' || github.event.inputs.force_dispatch == 'true'
|
||||
|
||||
4
.github/workflows/stable-windows.yml
vendored
4
.github/workflows/stable-windows.yml
vendored
@@ -99,7 +99,7 @@ jobs:
|
||||
platform: x64
|
||||
|
||||
- name: Setup Node.js environment
|
||||
uses: actions/setup-node@v5
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
if: env.SHOULD_BUILD == 'yes'
|
||||
@@ -180,7 +180,7 @@ jobs:
|
||||
if: env.SHOULD_BUILD == 'yes'
|
||||
|
||||
- name: Setup Node.js environment
|
||||
uses: actions/setup-node@v5
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
if: env.SHOULD_BUILD == 'yes'
|
||||
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -14,5 +14,6 @@ build/linux/appimage/VSCodium
|
||||
build/windows/msi/releasedir
|
||||
build/windows/msi/Files*.wxs
|
||||
build/windows/msi/Files*.wixobj
|
||||
sourcemaps/
|
||||
stores/snapcraft/insider/*.snap
|
||||
stores/snapcraft/stable/*.snap
|
||||
|
||||
@@ -64,7 +64,7 @@ fi
|
||||
|
||||
for ARCH in alpine linux osx windows; do
|
||||
for FILE in "../patches/${ARCH}/"*.patch; do
|
||||
if [[ "${ARCH}" == "linux" && "${FILE}" == *"/arch-"* ]] || [[ "${ARCH}" == "windows" && "${FILE}" == *"/cli"* ]]; then
|
||||
if [[ "${ARCH}" == "linux" && "${FILE}" == *"/arch-"* ]] || [[ "${ARCH}" == "linux" && "${FILE}" == *"/fix-dependencies.patch" ]] || [[ "${ARCH}" == "windows" && "${FILE}" == *"/cli"* ]]; then
|
||||
echo "skip ${FILE}"
|
||||
else
|
||||
check_file "${FILE}"
|
||||
@@ -72,6 +72,8 @@ for ARCH in alpine linux osx windows; do
|
||||
done
|
||||
|
||||
if [[ "${ARCH}" == "linux" ]]; then
|
||||
check_file "../patches/optional-tree-sitter.patch" "../patches/linux/fix-dependencies.patch"
|
||||
|
||||
check_file "../patches/cli.patch" "../patches/linux/arch-0-support.patch"
|
||||
check_file "../patches/cli.patch" "../patches/linux/arch-0-support.patch" "../patches/linux/arch-1-ppc64le.patch"
|
||||
check_file "../patches/cli.patch" "../patches/linux/arch-0-support.patch" "../patches/linux/arch-1-ppc64le.patch" "../patches/linux/arch-2-riscv64.patch"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<!-- order: 10 -->
|
||||
|
||||
# Getiing all telemetry out
|
||||
# Getting all telemetry out
|
||||
|
||||
This page explains how VSCodium handles telemetry and how it enhances your privacy.
|
||||
|
||||
@@ -28,17 +28,25 @@ workbench.commandPalette.experimental.enableNaturalLanguageSearch
|
||||
```
|
||||
It is also recommended that you review all the settings that "use online services" by following [these instructions](https://code.visualstudio.com/docs/getstarted/telemetry#_managing-online-services). You can use the search filter `@tag:usesOnlineServices` to show such settings and review what to change.
|
||||
|
||||
*Note: on Linux, the app update service (extensions are not affected) is disabled completely even if the `update.mode` preference is configured.*
|
||||
|
||||
__Please note that some extensions send telemetry data to Microsoft as well. We have no control over this and can only recommend removing the extension.__ _(For example, the C# extension `ms-vscode.csharp` sends tracking data to Microsoft.)_ Be sure to check each extension's settings page to disable its telemetry if applicable.
|
||||
__Please note that some extensions send telemetry data to Microsoft as well. We have no control over this and can only recommend removing the extension.__
|
||||
For example, the C# extension `ms-vscode.csharp` sends tracking data to Microsoft. Be sure to check each extension's settings page to disable their telemetry if applicable.
|
||||
|
||||
### Update services
|
||||
The app periodically fetches connections to check for the latest version and download it to install.
|
||||
By default, the app periodically fetches connections to check for the latest version available to download and install.
|
||||
Extensions are also checked for updates automatically from time to time.
|
||||
|
||||
If you want to prevent such behavior, modify the following preferences:
|
||||
If you want to prevent such behaviors, modify the following preferences:
|
||||
|
||||
For the app itself:
|
||||
- `update.mode` -> `manual` (or `none`)
|
||||
- `update.enableWindowsBackgroundUpdates` -> `false` (only applicable for Microsoft Windows)
|
||||
|
||||
For extensions:
|
||||
- `extensions.autoUpdate` -> `false`
|
||||
- `extensions.autoCheckUpdates` -> `false`
|
||||
|
||||
*Note: on Linux, the app update service is disabled completely at build-time even if the `update.mode` preference is configured. This is because users will more likely use their package managers to update the app rather than updating via the app itself.*
|
||||
|
||||
### Feedback telemetry
|
||||
By default, we keep the preference `telemetry.feedback.enabled` enabled. It's used to allow the button `Report Issue...` to be used on the app depending on the context. It does not send any data by having it enabled (other options already cover it). If you want, you can disable this behavior by toggling the preference value.
|
||||
|
||||
@@ -69,5 +77,5 @@ If you prefer to disable this feature, you can disable the preference `workbench
|
||||
The definitions for malicious and deprecated extensions are dynamically loaded from the following URL:
|
||||
https://raw.githubusercontent.com/EclipseFdn/publish-extensions/refs/heads/master/extension-control/extensions.json
|
||||
|
||||
If you prefer to avoid any external connections, you can disable the preference `extensions.excludeUnsafes`.
|
||||
If you prefer to avoid any external connections, you can disable the preference `extensions.excludeUnsafes`.
|
||||
However, this is not recommended as it may reduce the safety of your environment.
|
||||
|
||||
@@ -73,37 +73,37 @@ index be7eea1..0737bab 100644
|
||||
+const bumpEngineForImplicitActivationEvents = l10n.t("This activation event can be removed for extensions targeting engine version ^1.75 as !!APP_NAME!! will generate these automatically from your package.json contribution declarations.");
|
||||
const starActivation = l10n.t("Using '*' activation is usually a bad idea as it impacts performance.");
|
||||
diff --git a/extensions/git/package.nls.json b/extensions/git/package.nls.json
|
||||
index 8e2d58e..01218da 100644
|
||||
index ae4159e..93d74ae 100644
|
||||
--- a/extensions/git/package.nls.json
|
||||
+++ b/extensions/git/package.nls.json
|
||||
@@ -236,3 +236,3 @@
|
||||
@@ -237,3 +237,3 @@
|
||||
"{Locked='](command:git.showOutput'}",
|
||||
- "Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for VS Code",
|
||||
+ "Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for !!APP_NAME!!",
|
||||
"Please make sure there is no space between the right bracket and left parenthesis: ]( this is an internal syntax for links"
|
||||
@@ -264,4 +264,4 @@
|
||||
@@ -265,4 +265,4 @@
|
||||
"config.showCommitInput": "Controls whether to show the commit input in the Git source control panel.",
|
||||
- "config.terminalAuthentication": "Controls whether to enable VS Code to be the authentication handler for Git processes spawned in the Integrated Terminal. Note: Terminals need to be restarted to pick up a change in this setting.",
|
||||
- "config.terminalGitEditor": "Controls whether to enable VS Code to be the Git editor for Git processes spawned in the integrated terminal. Note: Terminals need to be restarted to pick up a change in this setting.",
|
||||
+ "config.terminalAuthentication": "Controls whether to enable !!APP_NAME!! to be the authentication handler for Git processes spawned in the Integrated Terminal. Note: Terminals need to be restarted to pick up a change in this setting.",
|
||||
+ "config.terminalGitEditor": "Controls whether to enable !!APP_NAME!! to be the Git editor for Git processes spawned in the integrated terminal. Note: Terminals need to be restarted to pick up a change in this setting.",
|
||||
"config.timeline.showAuthor": "Controls whether to show the commit author in the Timeline view.",
|
||||
@@ -333,3 +333,3 @@
|
||||
@@ -334,3 +334,3 @@
|
||||
"{Locked='](command:workbench.extensions.search?%22%40category%3A%5C%22scm%20providers%5C%22%22'}",
|
||||
- "Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for VS Code",
|
||||
+ "Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for !!APP_NAME!!",
|
||||
"Please make sure there is no space between the right bracket and left parenthesis: ]( this is an internal syntax for links"
|
||||
@@ -343,3 +343,3 @@
|
||||
@@ -344,3 +344,3 @@
|
||||
"{Locked='](command:workbench.extensions.search?%22%40category%3A%5C%22scm%20providers%5C%22%22'}",
|
||||
- "Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for VS Code",
|
||||
+ "Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for !!APP_NAME!!",
|
||||
"Please make sure there is no space between the right bracket and left parenthesis: ]( this is an internal syntax for links"
|
||||
@@ -353,3 +353,3 @@
|
||||
@@ -354,3 +354,3 @@
|
||||
"{Locked='](command:workbench.extensions.search?%22%40category%3A%5C%22scm%20providers%5C%22%22'}",
|
||||
- "Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for VS Code",
|
||||
+ "Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for !!APP_NAME!!",
|
||||
"Please make sure there is no space between the right bracket and left parenthesis: ]( this is an internal syntax for links"
|
||||
@@ -365,6 +365,6 @@
|
||||
@@ -366,6 +366,6 @@
|
||||
"view.workbench.scm.disabled": {
|
||||
- "message": "If you would like to use Git features, please enable Git in your [settings](command:workbench.action.openSettings?%5B%22git.enabled%22%5D).\nTo learn more about how to use Git and source control in VS Code [read our docs](https://aka.ms/vscode-scm).",
|
||||
+ "message": "If you would like to use Git features, please enable Git in your [settings](command:workbench.action.openSettings?%5B%22git.enabled%22%5D).\nTo learn more about how to use Git and source control in !!APP_NAME!! [read our docs](https://aka.ms/vscode-scm).",
|
||||
@@ -112,7 +112,7 @@ index 8e2d58e..01218da 100644
|
||||
- "Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for VS Code",
|
||||
+ "Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for !!APP_NAME!!",
|
||||
"Please make sure there is no space between the right bracket and left parenthesis: ]( this is an internal syntax for links"
|
||||
@@ -373,6 +373,6 @@
|
||||
@@ -374,6 +374,6 @@
|
||||
"view.workbench.scm.empty": {
|
||||
- "message": "In order to use Git features, you can open a folder containing a Git repository or clone from a URL.\n[Open Folder](command:vscode.openFolder)\n[Clone Repository](command:git.cloneRecursive)\nTo learn more about how to use Git and source control in VS Code [read our docs](https://aka.ms/vscode-scm).",
|
||||
+ "message": "In order to use Git features, you can open a folder containing a Git repository or clone from a URL.\n[Open Folder](command:vscode.openFolder)\n[Clone Repository](command:git.cloneRecursive)\nTo learn more about how to use Git and source control in !!APP_NAME!! [read our docs](https://aka.ms/vscode-scm).",
|
||||
@@ -121,7 +121,7 @@ index 8e2d58e..01218da 100644
|
||||
- "Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for VS Code",
|
||||
+ "Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for !!APP_NAME!!",
|
||||
"Please make sure there is no space between the right bracket and left parenthesis: ]( this is an internal syntax for links"
|
||||
@@ -381,6 +381,6 @@
|
||||
@@ -382,6 +382,6 @@
|
||||
"view.workbench.scm.folder": {
|
||||
- "message": "The folder currently open doesn't have a Git repository. You can initialize a repository which will enable source control features powered by Git.\n[Initialize Repository](command:git.init?%5Btrue%5D)\nTo learn more about how to use Git and source control in VS Code [read our docs](https://aka.ms/vscode-scm).",
|
||||
+ "message": "The folder currently open doesn't have a Git repository. You can initialize a repository which will enable source control features powered by Git.\n[Initialize Repository](command:git.init?%5Btrue%5D)\nTo learn more about how to use Git and source control in !!APP_NAME!! [read our docs](https://aka.ms/vscode-scm).",
|
||||
@@ -130,7 +130,7 @@ index 8e2d58e..01218da 100644
|
||||
- "Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for VS Code",
|
||||
+ "Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for !!APP_NAME!!",
|
||||
"Please make sure there is no space between the right bracket and left parenthesis: ]( this is an internal syntax for links"
|
||||
@@ -389,6 +389,6 @@
|
||||
@@ -390,6 +390,6 @@
|
||||
"view.workbench.scm.workspace": {
|
||||
- "message": "The workspace currently open doesn't have any folders containing Git repositories. You can initialize a repository on a folder which will enable source control features powered by Git.\n[Initialize Repository](command:git.init)\nTo learn more about how to use Git and source control in VS Code [read our docs](https://aka.ms/vscode-scm).",
|
||||
+ "message": "The workspace currently open doesn't have any folders containing Git repositories. You can initialize a repository on a folder which will enable source control features powered by Git.\n[Initialize Repository](command:git.init)\nTo learn more about how to use Git and source control in !!APP_NAME!! [read our docs](https://aka.ms/vscode-scm).",
|
||||
@@ -139,7 +139,7 @@ index 8e2d58e..01218da 100644
|
||||
- "Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for VS Code",
|
||||
+ "Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for !!APP_NAME!!",
|
||||
"Please make sure there is no space between the right bracket and left parenthesis: ]( this is an internal syntax for links"
|
||||
@@ -397,6 +397,6 @@
|
||||
@@ -398,6 +398,6 @@
|
||||
"view.workbench.scm.emptyWorkspace": {
|
||||
- "message": "The workspace currently open doesn't have any folders containing Git repositories.\n[Add Folder to Workspace](command:workbench.action.addRootFolder)\nTo learn more about how to use Git and source control in VS Code [read our docs](https://aka.ms/vscode-scm).",
|
||||
+ "message": "The workspace currently open doesn't have any folders containing Git repositories.\n[Add Folder to Workspace](command:workbench.action.addRootFolder)\nTo learn more about how to use Git and source control in !!APP_NAME!! [read our docs](https://aka.ms/vscode-scm).",
|
||||
@@ -148,27 +148,27 @@ index 8e2d58e..01218da 100644
|
||||
- "Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for VS Code",
|
||||
+ "Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for !!APP_NAME!!",
|
||||
"Please make sure there is no space between the right bracket and left parenthesis: ]( this is an internal syntax for links"
|
||||
@@ -415,3 +415,3 @@
|
||||
@@ -416,3 +416,3 @@
|
||||
"{Locked='](command:workbench.action.openSettings?%5B%22git.openRepositoryInParentFolders%22%5D'}",
|
||||
- "Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for VS Code",
|
||||
+ "Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for !!APP_NAME!!",
|
||||
"Please make sure there is no space between the right bracket and left parenthesis: ]( this is an internal syntax for links"
|
||||
@@ -424,3 +424,3 @@
|
||||
@@ -425,3 +425,3 @@
|
||||
"{Locked='](command:workbench.action.openSettings?%5B%22git.openRepositoryInParentFolders%22%5D'}",
|
||||
- "Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for VS Code",
|
||||
+ "Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for !!APP_NAME!!",
|
||||
"Please make sure there is no space between the right bracket and left parenthesis: ]( this is an internal syntax for links"
|
||||
@@ -432,3 +432,3 @@
|
||||
@@ -433,3 +433,3 @@
|
||||
"{Locked='](command:git.manageUnsafeRepositories'}",
|
||||
- "Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for VS Code",
|
||||
+ "Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for !!APP_NAME!!",
|
||||
"Please make sure there is no space between the right bracket and left parenthesis: ]( this is an internal syntax for links"
|
||||
@@ -440,3 +440,3 @@
|
||||
@@ -441,3 +441,3 @@
|
||||
"{Locked='](command:git.manageUnsafeRepositories'}",
|
||||
- "Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for VS Code",
|
||||
+ "Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for !!APP_NAME!!",
|
||||
"Please make sure there is no space between the right bracket and left parenthesis: ]( this is an internal syntax for links"
|
||||
@@ -445,6 +445,6 @@
|
||||
@@ -446,6 +446,6 @@
|
||||
"view.workbench.scm.closedRepository": {
|
||||
- "message": "A Git repository was found that was previously closed.\n[Reopen Closed Repository](command:git.reopenClosedRepositories)\nTo learn more about how to use Git and source control in VS Code [read our docs](https://aka.ms/vscode-scm).",
|
||||
+ "message": "A Git repository was found that was previously closed.\n[Reopen Closed Repository](command:git.reopenClosedRepositories)\nTo learn more about how to use Git and source control in !!APP_NAME!! [read our docs](https://aka.ms/vscode-scm).",
|
||||
@@ -177,7 +177,7 @@ index 8e2d58e..01218da 100644
|
||||
- "Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for VS Code",
|
||||
+ "Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for !!APP_NAME!!",
|
||||
"Please make sure there is no space between the right bracket and left parenthesis: ]( this is an internal syntax for links"
|
||||
@@ -453,6 +453,6 @@
|
||||
@@ -454,6 +454,6 @@
|
||||
"view.workbench.scm.closedRepositories": {
|
||||
- "message": "Git repositories were found that were previously closed.\n[Reopen Closed Repositories](command:git.reopenClosedRepositories)\nTo learn more about how to use Git and source control in VS Code [read our docs](https://aka.ms/vscode-scm).",
|
||||
+ "message": "Git repositories were found that were previously closed.\n[Reopen Closed Repositories](command:git.reopenClosedRepositories)\nTo learn more about how to use Git and source control in !!APP_NAME!! [read our docs](https://aka.ms/vscode-scm).",
|
||||
@@ -186,12 +186,12 @@ index 8e2d58e..01218da 100644
|
||||
- "Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for VS Code",
|
||||
+ "Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for !!APP_NAME!!",
|
||||
"Please make sure there is no space between the right bracket and left parenthesis: ]( this is an internal syntax for links"
|
||||
@@ -464,3 +464,3 @@
|
||||
@@ -465,3 +465,3 @@
|
||||
"{Locked='](command:git.clone'}",
|
||||
- "Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for VS Code",
|
||||
+ "Do not translate the 'command:*' part inside of the '(..)'. It is an internal command syntax for !!APP_NAME!!",
|
||||
"Please make sure there is no space between the right bracket and left parenthesis: ]( this is an internal syntax for links"
|
||||
@@ -468,3 +468,3 @@
|
||||
@@ -469,3 +469,3 @@
|
||||
},
|
||||
- "view.workbench.learnMore": "To learn more about how to use Git and source control in VS Code [read our docs](https://aka.ms/vscode-scm)."
|
||||
+ "view.workbench.learnMore": "To learn more about how to use Git and source control in !!APP_NAME!! [read our docs](https://aka.ms/vscode-scm)."
|
||||
@@ -275,7 +275,7 @@ index e82030e..ac999f6 100644
|
||||
+ "displayName": "Jake support for !!APP_NAME!!",
|
||||
"jake.taskDefinition.type.description": "The Jake task to customize.",
|
||||
diff --git a/extensions/json-language-features/package.nls.json b/extensions/json-language-features/package.nls.json
|
||||
index af6c9d8..36e64cf 100644
|
||||
index abc07c9..2a6de09 100644
|
||||
--- a/extensions/json-language-features/package.nls.json
|
||||
+++ b/extensions/json-language-features/package.nls.json
|
||||
@@ -11,3 +11,3 @@
|
||||
@@ -433,26 +433,26 @@ index 9905fd5..62c2e3c 100644
|
||||
+ vscode.l10n.t("Please open a folder in !!APP_NAME!! to use a TypeScript or JavaScript project"));
|
||||
return;
|
||||
diff --git a/extensions/typescript-language-features/src/typescriptServiceClient.ts b/extensions/typescript-language-features/src/typescriptServiceClient.ts
|
||||
index 4201d6d..ded6803 100644
|
||||
index 57395ce..c2b706a 100644
|
||||
--- a/extensions/typescript-language-features/src/typescriptServiceClient.ts
|
||||
+++ b/extensions/typescript-language-features/src/typescriptServiceClient.ts
|
||||
@@ -653,3 +653,3 @@ export default class TypeScriptServiceClient extends Disposable implements IType
|
||||
@@ -656,3 +656,3 @@ export default class TypeScriptServiceClient extends Disposable implements IType
|
||||
prompt = vscode.window.showErrorMessage<vscode.MessageItem>(
|
||||
- vscode.l10n.t("The JS/TS language service immediately crashed 5 times. The service will not be restarted.\nThis may be caused by a plugin contributed by one of these extensions: {0}.\nPlease try disabling these extensions before filing an issue against VS Code.", pluginExtensionList));
|
||||
+ vscode.l10n.t("The JS/TS language service immediately crashed 5 times. The service will not be restarted.\nThis may be caused by a plugin contributed by one of these extensions: {0}.\nPlease try disabling these extensions before filing an issue against !!APP_NAME!!.", pluginExtensionList));
|
||||
} else {
|
||||
@@ -674,3 +674,3 @@ export default class TypeScriptServiceClient extends Disposable implements IType
|
||||
@@ -677,3 +677,3 @@ export default class TypeScriptServiceClient extends Disposable implements IType
|
||||
prompt = vscode.window.showWarningMessage<vscode.MessageItem>(
|
||||
- vscode.l10n.t("The JS/TS language service crashed 5 times in the last 5 Minutes.\nThis may be caused by a plugin contributed by one of these extensions: {0}\nPlease try disabling these extensions before filing an issue against VS Code.", pluginExtensionList));
|
||||
+ vscode.l10n.t("The JS/TS language service crashed 5 times in the last 5 Minutes.\nThis may be caused by a plugin contributed by one of these extensions: {0}\nPlease try disabling these extensions before filing an issue against !!APP_NAME!!.", pluginExtensionList));
|
||||
} else {
|
||||
@@ -688,3 +688,3 @@ export default class TypeScriptServiceClient extends Disposable implements IType
|
||||
@@ -691,3 +691,3 @@ export default class TypeScriptServiceClient extends Disposable implements IType
|
||||
prompt = vscode.window.showWarningMessage<vscode.MessageItem>(
|
||||
- vscode.l10n.t("The JS/TS language service crashed.\nThis may be caused by a plugin contributed by one of these extensions: {0}.\nPlease try disabling these extensions before filing an issue against VS Code.", pluginExtensionList));
|
||||
+ vscode.l10n.t("The JS/TS language service crashed.\nThis may be caused by a plugin contributed by one of these extensions: {0}.\nPlease try disabling these extensions before filing an issue against !!APP_NAME!!.", pluginExtensionList));
|
||||
} else {
|
||||
diff --git a/extensions/vscode-api-tests/package.json b/extensions/vscode-api-tests/package.json
|
||||
index 28005be..306c04a 100644
|
||||
index 250ec7a..74bdbdf 100644
|
||||
--- a/extensions/vscode-api-tests/package.json
|
||||
+++ b/extensions/vscode-api-tests/package.json
|
||||
@@ -2,3 +2,3 @@
|
||||
@@ -603,7 +603,7 @@ index 0b2e320..a6a37d1 100644
|
||||
+ throw new Error(nls.localize('restartCode', "Please restart !!APP_NAME!! before reinstalling {0}.", this.manifest.displayName || this.manifest.name));
|
||||
}
|
||||
diff --git a/src/vs/platform/extensions/common/extensionValidator.ts b/src/vs/platform/extensions/common/extensionValidator.ts
|
||||
index 87a9288..dcbbf0a 100644
|
||||
index 0683f68..7e27873 100644
|
||||
--- a/src/vs/platform/extensions/common/extensionValidator.ts
|
||||
+++ b/src/vs/platform/extensions/common/extensionValidator.ts
|
||||
@@ -374,5 +374,5 @@ export function areApiProposalsCompatible(apiProposals: string[], arg1?: any): b
|
||||
@@ -624,7 +624,7 @@ index ca6c82b..56fab2c 100644
|
||||
+const TERMINAL_TITLE = nls.localize('console.title', "!!APP_NAME!! Console");
|
||||
|
||||
diff --git a/src/vs/platform/terminal/common/terminalPlatformConfiguration.ts b/src/vs/platform/terminal/common/terminalPlatformConfiguration.ts
|
||||
index 7d8d78b..d39dad4 100644
|
||||
index bbd4bee..ba81c21 100644
|
||||
--- a/src/vs/platform/terminal/common/terminalPlatformConfiguration.ts
|
||||
+++ b/src/vs/platform/terminal/common/terminalPlatformConfiguration.ts
|
||||
@@ -338,3 +338,3 @@ const terminalPlatformConfiguration: IConfigurationNode = {
|
||||
@@ -671,16 +671,16 @@ index 0535ddd..2478997 100644
|
||||
+ console.error('Unable to connect to !!APP_NAME!! server: ' + message);
|
||||
console.error(err);
|
||||
diff --git a/src/vs/workbench/api/browser/mainThreadAuthentication.ts b/src/vs/workbench/api/browser/mainThreadAuthentication.ts
|
||||
index 902230b..8fa914c 100644
|
||||
index f15906e..1d63292 100644
|
||||
--- a/src/vs/workbench/api/browser/mainThreadAuthentication.ts
|
||||
+++ b/src/vs/workbench/api/browser/mainThreadAuthentication.ts
|
||||
@@ -490,3 +490,3 @@ export class MainThreadAuthentication extends Disposable implements MainThreadAu
|
||||
@@ -498,3 +498,3 @@ export class MainThreadAuthentication extends Disposable implements MainThreadAu
|
||||
owner: 'TylerLeonhardt';
|
||||
- comment: 'Used to see which extensions are using the VSCode client id override';
|
||||
+ comment: 'Used to see which extensions are using the !!APP_NAME!! client id override';
|
||||
extensionId: { classification: 'SystemMetaData'; purpose: 'FeatureInsight'; comment: 'The extension id.' };
|
||||
diff --git a/src/vs/workbench/api/browser/viewsExtensionPoint.ts b/src/vs/workbench/api/browser/viewsExtensionPoint.ts
|
||||
index 7695758..735d45f 100644
|
||||
index 0674b8f..7bf3dd4 100644
|
||||
--- a/src/vs/workbench/api/browser/viewsExtensionPoint.ts
|
||||
+++ b/src/vs/workbench/api/browser/viewsExtensionPoint.ts
|
||||
@@ -43,3 +43,3 @@ const viewsContainerSchema: IJSONSchema = {
|
||||
@@ -736,7 +736,7 @@ index 0ebe271..20974b2 100644
|
||||
+ throw new Error('Unable to create the !!APP_NAME!! workbench more than once.');
|
||||
} else {
|
||||
diff --git a/src/vs/workbench/browser/workbench.contribution.ts b/src/vs/workbench/browser/workbench.contribution.ts
|
||||
index 06911cb..9498377 100644
|
||||
index d09ab3f..24e5f8d 100644
|
||||
--- a/src/vs/workbench/browser/workbench.contribution.ts
|
||||
+++ b/src/vs/workbench/browser/workbench.contribution.ts
|
||||
@@ -712,3 +712,3 @@ const registry = Registry.as<IConfigurationRegistry>(ConfigurationExtensions.Con
|
||||
@@ -745,15 +745,15 @@ index 06911cb..9498377 100644
|
||||
+ localize('appName', "`${appName}`: e.g. !!APP_NAME!!."),
|
||||
localize('remoteName', "`${remoteName}`: e.g. SSH"),
|
||||
diff --git a/src/vs/workbench/contrib/chat/browser/chatSetup.ts b/src/vs/workbench/contrib/chat/browser/chatSetup.ts
|
||||
index a19380c..1b08415 100644
|
||||
index 4325d48..d4fd731 100644
|
||||
--- a/src/vs/workbench/contrib/chat/browser/chatSetup.ts
|
||||
+++ b/src/vs/workbench/contrib/chat/browser/chatSetup.ts
|
||||
@@ -147,3 +147,3 @@ class SetupAgent extends Disposable implements IChatAgentImplementation {
|
||||
@@ -154,3 +154,3 @@ class SetupAgent extends Disposable implements IChatAgentImplementation {
|
||||
// Register VSCode agent
|
||||
- const { disposable: vscodeDisposable } = SetupAgent.doRegisterAgent(instantiationService, chatAgentService, 'setup.vscode', 'vscode', false, localize2('vscodeAgentDescription', "Ask questions about VS Code").value, ChatAgentLocation.Panel, undefined, context, controller);
|
||||
+ const { disposable: vscodeDisposable } = SetupAgent.doRegisterAgent(instantiationService, chatAgentService, 'setup.vscode', 'vscode', false, localize2('vscodeAgentDescription', "Ask questions about !!APP_NAME!!").value, ChatAgentLocation.Panel, undefined, context, controller);
|
||||
- const { disposable: vscodeDisposable } = SetupAgent.doRegisterAgent(instantiationService, chatAgentService, 'setup.vscode', 'vscode', false, localize2('vscodeAgentDescription', "Ask questions about VS Code").value, ChatAgentLocation.Chat, undefined, context, controller);
|
||||
+ const { disposable: vscodeDisposable } = SetupAgent.doRegisterAgent(instantiationService, chatAgentService, 'setup.vscode', 'vscode', false, localize2('vscodeAgentDescription', "Ask questions about !!APP_NAME!!").value, ChatAgentLocation.Chat, undefined, context, controller);
|
||||
disposables.add(vscodeDisposable);
|
||||
@@ -164,4 +164,4 @@ class SetupAgent extends Disposable implements IChatAgentImplementation {
|
||||
@@ -171,4 +171,4 @@ class SetupAgent extends Disposable implements IChatAgentImplementation {
|
||||
displayName: localize('setupToolDisplayName', "New Workspace"),
|
||||
- modelDescription: localize('setupToolsDescription', "Scaffold a new workspace in VS Code"),
|
||||
- userDescription: localize('setupToolsDescription', "Scaffold a new workspace in VS Code"),
|
||||
@@ -801,7 +801,7 @@ index 1bc0b4b..89330c0 100644
|
||||
+ : localize('InstallVSIXAction.successReload', "Completed installing extension. Please reload VSCodium to enable it."),
|
||||
[{
|
||||
diff --git a/src/vs/workbench/contrib/extensions/browser/extensionsActions.ts b/src/vs/workbench/contrib/extensions/browser/extensionsActions.ts
|
||||
index 27b428a..ab75e58 100644
|
||||
index a84f2db..9df8237 100644
|
||||
--- a/src/vs/workbench/contrib/extensions/browser/extensionsActions.ts
|
||||
+++ b/src/vs/workbench/contrib/extensions/browser/extensionsActions.ts
|
||||
@@ -109,3 +109,3 @@ export class PromptExtensionInstallFailureAction extends Action {
|
||||
@@ -820,7 +820,7 @@ index 27b428a..ab75e58 100644
|
||||
+ alert(localize('uninstallExtensionComplete', "Please reload !!APP_NAME!! to complete the uninstallation of the extension {0}.", this.extension.displayName));
|
||||
} catch (error) {
|
||||
@@ -2599,3 +2599,3 @@ export class ExtensionStatusAction extends ExtensionAction {
|
||||
const link = `[${localize('settings', "settings")}](${URI.parse(`command:workbench.action.openSettings?${encodeURIComponent(JSON.stringify([this.extension.deprecationInfo.settings.map(setting => `@id:${setting}`).join(' ')]))}`)})`;
|
||||
const link = `[${localize('settings', "settings")}](${createCommandUri('workbench.action.openSettings', this.extension.deprecationInfo.settings.map(setting => `@id:${setting}`).join(' '))}})`;
|
||||
- this.updateStatus({ icon: warningIcon, message: new MarkdownString(localize('deprecated with alternate settings tooltip', "This extension is deprecated as this functionality is now built-in to VS Code. Configure these {0} to use this functionality.", link)) }, true);
|
||||
+ this.updateStatus({ icon: warningIcon, message: new MarkdownString(localize('deprecated with alternate settings tooltip', "This extension is deprecated as this functionality is now built-in to !!APP_NAME!!. Configure these {0} to use this functionality.", link)) }, true);
|
||||
} else {
|
||||
@@ -862,7 +862,7 @@ index f54ddfe..946de6b 100644
|
||||
+ enumDescriptions: [nls.localize('externalUriOpeners.defaultId', "Open using !!APP_NAME!!'s standard opener.")],
|
||||
},
|
||||
diff --git a/src/vs/workbench/contrib/localization/common/localization.contribution.ts b/src/vs/workbench/contrib/localization/common/localization.contribution.ts
|
||||
index b89d74b..2a06ffb 100644
|
||||
index bd73995..61b7d12 100644
|
||||
--- a/src/vs/workbench/contrib/localization/common/localization.contribution.ts
|
||||
+++ b/src/vs/workbench/contrib/localization/common/localization.contribution.ts
|
||||
@@ -58,5 +58,5 @@ export class BaseLocalizationWorkbenchContribution extends Disposable implements
|
||||
@@ -894,10 +894,10 @@ index b533feb..112d695 100644
|
||||
+ `// ${nls.localize('doc', 'Open !!APP_NAME!! and run "Developer: Inspect Key Mappings (JSON)" from Command Palette.')}`,
|
||||
``,
|
||||
diff --git a/src/vs/workbench/contrib/tasks/browser/abstractTaskService.ts b/src/vs/workbench/contrib/tasks/browser/abstractTaskService.ts
|
||||
index 631d969..22432b6 100644
|
||||
index 916f7a3..973580f 100644
|
||||
--- a/src/vs/workbench/contrib/tasks/browser/abstractTaskService.ts
|
||||
+++ b/src/vs/workbench/contrib/tasks/browser/abstractTaskService.ts
|
||||
@@ -3341,3 +3341,3 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
|
||||
@@ -3447,3 +3447,3 @@ export abstract class AbstractTaskService extends Disposable implements ITaskSer
|
||||
if (response.code && response.code === TerminateResponseCode.ProcessNotFound) {
|
||||
- this._notificationService.error(nls.localize('TerminateAction.noProcess', 'The launched process doesn\'t exist anymore. If the task spawned background tasks exiting VS Code might result in orphaned processes.'));
|
||||
+ this._notificationService.error(nls.localize('TerminateAction.noProcess', 'The launched process doesn\'t exist anymore. If the task spawned background tasks exiting !!APP_NAME!! might result in orphaned processes.'));
|
||||
@@ -917,10 +917,10 @@ index 9db6b8a..cecac9f 100644
|
||||
+ description: nls.localize('JsonSchema.promptOnClose', 'Whether the user is prompted when !!APP_NAME!! closes with a running background task.'),
|
||||
default: false
|
||||
diff --git a/src/vs/workbench/contrib/tasks/common/jsonSchema_v2.ts b/src/vs/workbench/contrib/tasks/common/jsonSchema_v2.ts
|
||||
index e698eb9..b2a6e63 100644
|
||||
index d917ab2..bb39d83 100644
|
||||
--- a/src/vs/workbench/contrib/tasks/common/jsonSchema_v2.ts
|
||||
+++ b/src/vs/workbench/contrib/tasks/common/jsonSchema_v2.ts
|
||||
@@ -424,3 +424,3 @@ const taskConfiguration: IJSONSchema = {
|
||||
@@ -429,3 +429,3 @@ const taskConfiguration: IJSONSchema = {
|
||||
type: 'boolean',
|
||||
- description: nls.localize('JsonSchema.tasks.promptOnClose', 'Whether the user is prompted when VS Code closes with a running task.'),
|
||||
+ description: nls.localize('JsonSchema.tasks.promptOnClose', 'Whether the user is prompted when !!APP_NAME!! closes with a running task.'),
|
||||
@@ -935,7 +935,7 @@ index 50bfba8..a2a82bc 100644
|
||||
+ this._notificationService.prompt(Severity.Warning, nls.localize('terminal.monospaceOnly', "The terminal only supports monospace fonts. Be sure to restart !!APP_NAME!! if this is a newly installed font."), choices);
|
||||
}
|
||||
diff --git a/src/vs/workbench/contrib/terminal/common/terminalConfiguration.ts b/src/vs/workbench/contrib/terminal/common/terminalConfiguration.ts
|
||||
index aa2355b..ce4ca9e 100644
|
||||
index d92d577..eb868c2 100644
|
||||
--- a/src/vs/workbench/contrib/terminal/common/terminalConfiguration.ts
|
||||
+++ b/src/vs/workbench/contrib/terminal/common/terminalConfiguration.ts
|
||||
@@ -310,3 +310,3 @@ const terminalConfiguration: IStringDictionary<IConfigurationPropertySchema> = {
|
||||
@@ -1023,7 +1023,7 @@ index 393c8c3..9268a6c 100644
|
||||
+ content += `// By default, !!APP_NAME!! trusts "localhost".\n`;
|
||||
}
|
||||
diff --git a/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.ts b/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.ts
|
||||
index 57b91bd..89c2b68 100644
|
||||
index 7df25f0..ef9c492 100644
|
||||
--- a/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.ts
|
||||
+++ b/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.contribution.ts
|
||||
@@ -49,3 +49,3 @@ registerAction2(class extends Action2 {
|
||||
@@ -1031,13 +1031,13 @@ index 57b91bd..89c2b68 100644
|
||||
- description: localize2('minWelcomeDescription', 'Opens a Walkthrough to help you get started in VS Code.')
|
||||
+ description: localize2('minWelcomeDescription', 'Opens a Walkthrough to help you get started in !!APP_NAME!!.')
|
||||
}
|
||||
@@ -311,3 +311,3 @@ configurationRegistry.registerConfiguration({
|
||||
@@ -316,3 +316,3 @@ configurationRegistry.registerConfiguration({
|
||||
localize({ comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'workbench.startupEditor.none' }, "Start without an editor."),
|
||||
- localize({ comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'workbench.startupEditor.welcomePage' }, "Open the Welcome page, with content to aid in getting started with VS Code and extensions."),
|
||||
+ localize({ comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'workbench.startupEditor.welcomePage' }, "Open the Welcome page, with content to aid in getting started with !!APP_NAME!! and extensions."),
|
||||
localize({ comment: ['This is the description for a setting. Values surrounded by single quotes are not to be translated.'], key: 'workbench.startupEditor.readme' }, "Open the README when opening a folder that contains one, fallback to 'welcomePage' otherwise. Note: This is only observed as a global configuration, it will be ignored if set in a workspace or folder configuration."),
|
||||
diff --git a/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint.ts b/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint.ts
|
||||
index 3f1c098..26bf670 100644
|
||||
index 297598e..1fc5b45 100644
|
||||
--- a/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint.ts
|
||||
+++ b/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExtensionPoint.ts
|
||||
@@ -161,3 +161,3 @@ export const walkthroughsExtensionPoint = ExtensionsRegistry.registerExtensionPo
|
||||
@@ -1046,10 +1046,10 @@ index 3f1c098..26bf670 100644
|
||||
+ description: localize('walkthroughs.steps.completionEvents.onCommand', 'Check off step when a given command is executed anywhere in !!APP_NAME!!.'),
|
||||
body: 'onCommand:${1:commandId}'
|
||||
diff --git a/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.ts b/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.ts
|
||||
index 3826aa8..b2803d8 100644
|
||||
index 2c462d5..5637419 100644
|
||||
--- a/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.ts
|
||||
+++ b/src/vs/workbench/contrib/welcomeGettingStarted/common/gettingStartedContent.ts
|
||||
@@ -209,13 +209,2 @@ export const startEntries: GettingStartedStartEntryContent = [
|
||||
@@ -211,13 +211,2 @@ export const startEntries: GettingStartedStartEntryContent = [
|
||||
},
|
||||
- {
|
||||
- id: 'topLevelNewWorkspaceChat',
|
||||
@@ -1063,17 +1063,19 @@ index 3826aa8..b2803d8 100644
|
||||
- }
|
||||
- },
|
||||
];
|
||||
@@ -224,24 +213,2 @@ const Button = (title: string, href: string) => `[${title}](${href})`;
|
||||
@@ -226,26 +215,2 @@ const Button = (title: string, href: string) => `[${title}](${href})`;
|
||||
|
||||
-const CopilotStepTitle = localize('gettingStarted.copilotSetup.title', "Use AI features with Copilot for free");
|
||||
-const CopilotDescription = localize({ key: 'gettingStarted.copilotSetup.description', comment: ['{Locked="["}', '{Locked="]({0})"}'] }, "You can use [Copilot]({0}) to generate code across multiple files, fix errors, ask questions about your code and much more using natural language.", defaultChat.documentationUrl ?? '');
|
||||
-const CopilotSignedOutButton = Button(localize('setupCopilotButton.signIn', "Set up Copilot"), `command:workbench.action.chat.triggerSetup`);
|
||||
-const CopilotDescription = localize({ key: 'gettingStarted.copilotSetup.description', comment: ['{Locked="["}', '{Locked="]({0})"}'] }, "You can use [Copilot]({0}) to generate code across multiple files, fix errors, ask questions about your code, and much more using natural language.", defaultChat.documentationUrl ?? '');
|
||||
-const CopilotTermsString = localize({ key: 'gettingStarted.copilotSetup.terms', comment: ['{Locked="]({2})"}', '{Locked="]({3})"}'] }, "By continuing with {0} Copilot, you agree to {1}'s [Terms]({2}) and [Privacy Statement]({3})", defaultChat.provider.default.name, defaultChat.provider.default.name, defaultChat.termsStatementUrl, defaultChat.privacyStatementUrl);
|
||||
-const CopilotAnonymousButton = Button(localize('setupCopilotButton.setup', "Set up Copilot"), `command:workbench.action.chat.triggerSetupAnonymousWithoutDialog`);
|
||||
-const CopilotSignedOutButton = Button(localize('setupCopilotButton.setup', "Set up Copilot"), `command:workbench.action.chat.triggerSetup`);
|
||||
-const CopilotSignedInButton = Button(localize('setupCopilotButton.setup', "Set up Copilot"), `command:workbench.action.chat.triggerSetup`);
|
||||
-const CopilotCompleteButton = Button(localize('setupCopilotButton.chatWithCopilot', "Chat with Copilot"), 'command:workbench.action.chat.open');
|
||||
-
|
||||
-function createCopilotSetupStep(id: string, button: string, when: string, includeTerms: boolean): BuiltinGettingStartedStep {
|
||||
- const description = includeTerms ?
|
||||
- `${CopilotDescription}\n\n${button}` :
|
||||
- `${CopilotDescription}\n${CopilotTermsString}\n${button}` :
|
||||
- `${CopilotDescription}\n${button}`;
|
||||
-
|
||||
- return {
|
||||
@@ -1088,40 +1090,19 @@ index 3826aa8..b2803d8 100644
|
||||
-}
|
||||
-
|
||||
export const walkthroughs: GettingStartedWalkthroughContent = [
|
||||
@@ -249,3 +216,3 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
|
||||
id: 'Setup',
|
||||
- title: localize('gettingStarted.setup.title', "Get started with VS Code"),
|
||||
+ title: localize('gettingStarted.setup.title', "Get started with !!APP_NAME!!"),
|
||||
description: localize('gettingStarted.setup.description', "Customize your editor, learn the basics, and start coding"),
|
||||
@@ -254,3 +221,3 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
|
||||
when: '!isWeb',
|
||||
- walkthroughPageTitle: localize('gettingStarted.setup.walkthroughPageTitle', 'Setup VS Code'),
|
||||
+ walkthroughPageTitle: localize('gettingStarted.setup.walkthroughPageTitle', 'Setup !!APP_NAME!!'),
|
||||
next: 'Beginner',
|
||||
@@ -259,5 +226,2 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
|
||||
@@ -263,6 +228,2 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
|
||||
steps: [
|
||||
- createCopilotSetupStep('CopilotSetupSignedOut', CopilotSignedOutButton, 'chatEntitlementSignedOut', true),
|
||||
- createCopilotSetupStep('CopilotSetupComplete', CopilotCompleteButton, 'chatSetupInstalled && !chatSetupDisabled && (chatPlanPro || chatPlanProPlus || chatPlanBusiness || chatPlanEnterprise || chatPlanFree)', false),
|
||||
- createCopilotSetupStep('CopilotSetupSignedIn', CopilotSignedInButton, '!chatEntitlementSignedOut && (!chatSetupInstalled || chatSetupDisabled || chatPlanCanSignUp)', true),
|
||||
- createCopilotSetupStep('CopilotSetupAnonymous', CopilotAnonymousButton, 'chatAnonymous && !chatSetupInstalled', true),
|
||||
- createCopilotSetupStep('CopilotSetupSignedOut', CopilotSignedOutButton, 'chatEntitlementSignedOut && !chatAnonymous', false),
|
||||
- createCopilotSetupStep('CopilotSetupComplete', CopilotCompleteButton, 'chatSetupInstalled && !chatSetupDisabled && (chatAnonymous || chatPlanPro || chatPlanProPlus || chatPlanBusiness || chatPlanEnterprise || chatPlanFree)', false),
|
||||
- createCopilotSetupStep('CopilotSetupSignedIn', CopilotSignedInButton, '!chatEntitlementSignedOut && (!chatSetupInstalled || chatSetupDisabled || chatPlanCanSignUp)', false),
|
||||
{
|
||||
@@ -275,4 +239,4 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
|
||||
title: localize('gettingStarted.videoTutorial.title', "Watch video tutorials"),
|
||||
- description: localize('gettingStarted.videoTutorial.description.interpolated', "Watch the first in a series of short & practical video tutorials for VS Code's key features.\n{0}", Button(localize('watch', "Watch Tutorial"), 'https://aka.ms/vscode-getting-started-video')),
|
||||
- media: { type: 'svg', altText: 'VS Code Settings', path: 'learn.svg' },
|
||||
+ description: localize('gettingStarted.videoTutorial.description.interpolated', "Watch the first in a series of short & practical video tutorials for !!APP_NAME!!'s key features.\n{0}", Button(localize('watch', "Watch Tutorial"), 'https://aka.ms/vscode-getting-started-video')),
|
||||
+ media: { type: 'svg', altText: '!!APP_NAME!! Settings', path: 'learn.svg' },
|
||||
}
|
||||
@@ -284,3 +248,3 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
|
||||
id: 'SetupWeb',
|
||||
- title: localize('gettingStarted.setupWeb.title', "Get Started with VS Code for the Web"),
|
||||
+ title: localize('gettingStarted.setupWeb.title', "Get Started with !!APP_NAME!! for the Web"),
|
||||
description: localize('gettingStarted.setupWeb.description', "Customize your editor, learn the basics, and start coding"),
|
||||
@@ -290,3 +254,3 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
|
||||
@@ -295,3 +256,3 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
|
||||
next: 'Beginner',
|
||||
- walkthroughPageTitle: localize('gettingStarted.setupWeb.walkthroughPageTitle', 'Setup VS Code Web'),
|
||||
+ walkthroughPageTitle: localize('gettingStarted.setupWeb.walkthroughPageTitle', 'Setup !!APP_NAME!! Web'),
|
||||
content: {
|
||||
@@ -316,6 +280,6 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
|
||||
@@ -321,6 +282,6 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
|
||||
title: localize('gettingStarted.extensions.title', "Code with extensions"),
|
||||
- description: localize('gettingStarted.extensionsWeb.description.interpolated', "Extensions are VS Code's power-ups. A growing number are becoming available in the web.\n{0}", Button(localize('browsePopularWeb', "Browse Popular Web Extensions"), 'command:workbench.extensions.action.showPopularExtensions')),
|
||||
+ description: localize('gettingStarted.extensionsWeb.description.interpolated', "Extensions are !!APP_NAME!!'s power-ups. A growing number are becoming available in the web.\n{0}", Button(localize('browsePopularWeb', "Browse Popular Web Extensions"), 'command:workbench.extensions.action.showPopularExtensions')),
|
||||
@@ -1130,7 +1111,7 @@ index 3826aa8..b2803d8 100644
|
||||
- type: 'svg', altText: 'VS Code extension marketplace with featured language extensions', path: 'extensions-web.svg'
|
||||
+ type: 'svg', altText: '!!APP_NAME!! extension marketplace with featured language extensions', path: 'extensions-web.svg'
|
||||
},
|
||||
@@ -331,12 +295,2 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
|
||||
@@ -336,12 +297,2 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
|
||||
},
|
||||
- {
|
||||
- id: 'settingsSyncWeb',
|
||||
@@ -1143,37 +1124,37 @@ index 3826aa8..b2803d8 100644
|
||||
- },
|
||||
- },
|
||||
{
|
||||
@@ -344,3 +298,3 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
|
||||
@@ -349,3 +300,3 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
|
||||
title: localize('gettingStarted.commandPalette.title', "Unlock productivity with the Command Palette "),
|
||||
- description: localize('gettingStarted.commandPalette.description.interpolated', "Run commands without reaching for your mouse to accomplish any task in VS Code.\n{0}", Button(localize('commandPalette', "Open Command Palette"), 'command:workbench.action.showCommands')),
|
||||
+ description: localize('gettingStarted.commandPalette.description.interpolated', "Run commands without reaching for your mouse to accomplish any task in !!APP_NAME!!.\n{0}", Button(localize('commandPalette', "Open Command Palette"), 'command:workbench.action.showCommands')),
|
||||
media: { type: 'svg', altText: 'Command Palette overlay for searching and executing commands.', path: 'commandPalette.svg' },
|
||||
@@ -350,3 +304,3 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
|
||||
@@ -355,3 +306,3 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
|
||||
title: localize('gettingStarted.setup.OpenFolder.title', "Open up your code"),
|
||||
- description: localize('gettingStarted.setup.OpenFolderWeb.description.interpolated', "You're all set to start coding. You can open a local project or a remote repository to get your files into VS Code.\n{0}\n{1}", Button(localize('openFolder', "Open Folder"), 'command:workbench.action.addRootFolder'), Button(localize('openRepository', "Open Repository"), 'command:remoteHub.openRepository')),
|
||||
+ description: localize('gettingStarted.setup.OpenFolderWeb.description.interpolated', "You're all set to start coding. You can open a local project or a remote repository to get your files into !!APP_NAME!!.\n{0}\n{1}", Button(localize('openFolder', "Open Folder"), 'command:workbench.action.addRootFolder'), Button(localize('openRepository', "Open Repository"), 'command:remoteHub.openRepository')),
|
||||
when: 'workspaceFolderCount == 0',
|
||||
@@ -371,3 +325,3 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
|
||||
@@ -376,3 +327,3 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
|
||||
title: localize('gettingStarted.setupAccessibility.title', "Get Started with Accessibility Features"),
|
||||
- description: localize('gettingStarted.setupAccessibility.description', "Learn the tools and shortcuts that make VS Code accessible. Note that some actions are not actionable from within the context of the walkthrough."),
|
||||
+ description: localize('gettingStarted.setupAccessibility.description', "Learn the tools and shortcuts that make !!APP_NAME!! accessible. Note that some actions are not actionable from within the context of the walkthrough."),
|
||||
isFeatured: true,
|
||||
@@ -376,3 +330,3 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
|
||||
@@ -381,3 +332,3 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
|
||||
next: 'Setup',
|
||||
- walkthroughPageTitle: localize('gettingStarted.setupAccessibility.walkthroughPageTitle', 'Setup VS Code Accessibility'),
|
||||
+ walkthroughPageTitle: localize('gettingStarted.setupAccessibility.walkthroughPageTitle', 'Setup !!APP_NAME!! Accessibility'),
|
||||
content: {
|
||||
@@ -407,3 +361,3 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
|
||||
@@ -412,3 +363,3 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
|
||||
title: localize('gettingStarted.commandPaletteAccessibility.title', "Unlock productivity with the Command Palette "),
|
||||
- description: localize('gettingStarted.commandPaletteAccessibility.description.interpolated', "Run commands without reaching for your mouse to accomplish any task in VS Code.\n{0}", Button(localize('commandPalette', "Open Command Palette"), 'command:workbench.action.showCommands')),
|
||||
+ description: localize('gettingStarted.commandPaletteAccessibility.description.interpolated', "Run commands without reaching for your mouse to accomplish any task in !!APP_NAME!!.\n{0}", Button(localize('commandPalette', "Open Command Palette"), 'command:workbench.action.showCommands')),
|
||||
media: { type: 'markdown', path: 'empty' },
|
||||
@@ -484,3 +438,3 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
|
||||
@@ -496,3 +447,3 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
|
||||
media: {
|
||||
- type: 'svg', altText: 'VS Code Settings', path: 'settings.svg'
|
||||
+ type: 'svg', altText: '!!APP_NAME!! Settings', path: 'settings.svg'
|
||||
},
|
||||
@@ -490,6 +444,6 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
|
||||
@@ -502,6 +453,6 @@ export const walkthroughs: GettingStartedWalkthroughContent = [
|
||||
title: localize('gettingStarted.extensions.title', "Code with extensions"),
|
||||
- description: localize('gettingStarted.extensions.description.interpolated', "Extensions are VS Code's power-ups. They range from handy productivity hacks, expanding out-of-the-box features, to adding completely new capabilities.\n{0}", Button(localize('browsePopular', "Browse Popular Extensions"), 'command:workbench.extensions.action.showPopularExtensions')),
|
||||
+ description: localize('gettingStarted.extensions.description.interpolated', "Extensions are !!APP_NAME!!'s power-ups. They range from handy productivity hacks, expanding out-of-the-box features, to adding completely new capabilities.\n{0}", Button(localize('browsePopular', "Browse Popular Extensions"), 'command:workbench.extensions.action.showPopularExtensions')),
|
||||
@@ -1221,7 +1202,7 @@ index c512b64..dfa2150 100644
|
||||
+ markdownDescription: localize('workspace.trust.emptyWindow.description', "Controls whether or not the empty window is trusted by default within !!APP_NAME!!. When used with `#{0}#`, you can enable the full functionality of !!APP_NAME!! without prompting in an empty window.", WORKSPACE_TRUST_UNTRUSTED_FILES),
|
||||
tags: [WORKSPACE_TRUST_SETTING_TAG],
|
||||
diff --git a/src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts b/src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts
|
||||
index e6805ca..f61cecc 100644
|
||||
index df1a6e3..14db691 100644
|
||||
--- a/src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts
|
||||
+++ b/src/vs/workbench/services/extensionManagement/common/extensionManagementService.ts
|
||||
@@ -1044,3 +1044,3 @@ export class ExtensionManagementService extends CommontExtensionManagementServic
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
diff --git a/src/vs/workbench/contrib/chat/browser/chat.contribution.ts b/src/vs/workbench/contrib/chat/browser/chat.contribution.ts
|
||||
index 549cfc6..9632509 100644
|
||||
--- a/src/vs/workbench/contrib/chat/browser/chat.contribution.ts
|
||||
+++ b/src/vs/workbench/contrib/chat/browser/chat.contribution.ts
|
||||
@@ -171,3 +171,3 @@ configurationRegistry.registerConfiguration({
|
||||
markdownDescription: nls.localize('chat.commandCenter.enabled', "Controls whether the command center shows a menu for actions to control chat (requires {0}).", '`#window.commandCenter#`'),
|
||||
- default: true
|
||||
+ default: false
|
||||
},
|
||||
@@ -1,13 +1,13 @@
|
||||
diff --git a/cli/src/commands/serve_web.rs b/cli/src/commands/serve_web.rs
|
||||
index 2ddefe1..ab9c658 100644
|
||||
index d3f7db8..988024b 100644
|
||||
--- a/cli/src/commands/serve_web.rs
|
||||
+++ b/cli/src/commands/serve_web.rs
|
||||
@@ -730,3 +730,3 @@ impl ConnectionManager {
|
||||
@@ -756,3 +756,3 @@ impl ConnectionManager {
|
||||
let dir_fut = cache.create(&args.release.commit, |target_dir| async move {
|
||||
- info!(log_for_fut, "Downloading server {}", release_for_fut.commit);
|
||||
+ info!(log_for_fut, "Downloading server {}/{}", release_for_fut.commit, release_for_fut.name);
|
||||
let tmpdir = tempfile::tempdir().unwrap();
|
||||
@@ -758,3 +758,3 @@ impl ConnectionManager {
|
||||
@@ -784,3 +784,3 @@ impl ConnectionManager {
|
||||
.join("bin")
|
||||
- .join(args.release.quality.server_entrypoint());
|
||||
+ .join(args.release.quality.server_entrypoint().unwrap());
|
||||
@@ -300,3 +300,12 @@ index 9033914..a39bbf7 100644
|
||||
- }
|
||||
-
|
||||
pub fn env_default() -> Option<Platform> {
|
||||
diff --git a/extensions/tunnel-forwarding/src/extension.ts b/extensions/tunnel-forwarding/src/extension.ts
|
||||
index 299c728..9fb635d 100644
|
||||
--- a/extensions/tunnel-forwarding/src/extension.ts
|
||||
+++ b/extensions/tunnel-forwarding/src/extension.ts
|
||||
@@ -28,3 +28,3 @@ const cliPath = process.env.VSCODE_FORWARDING_IS_DEV
|
||||
process.platform === 'darwin' ? 'bin' : '../../bin',
|
||||
- vscode.env.appQuality === 'stable' ? 'code-tunnel' : 'code-tunnel-insiders',
|
||||
+ '!!TUNNEL_APP_NAME!!'
|
||||
) + (process.platform === 'win32' ? '.exe' : '');
|
||||
|
||||
182
patches/disable-copilot.patch
Normal file
182
patches/disable-copilot.patch
Normal file
@@ -0,0 +1,182 @@
|
||||
diff --git a/src/vs/workbench/contrib/chat/browser/actions/chatActions.ts b/src/vs/workbench/contrib/chat/browser/actions/chatActions.ts
|
||||
index d5aa998..ea7d567 100644
|
||||
--- a/src/vs/workbench/contrib/chat/browser/actions/chatActions.ts
|
||||
+++ b/src/vs/workbench/contrib/chat/browser/actions/chatActions.ts
|
||||
@@ -183,3 +183,4 @@ abstract class OpenChatGlobalAction extends Action2 {
|
||||
ChatContextKeys.Setup.hidden.negate(),
|
||||
- ChatContextKeys.Setup.disabled.negate()
|
||||
+ ChatContextKeys.Setup.disabled.negate(),
|
||||
+ ContextKeyExpr.has('config.chat.disableAIFeatures').negate()
|
||||
)
|
||||
@@ -1458,3 +1459,3 @@ export function registerChatActions() {
|
||||
precondition: ContextKeyExpr.and(
|
||||
- ChatContextKeys.Setup.installed,
|
||||
+ ContextKeyExpr.has('config.chat.disableAIFeatures').negate(),
|
||||
ChatContextKeys.Setup.disabled.negate(),
|
||||
@@ -1668,3 +1669,4 @@ MenuRegistry.appendMenuItem(MenuId.CommandCenter, {
|
||||
ChatContextKeys.Setup.hidden.negate(),
|
||||
- ChatContextKeys.Setup.disabled.negate()
|
||||
+ ChatContextKeys.Setup.disabled.negate(),
|
||||
+ ContextKeyExpr.has('config.chat.disableAIFeatures').negate()
|
||||
),
|
||||
@@ -1685,3 +1687,4 @@ MenuRegistry.appendMenuItem(MenuId.TitleBar, {
|
||||
ChatContextKeys.Setup.hidden.negate(),
|
||||
- ChatContextKeys.Setup.disabled.negate()
|
||||
+ ChatContextKeys.Setup.disabled.negate(),
|
||||
+ ContextKeyExpr.has('config.chat.disableAIFeatures').negate()
|
||||
),
|
||||
@@ -1702,3 +1705,4 @@ registerAction2(class ToggleCopilotControl extends ToggleTitleBarConfigAction {
|
||||
ChatContextKeys.Setup.hidden.negate(),
|
||||
- ChatContextKeys.Setup.disabled.negate()
|
||||
+ ChatContextKeys.Setup.disabled.negate(),
|
||||
+ ContextKeyExpr.has('config.chat.disableAIFeatures').negate()
|
||||
),
|
||||
@@ -1843,3 +1847,4 @@ MenuRegistry.appendMenuItem(MenuId.EditorContext, {
|
||||
ChatContextKeys.Setup.hidden.negate(),
|
||||
- ChatContextKeys.Setup.disabled.negate()
|
||||
+ ChatContextKeys.Setup.disabled.negate(),
|
||||
+ ContextKeyExpr.has('config.chat.disableAIFeatures').negate()
|
||||
)
|
||||
@@ -1876,3 +1881,3 @@ MenuRegistry.appendMenuItem(MenuId.EditorContext, {
|
||||
ChatContextKeys.Setup.disabled.negate(),
|
||||
- ChatContextKeys.Setup.installed.negate(),
|
||||
+ ContextKeyExpr.has('config.chat.disableAIFeatures').negate(),
|
||||
);
|
||||
diff --git a/src/vs/workbench/contrib/chat/browser/chat.contribution.ts b/src/vs/workbench/contrib/chat/browser/chat.contribution.ts
|
||||
index dbd2125..2f36f7b 100644
|
||||
--- a/src/vs/workbench/contrib/chat/browser/chat.contribution.ts
|
||||
+++ b/src/vs/workbench/contrib/chat/browser/chat.contribution.ts
|
||||
@@ -174,3 +174,3 @@ configurationRegistry.registerConfiguration({
|
||||
markdownDescription: nls.localize('chat.commandCenter.enabled', "Controls whether the command center shows a menu for actions to control chat (requires {0}).", '`#window.commandCenter#`'),
|
||||
- default: true
|
||||
+ default: false
|
||||
},
|
||||
@@ -696,3 +696,3 @@ configurationRegistry.registerConfiguration({
|
||||
description: nls.localize('chat.disableAIFeatures', "Disable and hide built-in AI features provided by GitHub Copilot, including chat, code completions and next edit suggestions."),
|
||||
- default: false,
|
||||
+ default: true,
|
||||
scope: ConfigurationScope.WINDOW
|
||||
diff --git a/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.ts b/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.ts
|
||||
index 391a4de..995590c 100644
|
||||
--- a/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.ts
|
||||
+++ b/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.ts
|
||||
@@ -67,9 +67,8 @@ const chatViewDescriptor: IViewDescriptor[] = [{
|
||||
ctorDescriptor: new SyncDescriptor(ChatViewPane, [{ location: ChatAgentLocation.Chat }]),
|
||||
- when: ContextKeyExpr.or(
|
||||
- ContextKeyExpr.or(
|
||||
- ChatContextKeys.Setup.hidden,
|
||||
- ChatContextKeys.Setup.disabled
|
||||
- )?.negate(),
|
||||
+ when: ContextKeyExpr.and(
|
||||
+ ContextKeyExpr.has('config.chat.disableAIFeatures').negate(),
|
||||
+ ChatContextKeys.Setup.disabled.negate(),
|
||||
+ ChatContextKeys.Setup.hidden.negate(),
|
||||
ChatContextKeys.panelParticipantRegistered,
|
||||
- ChatContextKeys.extensionInvalid
|
||||
+ ChatContextKeys.extensionInvalid.negate()
|
||||
)
|
||||
diff --git a/src/vs/workbench/contrib/chat/browser/chatSetup.ts b/src/vs/workbench/contrib/chat/browser/chatSetup.ts
|
||||
index 4325d48..53edd2c 100644
|
||||
--- a/src/vs/workbench/contrib/chat/browser/chatSetup.ts
|
||||
+++ b/src/vs/workbench/contrib/chat/browser/chatSetup.ts
|
||||
@@ -953,7 +953,9 @@ export class ChatSetupContribution extends Disposable implements IWorkbenchContr
|
||||
f1: true,
|
||||
- precondition: ContextKeyExpr.or(
|
||||
- ChatContextKeys.Setup.hidden,
|
||||
- ChatContextKeys.Setup.disabled,
|
||||
- ChatContextKeys.Setup.untrusted,
|
||||
- ChatContextKeys.Setup.installed.negate(),
|
||||
+ precondition: ContextKeyExpr.and(
|
||||
+ ContextKeyExpr.or(
|
||||
+ ChatContextKeys.Setup.hidden,
|
||||
+ ChatContextKeys.Setup.disabled,
|
||||
+ ChatContextKeys.Setup.untrusted,
|
||||
+ ),
|
||||
+ ContextKeyExpr.has('config.chat.disableAIFeatures').negate(),
|
||||
ChatContextKeys.Entitlement.canSignUp
|
||||
@@ -1069,3 +1071,3 @@ export class ChatSetupContribution extends Disposable implements IWorkbenchContr
|
||||
ChatContextKeys.Setup.hidden.negate(),
|
||||
- ChatContextKeys.Setup.installed.negate(),
|
||||
+ ContextKeyExpr.has('config.chat.disableAIFeatures').negate(),
|
||||
ChatContextKeys.Entitlement.signedOut
|
||||
@@ -1096,2 +1098,3 @@ export class ChatSetupContribution extends Disposable implements IWorkbenchContr
|
||||
ChatContextKeys.Setup.hidden.negate(),
|
||||
+ ContextKeyExpr.has('config.chat.disableAIFeatures').negate(),
|
||||
ContextKeyExpr.or(
|
||||
@@ -1152,2 +1155,3 @@ export class ChatSetupContribution extends Disposable implements IWorkbenchContr
|
||||
ChatContextKeys.Setup.hidden.negate(),
|
||||
+ ContextKeyExpr.has('config.chat.disableAIFeatures').negate(),
|
||||
ContextKeyExpr.or(
|
||||
@@ -1350,3 +1354,3 @@ export class ChatTeardownContribution extends Disposable implements IWorkbenchCo
|
||||
ChatContextKeys.Setup.hidden.negate(),
|
||||
- ChatContextKeys.Setup.installed.negate()
|
||||
+ ContextKeyExpr.has('config.chat.disableAIFeatures').negate()
|
||||
),
|
||||
@@ -1356,3 +1360,3 @@ export class ChatTeardownContribution extends Disposable implements IWorkbenchCo
|
||||
order: 1,
|
||||
- when: ChatContextKeys.Setup.installed.negate()
|
||||
+ when: ContextKeyExpr.has('config.chat.disableAIFeatures').negate()
|
||||
}
|
||||
diff --git a/src/vs/workbench/contrib/chat/browser/chatStatus.ts b/src/vs/workbench/contrib/chat/browser/chatStatus.ts
|
||||
index 05f6f0e..5f7a988 100644
|
||||
--- a/src/vs/workbench/contrib/chat/browser/chatStatus.ts
|
||||
+++ b/src/vs/workbench/contrib/chat/browser/chatStatus.ts
|
||||
@@ -48,2 +48,3 @@ import { MarkdownRenderer } from '../../../../editor/browser/widget/markdownRend
|
||||
import { MarkdownString } from '../../../../base/common/htmlContent.js';
|
||||
+import { ContextKeyExpr, IContextKeyService } from '../../../../platform/contextkey/common/contextkey.js';
|
||||
|
||||
@@ -129,2 +130,3 @@ export class ChatStatusBarEntry extends Disposable implements IWorkbenchContribu
|
||||
@IChatSessionsService private readonly chatSessionsService: IChatSessionsService,
|
||||
+ @IContextKeyService private readonly contextKeyService: IContextKeyService,
|
||||
) {
|
||||
@@ -132,2 +134,7 @@ export class ChatStatusBarEntry extends Disposable implements IWorkbenchContribu
|
||||
|
||||
+ const rule = ContextKeyExpr.has('config.chat.disableAIFeatures');
|
||||
+ if (this.contextKeyService.contextMatchesRules(rule)) {
|
||||
+ return; // disabled
|
||||
+ }
|
||||
+
|
||||
this.update();
|
||||
diff --git a/src/vs/workbench/contrib/chat/common/chatContextKeys.ts b/src/vs/workbench/contrib/chat/common/chatContextKeys.ts
|
||||
index 4877407..d11d315 100644
|
||||
--- a/src/vs/workbench/contrib/chat/common/chatContextKeys.ts
|
||||
+++ b/src/vs/workbench/contrib/chat/common/chatContextKeys.ts
|
||||
@@ -104,4 +104,4 @@ export namespace ChatContextKeyExprs {
|
||||
*/
|
||||
- export const chatSetupTriggerContext = ContextKeyExpr.or(
|
||||
- ChatContextKeys.Setup.installed.negate(),
|
||||
+ export const chatSetupTriggerContext = ContextKeyExpr.and(
|
||||
+ ContextKeyExpr.has('config.chat.disableAIFeatures').negate(),
|
||||
ChatContextKeys.Entitlement.canSignUp
|
||||
diff --git a/src/vs/workbench/contrib/mcp/browser/mcpServersView.ts b/src/vs/workbench/contrib/mcp/browser/mcpServersView.ts
|
||||
index 5a12c9d..3e1f23e 100644
|
||||
--- a/src/vs/workbench/contrib/mcp/browser/mcpServersView.ts
|
||||
+++ b/src/vs/workbench/contrib/mcp/browser/mcpServersView.ts
|
||||
@@ -530,3 +530,3 @@ export class McpServersViewsContribution extends Disposable implements IWorkbenc
|
||||
ctorDescriptor: new SyncDescriptor(DefaultBrowseMcpServersView, [{}]),
|
||||
- when: ContextKeyExpr.and(DefaultViewsContext, HasInstalledMcpServersContext.toNegated(), ChatContextKeys.Setup.hidden.negate(), McpServersGalleryStatusContext.isEqualTo(McpGalleryManifestStatus.Available), ContextKeyExpr.or(ContextKeyDefinedExpr.create(`config.${mcpGalleryServiceUrlConfig}`), ProductQualityContext.notEqualsTo('stable'), ContextKeyDefinedExpr.create(`config.${mcpGalleryServiceEnablementConfig}`))),
|
||||
+ when: ContextKeyExpr.and(DefaultViewsContext, HasInstalledMcpServersContext.toNegated(), ContextKeyExpr.has('config.chat.disableAIFeatures').negate(), ChatContextKeys.Setup.hidden.negate(), McpServersGalleryStatusContext.isEqualTo(McpGalleryManifestStatus.Available), ContextKeyExpr.or(ContextKeyDefinedExpr.create(`config.${mcpGalleryServiceUrlConfig}`), ProductQualityContext.notEqualsTo('stable'), ContextKeyDefinedExpr.create(`config.${mcpGalleryServiceEnablementConfig}`))),
|
||||
weight: 40,
|
||||
@@ -545,3 +545,3 @@ export class McpServersViewsContribution extends Disposable implements IWorkbenc
|
||||
ctorDescriptor: new SyncDescriptor(DefaultBrowseMcpServersView, [{ showWelcome: true }]),
|
||||
- when: ContextKeyExpr.and(DefaultViewsContext, HasInstalledMcpServersContext.toNegated(), ChatContextKeys.Setup.hidden.negate(), McpServersGalleryStatusContext.isEqualTo(McpGalleryManifestStatus.Available), ContextKeyDefinedExpr.create(`config.${mcpGalleryServiceUrlConfig}`).negate(), ProductQualityContext.isEqualTo('stable'), ContextKeyDefinedExpr.create(`config.${mcpGalleryServiceEnablementConfig}`).negate()),
|
||||
+ when: ContextKeyExpr.and(DefaultViewsContext, HasInstalledMcpServersContext.toNegated(), ContextKeyExpr.has('config.chat.disableAIFeatures').negate(), ChatContextKeys.Setup.hidden.negate(), McpServersGalleryStatusContext.isEqualTo(McpGalleryManifestStatus.Available), ContextKeyDefinedExpr.create(`config.${mcpGalleryServiceUrlConfig}`).negate(), ProductQualityContext.isEqualTo('stable'), ContextKeyDefinedExpr.create(`config.${mcpGalleryServiceEnablementConfig}`).negate()),
|
||||
weight: 40,
|
||||
diff --git a/src/vs/workbench/contrib/scm/browser/scm.contribution.ts b/src/vs/workbench/contrib/scm/browser/scm.contribution.ts
|
||||
index a2d4dc9..3f7a511 100644
|
||||
--- a/src/vs/workbench/contrib/scm/browser/scm.contribution.ts
|
||||
+++ b/src/vs/workbench/contrib/scm/browser/scm.contribution.ts
|
||||
@@ -659,3 +659,3 @@ registerAction2(class extends Action2 {
|
||||
ChatContextKeys.Setup.disabled.negate(),
|
||||
- ChatContextKeys.Setup.installed.negate(),
|
||||
+ ContextKeyExpr.has('config.chat.disableAIFeatures').negate(),
|
||||
ContextKeyExpr.equals('git.activeResourceHasMergeConflicts', true)
|
||||
diff --git a/src/vs/workbench/contrib/scm/browser/scmViewPane.ts b/src/vs/workbench/contrib/scm/browser/scmViewPane.ts
|
||||
index d32554a..01d3cf6 100644
|
||||
--- a/src/vs/workbench/contrib/scm/browser/scmViewPane.ts
|
||||
+++ b/src/vs/workbench/contrib/scm/browser/scmViewPane.ts
|
||||
@@ -1346,3 +1346,3 @@ registerAction2(class extends Action2 {
|
||||
ChatContextKeys.Setup.disabled.negate(),
|
||||
- ChatContextKeys.Setup.installed.negate(),
|
||||
+ ContextKeyExpr.has('config.chat.disableAIFeatures').negate(),
|
||||
ContextKeyExpr.equals('scmProvider', 'git')
|
||||
30
patches/disable-settingssync-logger.patch
Normal file
30
patches/disable-settingssync-logger.patch
Normal file
@@ -0,0 +1,30 @@
|
||||
diff --git a/src/vs/code/electron-utility/sharedProcess/sharedProcessMain.ts b/src/vs/code/electron-utility/sharedProcess/sharedProcessMain.ts
|
||||
index 89d9736..b2a1623 100644
|
||||
--- a/src/vs/code/electron-utility/sharedProcess/sharedProcessMain.ts
|
||||
+++ b/src/vs/code/electron-utility/sharedProcess/sharedProcessMain.ts
|
||||
@@ -61,3 +61,3 @@ import { ExtensionStorageService, IExtensionStorageService } from '../../../plat
|
||||
import { IgnoredExtensionsManagementService, IIgnoredExtensionsManagementService } from '../../../platform/userDataSync/common/ignoredExtensions.js';
|
||||
-import { IUserDataSyncLocalStoreService, IUserDataSyncLogService, IUserDataSyncEnablementService, IUserDataSyncService, IUserDataSyncStoreManagementService, IUserDataSyncStoreService, IUserDataSyncUtilService, registerConfiguration as registerUserDataSyncConfiguration, IUserDataSyncResourceProviderService } from '../../../platform/userDataSync/common/userDataSync.js';
|
||||
+import { IUserDataSyncLocalStoreService, IUserDataSyncEnablementService, IUserDataSyncService, IUserDataSyncStoreManagementService, IUserDataSyncStoreService, IUserDataSyncUtilService, registerConfiguration as registerUserDataSyncConfiguration, IUserDataSyncResourceProviderService } from '../../../platform/userDataSync/common/userDataSync.js';
|
||||
import { IUserDataSyncAccountService, UserDataSyncAccountService } from '../../../platform/userDataSync/common/userDataSyncAccount.js';
|
||||
@@ -65,3 +65,2 @@ import { UserDataSyncLocalStoreService } from '../../../platform/userDataSync/co
|
||||
import { UserDataSyncAccountServiceChannel, UserDataSyncStoreManagementServiceChannel } from '../../../platform/userDataSync/common/userDataSyncIpc.js';
|
||||
-import { UserDataSyncLogService } from '../../../platform/userDataSync/common/userDataSyncLog.js';
|
||||
import { IUserDataSyncMachinesService, UserDataSyncMachinesService } from '../../../platform/userDataSync/common/userDataSyncMachines.js';
|
||||
@@ -366,3 +365,2 @@ class SharedProcessMain extends Disposable implements IClientConnectionFilter {
|
||||
services.set(IUserDataSyncAccountService, new SyncDescriptor(UserDataSyncAccountService, undefined, true));
|
||||
- services.set(IUserDataSyncLogService, new SyncDescriptor(UserDataSyncLogService, undefined, true));
|
||||
services.set(IUserDataSyncUtilService, ProxyChannel.toService(this.server.getChannel('userDataSyncUtil', client => client.ctx !== 'main')));
|
||||
diff --git a/src/vs/workbench/workbench.common.main.ts b/src/vs/workbench/workbench.common.main.ts
|
||||
index 61d63db..ccd7ff7 100644
|
||||
--- a/src/vs/workbench/workbench.common.main.ts
|
||||
+++ b/src/vs/workbench/workbench.common.main.ts
|
||||
@@ -157,4 +157,2 @@ import { IgnoredExtensionsManagementService, IIgnoredExtensionsManagementService
|
||||
import { ExtensionStorageService, IExtensionStorageService } from '../platform/extensionManagement/common/extensionStorage.js';
|
||||
-import { IUserDataSyncLogService } from '../platform/userDataSync/common/userDataSync.js';
|
||||
-import { UserDataSyncLogService } from '../platform/userDataSync/common/userDataSyncLog.js';
|
||||
import { AllowedExtensionsService } from '../platform/extensionManagement/common/allowedExtensionsService.js';
|
||||
@@ -164,3 +162,2 @@ import { AllowedMcpServersService } from '../platform/mcp/common/allowedMcpServe
|
||||
|
||||
-registerSingleton(IUserDataSyncLogService, UserDataSyncLogService, InstantiationType.Delayed);
|
||||
registerSingleton(IAllowedExtensionsService, AllowedExtensionsService, InstantiationType.Delayed);
|
||||
185
patches/disable-vscodedev.patch
Normal file
185
patches/disable-vscodedev.patch
Normal file
@@ -0,0 +1,185 @@
|
||||
diff --git a/extensions/github/package.json b/extensions/github/package.json
|
||||
index 726a882..b9a4969 100644
|
||||
--- a/extensions/github/package.json
|
||||
+++ b/extensions/github/package.json
|
||||
@@ -44,19 +44,2 @@
|
||||
},
|
||||
- {
|
||||
- "command": "github.copyVscodeDevLink",
|
||||
- "title": "%command.copyVscodeDevLink%"
|
||||
- },
|
||||
- {
|
||||
- "command": "github.copyVscodeDevLinkFile",
|
||||
- "title": "%command.copyVscodeDevLink%"
|
||||
- },
|
||||
- {
|
||||
- "command": "github.copyVscodeDevLinkWithoutRange",
|
||||
- "title": "%command.copyVscodeDevLink%"
|
||||
- },
|
||||
- {
|
||||
- "command": "github.openOnVscodeDev",
|
||||
- "title": "%command.openOnVscodeDev%",
|
||||
- "icon": "$(globe)"
|
||||
- },
|
||||
{
|
||||
@@ -72,11 +55,2 @@
|
||||
],
|
||||
- "continueEditSession": [
|
||||
- {
|
||||
- "command": "github.openOnVscodeDev",
|
||||
- "when": "github.hasGitHubRepo",
|
||||
- "qualifiedName": "Continue Working in vscode.dev",
|
||||
- "category": "Remote Repositories",
|
||||
- "remoteGroup": "virtualfs_44_vscode-vfs_2_web@2"
|
||||
- }
|
||||
- ],
|
||||
"menus": {
|
||||
@@ -91,18 +65,2 @@
|
||||
},
|
||||
- {
|
||||
- "command": "github.copyVscodeDevLink",
|
||||
- "when": "false"
|
||||
- },
|
||||
- {
|
||||
- "command": "github.copyVscodeDevLinkFile",
|
||||
- "when": "false"
|
||||
- },
|
||||
- {
|
||||
- "command": "github.copyVscodeDevLinkWithoutRange",
|
||||
- "when": "false"
|
||||
- },
|
||||
- {
|
||||
- "command": "github.openOnVscodeDev",
|
||||
- "when": "false"
|
||||
- },
|
||||
{
|
||||
@@ -112,42 +70,2 @@
|
||||
],
|
||||
- "file/share": [
|
||||
- {
|
||||
- "command": "github.copyVscodeDevLinkFile",
|
||||
- "when": "github.hasGitHubRepo && remoteName != 'codespaces'",
|
||||
- "group": "0_vscode@0"
|
||||
- }
|
||||
- ],
|
||||
- "editor/context/share": [
|
||||
- {
|
||||
- "command": "github.copyVscodeDevLink",
|
||||
- "when": "github.hasGitHubRepo && resourceScheme != untitled && !isInEmbeddedEditor && remoteName != 'codespaces'",
|
||||
- "group": "0_vscode@0"
|
||||
- }
|
||||
- ],
|
||||
- "explorer/context/share": [
|
||||
- {
|
||||
- "command": "github.copyVscodeDevLinkWithoutRange",
|
||||
- "when": "github.hasGitHubRepo && resourceScheme != untitled && !isInEmbeddedEditor && remoteName != 'codespaces'",
|
||||
- "group": "0_vscode@0"
|
||||
- }
|
||||
- ],
|
||||
- "editor/lineNumber/context": [
|
||||
- {
|
||||
- "command": "github.copyVscodeDevLink",
|
||||
- "when": "github.hasGitHubRepo && resourceScheme != untitled && activeEditor == workbench.editors.files.textFileEditor && config.editor.lineNumbers == on && remoteName != 'codespaces'",
|
||||
- "group": "1_cutcopypaste@2"
|
||||
- },
|
||||
- {
|
||||
- "command": "github.copyVscodeDevLink",
|
||||
- "when": "github.hasGitHubRepo && resourceScheme != untitled && activeEditor == workbench.editor.notebook && remoteName != 'codespaces'",
|
||||
- "group": "1_cutcopypaste@2"
|
||||
- }
|
||||
- ],
|
||||
- "editor/title/context/share": [
|
||||
- {
|
||||
- "command": "github.copyVscodeDevLinkWithoutRange",
|
||||
- "when": "github.hasGitHubRepo && resourceScheme != untitled && remoteName != 'codespaces'",
|
||||
- "group": "0_vscode@0"
|
||||
- }
|
||||
- ],
|
||||
"scm/historyItem/context": [
|
||||
diff --git a/extensions/github/src/commands.ts b/extensions/github/src/commands.ts
|
||||
index 48e9574..aa853a5 100644
|
||||
--- a/extensions/github/src/commands.ts
|
||||
+++ b/extensions/github/src/commands.ts
|
||||
@@ -9,28 +9,3 @@ import { publishRepository } from './publish.js';
|
||||
import { DisposableStore, getRepositoryFromUrl } from './util.js';
|
||||
-import { LinkContext, getCommitLink, getLink, getVscodeDevHost } from './links.js';
|
||||
-
|
||||
-async function copyVscodeDevLink(gitAPI: GitAPI, useSelection: boolean, context: LinkContext, includeRange = true) {
|
||||
- try {
|
||||
- const permalink = await getLink(gitAPI, useSelection, true, getVscodeDevHost(), 'headlink', context, includeRange);
|
||||
- if (permalink) {
|
||||
- return vscode.env.clipboard.writeText(permalink);
|
||||
- }
|
||||
- } catch (err) {
|
||||
- if (!(err instanceof vscode.CancellationError)) {
|
||||
- vscode.window.showErrorMessage(err.message);
|
||||
- }
|
||||
- }
|
||||
-}
|
||||
-
|
||||
-async function openVscodeDevLink(gitAPI: GitAPI): Promise<vscode.Uri | undefined> {
|
||||
- try {
|
||||
- const headlink = await getLink(gitAPI, true, false, getVscodeDevHost(), 'headlink');
|
||||
- return headlink ? vscode.Uri.parse(headlink) : undefined;
|
||||
- } catch (err) {
|
||||
- if (!(err instanceof vscode.CancellationError)) {
|
||||
- vscode.window.showErrorMessage(err.message);
|
||||
- }
|
||||
- return undefined;
|
||||
- }
|
||||
-}
|
||||
+import { getCommitLink } from './links.js';
|
||||
|
||||
@@ -70,14 +45,2 @@ export function registerCommands(gitAPI: GitAPI): vscode.Disposable {
|
||||
|
||||
- disposables.add(vscode.commands.registerCommand('github.copyVscodeDevLink', async (context: LinkContext) => {
|
||||
- return copyVscodeDevLink(gitAPI, true, context);
|
||||
- }));
|
||||
-
|
||||
- disposables.add(vscode.commands.registerCommand('github.copyVscodeDevLinkFile', async (context: LinkContext) => {
|
||||
- return copyVscodeDevLink(gitAPI, false, context);
|
||||
- }));
|
||||
-
|
||||
- disposables.add(vscode.commands.registerCommand('github.copyVscodeDevLinkWithoutRange', async (context: LinkContext) => {
|
||||
- return copyVscodeDevLink(gitAPI, true, context, false);
|
||||
- }));
|
||||
-
|
||||
disposables.add(vscode.commands.registerCommand('github.openOnGitHub', async (url: string, historyItemId: string) => {
|
||||
@@ -113,6 +76,2 @@ export function registerCommands(gitAPI: GitAPI): vscode.Disposable {
|
||||
|
||||
- disposables.add(vscode.commands.registerCommand('github.openOnVscodeDev', async () => {
|
||||
- return openVscodeDevLink(gitAPI);
|
||||
- }));
|
||||
-
|
||||
return disposables;
|
||||
diff --git a/extensions/github/src/extension.ts b/extensions/github/src/extension.ts
|
||||
index 17906c5..86a0ca8 100644
|
||||
--- a/extensions/github/src/extension.ts
|
||||
+++ b/extensions/github/src/extension.ts
|
||||
@@ -17,3 +17,2 @@ import { GitHubBranchProtectionProviderManager } from './branchProtection.js';
|
||||
import { GitHubCanonicalUriProvider } from './canonicalUriProvider.js';
|
||||
-import { VscodeDevShareProvider } from './shareProviders.js';
|
||||
import { GitHubSourceControlHistoryItemDetailsProvider } from './historyItemDetailsProvider.js';
|
||||
@@ -109,3 +108,2 @@ function initializeGitExtension(context: ExtensionContext, octokitService: Octok
|
||||
disposables.add(new GitHubCanonicalUriProvider(gitAPI));
|
||||
- disposables.add(new VscodeDevShareProvider(gitAPI));
|
||||
setGitHubContext(gitAPI, disposables);
|
||||
diff --git a/extensions/github/src/remoteSourceProvider.ts b/extensions/github/src/remoteSourceProvider.ts
|
||||
index 291a3f1..6304ed8 100644
|
||||
--- a/extensions/github/src/remoteSourceProvider.ts
|
||||
+++ b/extensions/github/src/remoteSourceProvider.ts
|
||||
@@ -10,3 +10,3 @@ import { Octokit } from '@octokit/rest';
|
||||
import { getRepositoryFromQuery, getRepositoryFromUrl } from './util.js';
|
||||
-import { getBranchLink, getVscodeDevHost } from './links.js';
|
||||
+import { getBranchLink } from './links.js';
|
||||
|
||||
@@ -129,9 +129,2 @@ export class GithubRemoteSourceProvider implements RemoteSourceProvider {
|
||||
}
|
||||
- }, {
|
||||
- label: l10n.t('Checkout on vscode.dev'),
|
||||
- icon: 'globe',
|
||||
- run(branch: string) {
|
||||
- const link = getBranchLink(url, branch, getVscodeDevHost());
|
||||
- env.openExternal(Uri.parse(link));
|
||||
- }
|
||||
}];
|
||||
@@ -1,19 +1,19 @@
|
||||
diff --git a/build/linux/dependencies-generator.js b/build/linux/dependencies-generator.js
|
||||
index b544223..e9063ec 100644
|
||||
index ae05d17..c692141 100644
|
||||
--- a/build/linux/dependencies-generator.js
|
||||
+++ b/build/linux/dependencies-generator.js
|
||||
@@ -27,3 +27,3 @@ const product = require("../../product.json");
|
||||
// are valid, are in dep-lists.ts
|
||||
-const FAIL_BUILD_FOR_NEW_DEPENDENCIES = true;
|
||||
+const FAIL_BUILD_FOR_NEW_DEPENDENCIES = false;
|
||||
// Based on https://source.chromium.org/chromium/chromium/src/+/refs/tags/138.0.7204.235:chrome/installer/linux/BUILD.gn;l=64-80
|
||||
// Based on https://source.chromium.org/chromium/chromium/src/+/refs/tags/138.0.7204.251:chrome/installer/linux/BUILD.gn;l=64-80
|
||||
@@ -60,3 +60,3 @@ async function getDependencies(packageType, buildDir, applicationName, arch) {
|
||||
// Add the tunnel binary.
|
||||
- files.push(path_1.default.join(buildDir, 'bin', product.tunnelApplicationName));
|
||||
+ // files.push(path_1.default.join(buildDir, 'bin', product.tunnelApplicationName));
|
||||
// Add the main executable.
|
||||
diff --git a/build/linux/dependencies-generator.ts b/build/linux/dependencies-generator.ts
|
||||
index 00d7bc6..a5e256c 100644
|
||||
index 46c6d6c..23ae589 100644
|
||||
--- a/build/linux/dependencies-generator.ts
|
||||
+++ b/build/linux/dependencies-generator.ts
|
||||
@@ -25,3 +25,3 @@ import product = require('../../product.json');
|
||||
|
||||
3640
patches/linux/fix-dependencies.patch
Normal file
3640
patches/linux/fix-dependencies.patch
Normal file
File diff suppressed because it is too large
Load Diff
16
patches/linux/fix-npm-postinstall.patch
Normal file
16
patches/linux/fix-npm-postinstall.patch
Normal file
@@ -0,0 +1,16 @@
|
||||
diff --git a/build/npm/postinstall.js b/build/npm/postinstall.js
|
||||
index fa8da7d..5e2f51b 100644
|
||||
--- a/build/npm/postinstall.js
|
||||
+++ b/build/npm/postinstall.js
|
||||
@@ -53,8 +53,9 @@ function npmInstall(dir, opts) {
|
||||
log(dir, `Installing dependencies inside container ${process.env['VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME']}...`);
|
||||
|
||||
opts.cwd = root;
|
||||
- if (process.env['npm_config_arch'] === 'arm64') {
|
||||
- run('sudo', ['docker', 'run', '--rm', '--privileged', 'multiarch/qemu-user-static', '--reset', '-p', 'yes'], opts);
|
||||
+ const emulateArchList = ['arm64', 'arm', 'ppc64', 'riscv64', 's390x', 'loong64'];
|
||||
+ if (process.env['DISABLE_QEMU'] !== 'true' && !!process.env['npm_config_arch'] && emulateArchList.includes(process.env['npm_config_arch'])) {
|
||||
+ run('sudo', ['docker', 'run', '--rm', '--privileged', 'tonistiigi/binfmt:latest', '--install', 'all'], opts);
|
||||
}
|
||||
run('sudo', [
|
||||
'docker', 'run',
|
||||
@@ -1,17 +0,0 @@
|
||||
diff --git a/build/npm/postinstall.js b/build/npm/postinstall.js
|
||||
index c1f22aa5002..a6fb2728b1f 100644
|
||||
--- a/build/npm/postinstall.js
|
||||
+++ b/build/npm/postinstall.js
|
||||
@@ -53,8 +53,10 @@ function npmInstall(dir, opts) {
|
||||
log(dir, `Installing dependencies inside container ${process.env['VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME']}...`);
|
||||
|
||||
opts.cwd = root;
|
||||
- if (process.env['npm_config_arch'] === 'arm64') {
|
||||
- run('sudo', ['docker', 'run', '--rm', '--privileged', 'multiarch/qemu-user-static', '--reset', '-p', 'yes'], opts);
|
||||
+ if ((process.env['npm_config_arch'] === 'arm64' || process.env['npm_config_arch'] === 'arm' || process.env['npm_config_arch'] === 'ppc64' || process.env['npm_config_arch'] === 'riscv64' || process.env['npm_config_arch'] === 's390x') && process.env['DISABLE_QEMU'] !== 'true') {
|
||||
+ run('sudo', ['docker', 'run', '--rm', '--privileged', 'tonistiigi/binfmt:latest', '--install', 'all'], opts);
|
||||
+ } else if (process.env['npm_config_arch'] === 'loong64') {
|
||||
+ run('sudo', ['docker', 'run', '--rm', '--privileged', 'loongcr.lcpu.dev/multiarch/archlinux', '--reset', '-p', 'yes'], opts);
|
||||
}
|
||||
run('sudo', ['docker', 'run', '-e', 'GITHUB_TOKEN', '-v', `${process.env['VSCODE_HOST_MOUNT']}:/root/vscode`, '-v', `${process.env['VSCODE_HOST_MOUNT']}/.build/.netrc:/root/.netrc`, '-w', path.resolve('/root/vscode', dir), process.env['VSCODE_REMOTE_DEPENDENCIES_CONTAINER_NAME'], 'sh', '-c', `\"chown -R root:root ${path.resolve('/root/vscode', dir)} && npm i -g node-gyp-build && npm ci\"`], opts);
|
||||
run('sudo', ['chown', '-R', `${userinfo.uid}:${userinfo.gid}`, `${path.resolve(root, dir)}`], opts);
|
||||
@@ -50,27 +50,27 @@ index 381d2f4..9cdec71 100644
|
||||
+ <target prefix="${regKey}" namespace="!!ORG_NAME!!.Policies.${regKey}" />
|
||||
</policyNamespaces>
|
||||
diff --git a/eslint.config.js b/eslint.config.js
|
||||
index d7b29f2..1eb07aa 100644
|
||||
index 127bb34..44d2b4c 100644
|
||||
--- a/eslint.config.js
|
||||
+++ b/eslint.config.js
|
||||
@@ -786,3 +786,3 @@ export default tseslint.config(
|
||||
@@ -800,3 +800,3 @@ export default tseslint.config(
|
||||
'@vscode/iconv-lite-umd',
|
||||
- '@vscode/policy-watcher',
|
||||
+ '@vscodium/policy-watcher',
|
||||
'@vscode/proxy-agent',
|
||||
diff --git a/package-lock.json b/package-lock.json
|
||||
index e4466bd..fd77ff8 100644
|
||||
index 4572a94..9f8c938 100644
|
||||
--- a/package-lock.json
|
||||
+++ b/package-lock.json
|
||||
@@ -18,3 +18,2 @@
|
||||
"@vscode/iconv-lite-umd": "0.7.0",
|
||||
- "@vscode/policy-watcher": "^1.3.2",
|
||||
"@vscode/proxy-agent": "^0.34.0",
|
||||
"@vscode/proxy-agent": "^0.35.0",
|
||||
@@ -29,2 +28,3 @@
|
||||
"@vscode/windows-registry": "^1.1.0",
|
||||
+ "@vscodium/policy-watcher": "^1.3.2-252465",
|
||||
"@xterm/addon-clipboard": "^0.2.0-beta.101",
|
||||
@@ -3270,22 +3270,2 @@
|
||||
"@xterm/addon-clipboard": "^0.2.0-beta.102",
|
||||
@@ -2960,22 +2960,2 @@
|
||||
},
|
||||
- "node_modules/@vscode/policy-watcher": {
|
||||
- "version": "1.3.2",
|
||||
@@ -93,7 +93,7 @@ index e4466bd..fd77ff8 100644
|
||||
- }
|
||||
- },
|
||||
"node_modules/@vscode/proxy-agent": {
|
||||
@@ -3682,2 +3662,22 @@
|
||||
@@ -3372,2 +3352,22 @@
|
||||
},
|
||||
+ "node_modules/@vscodium/policy-watcher": {
|
||||
+ "version": "1.3.2-252465",
|
||||
@@ -117,14 +117,14 @@ index e4466bd..fd77ff8 100644
|
||||
+ },
|
||||
"node_modules/@webassemblyjs/ast": {
|
||||
diff --git a/package.json b/package.json
|
||||
index 1120460..f74589f 100644
|
||||
index 8c0fdf3..0817f25 100644
|
||||
--- a/package.json
|
||||
+++ b/package.json
|
||||
@@ -78,3 +78,3 @@
|
||||
@@ -79,3 +79,3 @@
|
||||
"@vscode/iconv-lite-umd": "0.7.0",
|
||||
- "@vscode/policy-watcher": "^1.3.2",
|
||||
+ "@vscodium/policy-watcher": "^1.3.2-252465",
|
||||
"@vscode/proxy-agent": "^0.34.0",
|
||||
"@vscode/proxy-agent": "^0.35.0",
|
||||
diff --git a/src/vs/base/test/node/uri.perf.data.txt b/src/vs/base/test/node/uri.perf.data.txt
|
||||
index ee0a24b..881ce36 100644
|
||||
--- a/src/vs/base/test/node/uri.perf.data.txt
|
||||
|
||||
112
patches/sourcemaps.patch
Normal file
112
patches/sourcemaps.patch
Normal file
@@ -0,0 +1,112 @@
|
||||
diff --git a/build/gulpfile.extensions.js b/build/gulpfile.extensions.js
|
||||
index 7826f48..eca4a1d 100644
|
||||
--- a/build/gulpfile.extensions.js
|
||||
+++ b/build/gulpfile.extensions.js
|
||||
@@ -23,2 +23,3 @@ const plumber = require('gulp-plumber');
|
||||
const ext = require('./lib/extensions');
|
||||
+const product = require('../product.json');
|
||||
|
||||
@@ -74,3 +75,3 @@ const compilations = [
|
||||
|
||||
-const getBaseUrl = out => `https://main.vscode-cdn.net/sourcemaps/${commit}/${out}`;
|
||||
+const getBaseUrl = out => `https://github.com/VSCodium/sourcemaps/releases/download/${product.quality}-${commit}/${out.replaceAll('/', '-')}`;
|
||||
|
||||
diff --git a/build/gulpfile.reh.js b/build/gulpfile.reh.js
|
||||
index 10b7b44..79861bf 100644
|
||||
--- a/build/gulpfile.reh.js
|
||||
+++ b/build/gulpfile.reh.js
|
||||
@@ -454,3 +454,3 @@ function tweakProductForServerWeb(product) {
|
||||
util.rimraf(`out-vscode-${type}-min`),
|
||||
- optimize.minifyTask(`out-vscode-${type}`, `https://main.vscode-cdn.net/sourcemaps/${commit}/core`)
|
||||
+ optimize.minifyTask(`out-vscode-${type}`, `https://github.com/VSCodium/sourcemaps/releases/download/${product.quality}-${commit}/core`)
|
||||
));
|
||||
diff --git a/build/gulpfile.vscode.js b/build/gulpfile.vscode.js
|
||||
index ed06b6a..9488983 100644
|
||||
--- a/build/gulpfile.vscode.js
|
||||
+++ b/build/gulpfile.vscode.js
|
||||
@@ -147,3 +147,3 @@ gulp.task(bundleVSCodeTask);
|
||||
|
||||
-const sourceMappingURLBase = `https://main.vscode-cdn.net/sourcemaps/${commit}`;
|
||||
+const sourceMappingURLBase = `https://github.com/VSCodium/sourcemaps/releases/download/${product.quality}-${commit}`;
|
||||
const minifyVSCodeTask = task.define('minify-vscode', task.series(
|
||||
diff --git a/build/gulpfile.vscode.web.js b/build/gulpfile.vscode.web.js
|
||||
index 295a977..318ce92 100644
|
||||
--- a/build/gulpfile.vscode.web.js
|
||||
+++ b/build/gulpfile.vscode.web.js
|
||||
@@ -140,3 +140,3 @@ const minifyVSCodeWebTask = task.define('minify-vscode-web', task.series(
|
||||
util.rimraf('out-vscode-web-min'),
|
||||
- optimize.minifyTask('out-vscode-web', `https://main.vscode-cdn.net/sourcemaps/${commit}/core`)
|
||||
+ optimize.minifyTask('out-vscode-web', `https://github.com/VSCodium/sourcemaps/releases/download/${product.quality}-${commit}/core`)
|
||||
));
|
||||
diff --git a/build/lib/extensions.js b/build/lib/extensions.js
|
||||
index c80a1be..25cf259 100644
|
||||
--- a/build/lib/extensions.js
|
||||
+++ b/build/lib/extensions.js
|
||||
@@ -75,4 +75,5 @@ const vzip = require('gulp-vinyl-zip');
|
||||
const root = path_1.default.dirname(path_1.default.dirname(__dirname));
|
||||
+const product = JSON.parse(fs_1.default.readFileSync(path_1.default.join(root, 'product.json'), 'utf8'));
|
||||
const commit = (0, getVersion_1.getVersion)(root);
|
||||
-const sourceMappingURLBase = `https://main.vscode-cdn.net/sourcemaps/${commit}`;
|
||||
+const sourceMappingURLBase = `https://github.com/VSCodium/sourcemaps/releases/download/${product.quality}-${commit}`;
|
||||
function minifyExtensionResources(input) {
|
||||
@@ -205,3 +206,3 @@ function fromLocalWebpack(extensionPath, webpackConfigFileName, disableMangle) {
|
||||
data.contents = Buffer.from(contents.replace(/\n\/\/# sourceMappingURL=(.*)$/gm, function (_m, g1) {
|
||||
- return `\n//# sourceMappingURL=${sourceMappingURLBase}/extensions/${path_1.default.basename(extensionPath)}/${relativeOutputPath}/${g1}`;
|
||||
+ return `\n//# sourceMappingURL=${sourceMappingURLBase}/extensions-${path_1.default.basename(extensionPath).replaceAll('/', '-')}-${relativeOutputPath.replaceAll('/', '-')}-${g1.replaceAll('/', '-')}`;
|
||||
}), 'utf8');
|
||||
diff --git a/build/lib/extensions.ts b/build/lib/extensions.ts
|
||||
index 9e7cf9f..eed31ca 100644
|
||||
--- a/build/lib/extensions.ts
|
||||
+++ b/build/lib/extensions.ts
|
||||
@@ -30,4 +30,5 @@ const vzip = require('gulp-vinyl-zip');
|
||||
const root = path.dirname(path.dirname(__dirname));
|
||||
+const product = JSON.parse(fs.readFileSync(path.join(root, 'product.json'), 'utf8'));
|
||||
const commit = getVersion(root);
|
||||
-const sourceMappingURLBase = `https://main.vscode-cdn.net/sourcemaps/${commit}`;
|
||||
+const sourceMappingURLBase = `https://github.com/VSCodium/sourcemaps/releases/download/${product.quality}-${commit}`;
|
||||
|
||||
@@ -179,3 +180,3 @@ function fromLocalWebpack(extensionPath: string, webpackConfigFileName: string,
|
||||
data.contents = Buffer.from(contents.replace(/\n\/\/# sourceMappingURL=(.*)$/gm, function (_m, g1) {
|
||||
- return `\n//# sourceMappingURL=${sourceMappingURLBase}/extensions/${path.basename(extensionPath)}/${relativeOutputPath}/${g1}`;
|
||||
+ return `\n//# sourceMappingURL=${sourceMappingURLBase}/extensions-${path.basename(extensionPath).replaceAll('/', '-')}-${relativeOutputPath.replaceAll('/', '-')}-${g1.replaceAll('/', '-')}`;
|
||||
}), 'utf8');
|
||||
diff --git a/build/lib/optimize.js b/build/lib/optimize.js
|
||||
index fbc455b..4e7fe85 100644
|
||||
--- a/build/lib/optimize.js
|
||||
+++ b/build/lib/optimize.js
|
||||
@@ -186,3 +186,3 @@ function bundleTask(opts) {
|
||||
function minifyTask(src, sourceMapBaseUrl) {
|
||||
- const sourceMappingURL = sourceMapBaseUrl ? ((f) => `${sourceMapBaseUrl}/${f.relative}.map`) : undefined;
|
||||
+ const sourceMappingURL = sourceMapBaseUrl ? ((f) => `${sourceMapBaseUrl}-${f.relative.replaceAll('/', '-')}.map`) : undefined;
|
||||
return cb => {
|
||||
diff --git a/build/lib/optimize.ts b/build/lib/optimize.ts
|
||||
index d89d0d6..fca30cf 100644
|
||||
--- a/build/lib/optimize.ts
|
||||
+++ b/build/lib/optimize.ts
|
||||
@@ -211,3 +211,3 @@ export function bundleTask(opts: IBundleESMTaskOpts): () => NodeJS.ReadWriteStre
|
||||
export function minifyTask(src: string, sourceMapBaseUrl?: string): (cb: any) => void {
|
||||
- const sourceMappingURL = sourceMapBaseUrl ? ((f: any) => `${sourceMapBaseUrl}/${f.relative}.map`) : undefined;
|
||||
+ const sourceMappingURL = sourceMapBaseUrl ? ((f: any) => `${sourceMapBaseUrl}-${f.relative.replaceAll('/', '-')}.map`) : undefined;
|
||||
|
||||
diff --git a/build/lib/util.js b/build/lib/util.js
|
||||
index 389b9e0..f80d8e5 100644
|
||||
--- a/build/lib/util.js
|
||||
+++ b/build/lib/util.js
|
||||
@@ -235,4 +235,4 @@ function rewriteSourceMappingURL(sourceMappingURLBase) {
|
||||
const contents = f.contents.toString('utf8');
|
||||
- const str = `//# sourceMappingURL=${sourceMappingURLBase}/${path_1.default.dirname(f.relative).replace(/\\/g, '/')}/$1`;
|
||||
- f.contents = Buffer.from(contents.replace(/\n\/\/# sourceMappingURL=(.*)$/gm, str));
|
||||
+ const fp = path_1.default.dirname(f.relative).replace(/\\/g, '/').replaceAll('/', '-');
|
||||
+ f.contents = Buffer.from(contents.replace(/\n\/\/# sourceMappingURL=(.*)$/gm, (_m, p) => `//# sourceMappingURL=${sourceMappingURLBase}/${fp}-${p.replaceAll('/', '-')}`));
|
||||
return f;
|
||||
diff --git a/build/lib/util.ts b/build/lib/util.ts
|
||||
index 4931342..833091c 100644
|
||||
--- a/build/lib/util.ts
|
||||
+++ b/build/lib/util.ts
|
||||
@@ -285,4 +285,4 @@ export function rewriteSourceMappingURL(sourceMappingURLBase: string): NodeJS.Re
|
||||
const contents = (<Buffer>f.contents).toString('utf8');
|
||||
- const str = `//# sourceMappingURL=${sourceMappingURLBase}/${path.dirname(f.relative).replace(/\\/g, '/')}/$1`;
|
||||
- f.contents = Buffer.from(contents.replace(/\n\/\/# sourceMappingURL=(.*)$/gm, str));
|
||||
+ const fp = path.dirname(f.relative).replace(/\\/g, '/').replaceAll('/', '-');
|
||||
+ f.contents = Buffer.from(contents.replace(/\n\/\/# sourceMappingURL=(.*)$/gm, (_m, p) => `//# sourceMappingURL=${sourceMappingURLBase}/${fp}-${p.replaceAll('/', '-')}`));
|
||||
return f;
|
||||
@@ -18,6 +18,13 @@ mkdir -p assets
|
||||
git archive --format tar.gz --output="./assets/${APP_NAME}-${RELEASE_VERSION}-src.tar.gz" HEAD
|
||||
git archive --format zip --output="./assets/${APP_NAME}-${RELEASE_VERSION}-src.zip" HEAD
|
||||
|
||||
if [[ "${VSCODE_QUALITY}" == "insider" ]]; then
|
||||
COMMIT_ID=$( git rev-parse HEAD )
|
||||
|
||||
jsonTmp=$( jq -n --arg 'tag' "${RELEASE_VERSION}" --arg 'id' "${BUILD_SOURCEVERSION}" --arg 'commit' "${COMMIT_ID}" '{ "tag": $tag, "id": $id, "commit": $commit }' )
|
||||
echo "${jsonTmp}" > "./assets/buildinfo.json" && unset jsonTmp
|
||||
fi
|
||||
|
||||
cd assets
|
||||
|
||||
for FILE in *; do
|
||||
|
||||
@@ -3,9 +3,6 @@
|
||||
|
||||
set -e
|
||||
|
||||
# include common functions
|
||||
. ./utils.sh
|
||||
|
||||
if [[ "${VSCODE_QUALITY}" == "insider" ]]; then
|
||||
cp -rp src/insider/* vscode/
|
||||
else
|
||||
@@ -16,88 +13,10 @@ cp -f LICENSE vscode/LICENSE.txt
|
||||
|
||||
cd vscode || { echo "'vscode' dir not found"; exit 1; }
|
||||
|
||||
# apply patches
|
||||
{ set +x; } 2>/dev/null
|
||||
|
||||
echo "APP_NAME=\"${APP_NAME}\""
|
||||
echo "APP_NAME_LC=\"${APP_NAME_LC}\""
|
||||
echo "BINARY_NAME=\"${BINARY_NAME}\""
|
||||
echo "GH_REPO_PATH=\"${GH_REPO_PATH}\""
|
||||
echo "ORG_NAME=\"${ORG_NAME}\""
|
||||
|
||||
if [[ "${DISABLE_UPDATE}" == "yes" ]]; then
|
||||
mv ../patches/disable-update.patch.yet ../patches/disable-update.patch
|
||||
fi
|
||||
|
||||
for file in ../patches/*.patch; do
|
||||
if [[ -f "${file}" ]]; then
|
||||
apply_patch "${file}"
|
||||
fi
|
||||
done
|
||||
|
||||
if [[ "${VSCODE_QUALITY}" == "insider" ]]; then
|
||||
for file in ../patches/insider/*.patch; do
|
||||
if [[ -f "${file}" ]]; then
|
||||
apply_patch "${file}"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
if [[ -d "../patches/${OS_NAME}/" ]]; then
|
||||
for file in "../patches/${OS_NAME}/"*.patch; do
|
||||
if [[ -f "${file}" ]]; then
|
||||
apply_patch "${file}"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
for file in ../patches/user/*.patch; do
|
||||
if [[ -f "${file}" ]]; then
|
||||
apply_patch "${file}"
|
||||
fi
|
||||
done
|
||||
|
||||
set -x
|
||||
|
||||
export ELECTRON_SKIP_BINARY_DOWNLOAD=1
|
||||
export PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
|
||||
|
||||
if [[ "${OS_NAME}" == "linux" ]]; then
|
||||
export VSCODE_SKIP_NODE_VERSION_CHECK=1
|
||||
|
||||
if [[ "${npm_config_arch}" == "arm" ]]; then
|
||||
export npm_config_arm_version=7
|
||||
fi
|
||||
elif [[ "${OS_NAME}" == "windows" ]]; then
|
||||
if [[ "${npm_config_arch}" == "arm" ]]; then
|
||||
export npm_config_arm_version=7
|
||||
fi
|
||||
else
|
||||
if [[ "${CI_BUILD}" != "no" ]]; then
|
||||
clang++ --version
|
||||
fi
|
||||
fi
|
||||
|
||||
mv .npmrc .npmrc.bak
|
||||
cp ../npmrc .npmrc
|
||||
|
||||
for i in {1..5}; do # try 5 times
|
||||
if [[ "${CI_BUILD}" != "no" && "${OS_NAME}" == "osx" ]]; then
|
||||
CXX=clang++ npm ci && break
|
||||
else
|
||||
npm ci && break
|
||||
fi
|
||||
|
||||
if [[ $i == 5 ]]; then
|
||||
echo "Npm install failed too many times" >&2
|
||||
exit 1
|
||||
fi
|
||||
echo "Npm install failed $i, trying again..."
|
||||
|
||||
sleep $(( 15 * (i + 1)))
|
||||
done
|
||||
|
||||
mv .npmrc.bak .npmrc
|
||||
# {{{ product.json
|
||||
cp product.json{,.bak}
|
||||
|
||||
setpath() {
|
||||
local jsonTmp
|
||||
@@ -115,9 +34,6 @@ setpath_json() {
|
||||
set -x
|
||||
}
|
||||
|
||||
# product.json
|
||||
cp product.json{,.bak}
|
||||
|
||||
setpath "product" "checksumFailMoreInfoUrl" "https://go.microsoft.com/fwlink/?LinkId=828886"
|
||||
setpath "product" "documentationUrl" "https://go.microsoft.com/fwlink/?LinkID=533484#vscode"
|
||||
setpath_json "product" "extensionsGallery" '{"serviceUrl": "https://open-vsx.org/vscode/gallery", "itemUrl": "https://open-vsx.org/vscode/item", "latestUrlTemplate": "https://open-vsx.org/vscode/gallery/{publisher}/{name}/latest", "controlUrl": "https://raw.githubusercontent.com/EclipseFdn/publish-extensions/refs/heads/master/extension-control/extensions.json"}'
|
||||
@@ -167,7 +83,7 @@ if [[ "${VSCODE_QUALITY}" == "insider" ]]; then
|
||||
setpath "product" "win32UserAppId" "{{ED2E5618-3E7E-4888-BF3C-A6CCC84F586F}"
|
||||
setpath "product" "win32x64UserAppId" "{{20F79D0D-A9AC-4220-9A81-CE675FFB6B41}"
|
||||
setpath "product" "win32arm64UserAppId" "{{2E362F92-14EA-455A-9ABD-3E656BBBFE71}"
|
||||
setpath "product" "tunnelApplicationName" "codium-tunnel-insiders"
|
||||
setpath "product" "tunnelApplicationName" "codium-insiders-tunnel"
|
||||
setpath "product" "win32TunnelServiceMutex" "vscodiuminsiders-tunnelservice"
|
||||
setpath "product" "win32TunnelMutex" "vscodiuminsiders-tunnel"
|
||||
setpath "product" "win32ContextMenu.x64.clsid" "90AAD229-85FD-43A3-B82D-8598A88829CF"
|
||||
@@ -201,10 +117,102 @@ else
|
||||
setpath "product" "win32ContextMenu.arm64.clsid" "4852FC55-4A84-4EA1-9C86-D53BE3DF83C0"
|
||||
fi
|
||||
|
||||
setpath_json "product" "tunnelApplicationConfig" '{}'
|
||||
|
||||
jsonTmp=$( jq -s '.[0] * .[1]' product.json ../product.json )
|
||||
echo "${jsonTmp}" > product.json && unset jsonTmp
|
||||
|
||||
cat product.json
|
||||
# }}}
|
||||
|
||||
# include common functions
|
||||
. ../utils.sh
|
||||
|
||||
# {{{ apply patches
|
||||
|
||||
echo "APP_NAME=\"${APP_NAME}\""
|
||||
echo "APP_NAME_LC=\"${APP_NAME_LC}\""
|
||||
echo "BINARY_NAME=\"${BINARY_NAME}\""
|
||||
echo "GH_REPO_PATH=\"${GH_REPO_PATH}\""
|
||||
echo "ORG_NAME=\"${ORG_NAME}\""
|
||||
echo "TUNNEL_APP_NAME=\"${TUNNEL_APP_NAME}\""
|
||||
|
||||
if [[ "${DISABLE_UPDATE}" == "yes" ]]; then
|
||||
mv ../patches/disable-update.patch.yet ../patches/disable-update.patch
|
||||
fi
|
||||
|
||||
for file in ../patches/*.patch; do
|
||||
if [[ -f "${file}" ]]; then
|
||||
apply_patch "${file}"
|
||||
fi
|
||||
done
|
||||
|
||||
if [[ "${VSCODE_QUALITY}" == "insider" ]]; then
|
||||
for file in ../patches/insider/*.patch; do
|
||||
if [[ -f "${file}" ]]; then
|
||||
apply_patch "${file}"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
if [[ -d "../patches/${OS_NAME}/" ]]; then
|
||||
for file in "../patches/${OS_NAME}/"*.patch; do
|
||||
if [[ -f "${file}" ]]; then
|
||||
apply_patch "${file}"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
for file in ../patches/user/*.patch; do
|
||||
if [[ -f "${file}" ]]; then
|
||||
apply_patch "${file}"
|
||||
fi
|
||||
done
|
||||
# }}}
|
||||
|
||||
set -x
|
||||
|
||||
# {{{ install dependencies
|
||||
export ELECTRON_SKIP_BINARY_DOWNLOAD=1
|
||||
export PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
|
||||
|
||||
if [[ "${OS_NAME}" == "linux" ]]; then
|
||||
export VSCODE_SKIP_NODE_VERSION_CHECK=1
|
||||
|
||||
if [[ "${npm_config_arch}" == "arm" ]]; then
|
||||
export npm_config_arm_version=7
|
||||
fi
|
||||
elif [[ "${OS_NAME}" == "windows" ]]; then
|
||||
if [[ "${npm_config_arch}" == "arm" ]]; then
|
||||
export npm_config_arm_version=7
|
||||
fi
|
||||
else
|
||||
if [[ "${CI_BUILD}" != "no" ]]; then
|
||||
clang++ --version
|
||||
fi
|
||||
fi
|
||||
|
||||
mv .npmrc .npmrc.bak
|
||||
cp ../npmrc .npmrc
|
||||
|
||||
for i in {1..5}; do # try 5 times
|
||||
if [[ "${CI_BUILD}" != "no" && "${OS_NAME}" == "osx" ]]; then
|
||||
CXX=clang++ npm ci && break
|
||||
else
|
||||
npm ci && break
|
||||
fi
|
||||
|
||||
if [[ $i == 5 ]]; then
|
||||
echo "Npm install failed too many times" >&2
|
||||
exit 1
|
||||
fi
|
||||
echo "Npm install failed $i, trying again..."
|
||||
|
||||
sleep $(( 15 * (i + 1)))
|
||||
done
|
||||
|
||||
mv .npmrc.bak .npmrc
|
||||
# }}}
|
||||
|
||||
# package.json
|
||||
cp package.json{,.bak}
|
||||
|
||||
22
product.json
22
product.json
@@ -60,6 +60,12 @@
|
||||
"contribEditSessions",
|
||||
"authenticationChallenges"
|
||||
],
|
||||
"ms-toolsai.vscode-ai": [
|
||||
"authenticationChallenges"
|
||||
],
|
||||
"TeamsDevApp.vscode-ai-foundry": [
|
||||
"authenticationChallenges"
|
||||
],
|
||||
"ms-vscode.vscode-selfhost-test-provider": [
|
||||
"testObserver",
|
||||
"testRelatedCode"
|
||||
@@ -87,7 +93,8 @@
|
||||
"tunnels"
|
||||
],
|
||||
"ms-toolsai.vscode-ai-remote": [
|
||||
"resolvers"
|
||||
"resolvers",
|
||||
"authenticationChallenges"
|
||||
],
|
||||
"ms-python.python": [
|
||||
"codeActionAI",
|
||||
@@ -221,10 +228,12 @@
|
||||
"treeViewMarkdownMessage"
|
||||
],
|
||||
"GitHub.copilot": [
|
||||
"inlineCompletionsAdditions"
|
||||
"inlineCompletionsAdditions",
|
||||
"devDeviceId"
|
||||
],
|
||||
"GitHub.copilot-nightly": [
|
||||
"inlineCompletionsAdditions"
|
||||
"inlineCompletionsAdditions",
|
||||
"devDeviceId"
|
||||
],
|
||||
"GitHub.copilot-chat": [
|
||||
"interactive",
|
||||
@@ -274,7 +283,9 @@
|
||||
"resolvers",
|
||||
"taskExecutionTerminal",
|
||||
"dataChannels",
|
||||
"chatSessionsProvider"
|
||||
"chatSessionsProvider",
|
||||
"devDeviceId",
|
||||
"contribEditorContentMenu"
|
||||
],
|
||||
"GitHub.remotehub": [
|
||||
"contribRemoteHelp",
|
||||
@@ -292,7 +303,8 @@
|
||||
"timeline"
|
||||
],
|
||||
"ms-python.vscode-pylance": [
|
||||
"terminalShellEnv"
|
||||
"terminalShellEnv",
|
||||
"portsAttributes"
|
||||
],
|
||||
"ms-python.debugpy": [
|
||||
"contribViewsWelcome",
|
||||
|
||||
@@ -24,7 +24,7 @@ else
|
||||
if [[ "${VSCODE_QUALITY}" == "stable" ]]; then
|
||||
CHANNEL="${SNAPCRAFT_STORE_CHANNEL:-stable}"
|
||||
|
||||
sudo snap install --channel stable --classic snapcraft
|
||||
sudo snap install --channel "${CHANNEL}" --classic snapcraft
|
||||
|
||||
echo "Architecture: ${ARCHITECTURE}"
|
||||
|
||||
|
||||
@@ -109,7 +109,6 @@ copy_env_variable GDK_BACKEND
|
||||
copy_env_variable GTK_PATH
|
||||
copy_env_variable GTK_EXE_PREFIX
|
||||
copy_env_variable GTK_IM_MODULE_FILE
|
||||
copy_env_variable LIBGL_DRIVERS_PATH
|
||||
|
||||
# XDG Config
|
||||
prepend_dir XDG_CONFIG_DIRS "$SNAP/etc/xdg"
|
||||
@@ -121,16 +120,12 @@ prepend_dir XDG_DATA_DIRS "$SNAP/data-dir"
|
||||
prepend_dir XDG_DATA_DIRS "$SNAP_USER_DATA"
|
||||
|
||||
# Set XDG_DATA_HOME to local path
|
||||
ensure_dir_exists "$SNAP_USER_DATA/.local/share"
|
||||
export XDG_DATA_HOME="$SNAP_USER_DATA/.local/share"
|
||||
ensure_dir_exists "$XDG_DATA_HOME"
|
||||
|
||||
# Workaround for GLib < 2.53.2 not searching for schemas in $XDG_DATA_HOME:
|
||||
# https://bugzilla.gnome.org/show_bug.cgi?id=741335
|
||||
prepend_dir XDG_DATA_DIRS "$SNAP_USER_DATA/.local/share"
|
||||
|
||||
# Use the snap MESA drivers to launch the snap.
|
||||
# This is required by wayland, but electron will make better use under X11 too
|
||||
prepend_dir LIBGL_DRIVERS_PATH "$SNAP/usr/lib/dri"
|
||||
prepend_dir LIBGL_DRIVERS_PATH "$SNAP/usr/lib/$ARCH/dri"
|
||||
prepend_dir XDG_DATA_DIRS "$XDG_DATA_HOME"
|
||||
|
||||
# Set cache folder to local path
|
||||
if [[ -d "$SNAP_USER_DATA/.cache" && ! -e "$SNAP_USER_COMMON/.cache" ]]; then
|
||||
@@ -158,28 +153,45 @@ if [[ -n "$XDG_RUNTIME_DIR" && -z "$DISABLE_WAYLAND" ]] && \
|
||||
if [ -n "$WAYLAND_DISPLAY" ]; then
|
||||
wdisplay="$WAYLAND_DISPLAY"
|
||||
fi
|
||||
wayland_sockpath="$XDG_RUNTIME_DIR/../$wdisplay"
|
||||
wayland_snappath="$XDG_RUNTIME_DIR/$wdisplay"
|
||||
if [ -S "$wayland_snappath" ]; then
|
||||
if [ -S "$wayland_sockpath" ]; then
|
||||
# if running under wayland, use it
|
||||
#export WAYLAND_DEBUG=1
|
||||
# shellcheck disable=SC2034
|
||||
wayland_available=true
|
||||
# create the compat symlink for now
|
||||
if [ ! -e "$wayland_snappath" ]; then
|
||||
ln -s "$wayland_sockpath" "$wayland_snappath"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# Keep an array of data dirs, for looping through them
|
||||
IFS=':' read -r -a data_dirs_array <<< "$XDG_DATA_DIRS"
|
||||
|
||||
# Build mime.cache
|
||||
# needed for gtk and qt icon
|
||||
# Font Config
|
||||
export FONTCONFIG_PATH="/etc/fonts"
|
||||
export FONTCONFIG_FILE="/etc/fonts/fonts.conf"
|
||||
|
||||
if [ "$needs_update" = true ]; then
|
||||
rm -rf "$XDG_DATA_HOME"/fonts
|
||||
|
||||
if [ -d "$SNAP_REAL_HOME/.local/share/fonts" ]; then
|
||||
ln -s "$SNAP_REAL_HOME/.local/share/fonts" "$XDG_DATA_HOME/fonts"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Build mime.cache needed for gtk and qt icon
|
||||
# @TODO: Re-enable this once we move to core22
|
||||
if [ "$needs_update" = true ]; then
|
||||
rm -rf "$SNAP_USER_DATA/.local/share/mime"
|
||||
if [ ! -f "$SNAP/usr/share/mime/mime.cache" ]; then
|
||||
if command -v update-mime-database >/dev/null; then
|
||||
cp --preserve=timestamps -dR "$SNAP/usr/share/mime" "$SNAP_USER_DATA/.local/share"
|
||||
async_exec update-mime-database "$SNAP_USER_DATA/.local/share/mime"
|
||||
fi
|
||||
fi
|
||||
# if [ ! -f "$SNAP/usr/share/mime/mime.cache" ]; then
|
||||
# if command -v update-mime-database >/dev/null; then
|
||||
# cp --preserve=timestamps -dR "$SNAP/usr/share/mime" "$SNAP_USER_DATA/.local/share"
|
||||
# async_exec update-mime-database "$SNAP_USER_DATA/.local/share/mime"
|
||||
# fi
|
||||
# fi
|
||||
fi
|
||||
|
||||
# Gio modules and cache (including gsettings module)
|
||||
|
||||
@@ -59,7 +59,6 @@ parts:
|
||||
- libnss3
|
||||
- libpango-1.0-0
|
||||
- libsecret-1-0
|
||||
- libvulkan1
|
||||
- libwayland-egl1
|
||||
- libxcomposite1
|
||||
- libxdamage1
|
||||
@@ -70,20 +69,14 @@ parts:
|
||||
- libxss1
|
||||
- locales-all
|
||||
- packagekit-gtk3-module
|
||||
- gnome-settings-daemon-common
|
||||
- xdg-utils
|
||||
prime:
|
||||
- -lib/udev
|
||||
- -usr/lib/systemd
|
||||
- -usr/share/doc
|
||||
- -usr/share/fonts
|
||||
- -usr/share/icons
|
||||
- -usr/share/lintian
|
||||
- -usr/share/man
|
||||
- -usr/share/codium/chrome-sandbox
|
||||
- -usr/share/@@NAME@@/libEGL.so*
|
||||
- -usr/share/@@NAME@@/libGLESv2.so*
|
||||
- -usr/share/@@NAME@@/libvulkan.so*
|
||||
- -usr/share/codium-insiders/chrome-sandbox
|
||||
build-attributes:
|
||||
- enable-patchelf
|
||||
override-prime: |
|
||||
|
||||
@@ -109,7 +109,6 @@ copy_env_variable GDK_BACKEND
|
||||
copy_env_variable GTK_PATH
|
||||
copy_env_variable GTK_EXE_PREFIX
|
||||
copy_env_variable GTK_IM_MODULE_FILE
|
||||
copy_env_variable LIBGL_DRIVERS_PATH
|
||||
|
||||
# XDG Config
|
||||
prepend_dir XDG_CONFIG_DIRS "$SNAP/etc/xdg"
|
||||
@@ -121,16 +120,12 @@ prepend_dir XDG_DATA_DIRS "$SNAP/data-dir"
|
||||
prepend_dir XDG_DATA_DIRS "$SNAP_USER_DATA"
|
||||
|
||||
# Set XDG_DATA_HOME to local path
|
||||
ensure_dir_exists "$SNAP_USER_DATA/.local/share"
|
||||
export XDG_DATA_HOME="$SNAP_USER_DATA/.local/share"
|
||||
ensure_dir_exists "$XDG_DATA_HOME"
|
||||
|
||||
# Workaround for GLib < 2.53.2 not searching for schemas in $XDG_DATA_HOME:
|
||||
# https://bugzilla.gnome.org/show_bug.cgi?id=741335
|
||||
prepend_dir XDG_DATA_DIRS "$SNAP_USER_DATA/.local/share"
|
||||
|
||||
# Use the snap MESA drivers to launch the snap.
|
||||
# This is required by wayland, but electron will make better use under X11 too
|
||||
prepend_dir LIBGL_DRIVERS_PATH "$SNAP/usr/lib/dri"
|
||||
prepend_dir LIBGL_DRIVERS_PATH "$SNAP/usr/lib/$ARCH/dri"
|
||||
prepend_dir XDG_DATA_DIRS "$XDG_DATA_HOME"
|
||||
|
||||
# Set cache folder to local path
|
||||
if [[ -d "$SNAP_USER_DATA/.cache" && ! -e "$SNAP_USER_COMMON/.cache" ]]; then
|
||||
@@ -158,28 +153,45 @@ if [[ -n "$XDG_RUNTIME_DIR" && -z "$DISABLE_WAYLAND" ]] && \
|
||||
if [ -n "$WAYLAND_DISPLAY" ]; then
|
||||
wdisplay="$WAYLAND_DISPLAY"
|
||||
fi
|
||||
wayland_sockpath="$XDG_RUNTIME_DIR/../$wdisplay"
|
||||
wayland_snappath="$XDG_RUNTIME_DIR/$wdisplay"
|
||||
if [ -S "$wayland_snappath" ]; then
|
||||
if [ -S "$wayland_sockpath" ]; then
|
||||
# if running under wayland, use it
|
||||
#export WAYLAND_DEBUG=1
|
||||
# shellcheck disable=SC2034
|
||||
wayland_available=true
|
||||
# create the compat symlink for now
|
||||
if [ ! -e "$wayland_snappath" ]; then
|
||||
ln -s "$wayland_sockpath" "$wayland_snappath"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# Keep an array of data dirs, for looping through them
|
||||
IFS=':' read -r -a data_dirs_array <<< "$XDG_DATA_DIRS"
|
||||
|
||||
# Build mime.cache
|
||||
# needed for gtk and qt icon
|
||||
# Font Config
|
||||
export FONTCONFIG_PATH="/etc/fonts"
|
||||
export FONTCONFIG_FILE="/etc/fonts/fonts.conf"
|
||||
|
||||
if [ "$needs_update" = true ]; then
|
||||
rm -rf "$XDG_DATA_HOME"/fonts
|
||||
|
||||
if [ -d "$SNAP_REAL_HOME/.local/share/fonts" ]; then
|
||||
ln -s "$SNAP_REAL_HOME/.local/share/fonts" "$XDG_DATA_HOME/fonts"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Build mime.cache needed for gtk and qt icon
|
||||
# @TODO: Re-enable this once we move to core22
|
||||
if [ "$needs_update" = true ]; then
|
||||
rm -rf "$SNAP_USER_DATA/.local/share/mime"
|
||||
if [ ! -f "$SNAP/usr/share/mime/mime.cache" ]; then
|
||||
if command -v update-mime-database >/dev/null; then
|
||||
cp --preserve=timestamps -dR "$SNAP/usr/share/mime" "$SNAP_USER_DATA/.local/share"
|
||||
async_exec update-mime-database "$SNAP_USER_DATA/.local/share/mime"
|
||||
fi
|
||||
fi
|
||||
# if [ ! -f "$SNAP/usr/share/mime/mime.cache" ]; then
|
||||
# if command -v update-mime-database >/dev/null; then
|
||||
# cp --preserve=timestamps -dR "$SNAP/usr/share/mime" "$SNAP_USER_DATA/.local/share"
|
||||
# async_exec update-mime-database "$SNAP_USER_DATA/.local/share/mime"
|
||||
# fi
|
||||
# fi
|
||||
fi
|
||||
|
||||
# Gio modules and cache (including gsettings module)
|
||||
|
||||
@@ -59,7 +59,6 @@ parts:
|
||||
- libnss3
|
||||
- libpango-1.0-0
|
||||
- libsecret-1-0
|
||||
- libvulkan1
|
||||
- libwayland-egl1
|
||||
- libxcomposite1
|
||||
- libxdamage1
|
||||
@@ -70,20 +69,14 @@ parts:
|
||||
- libxss1
|
||||
- locales-all
|
||||
- packagekit-gtk3-module
|
||||
- gnome-settings-daemon-common
|
||||
- xdg-utils
|
||||
prime:
|
||||
- -lib/udev
|
||||
- -usr/lib/systemd
|
||||
- -usr/share/doc
|
||||
- -usr/share/fonts
|
||||
- -usr/share/icons
|
||||
- -usr/share/lintian
|
||||
- -usr/share/man
|
||||
- -usr/share/codium/chrome-sandbox
|
||||
- -usr/share/@@NAME@@/libEGL.so*
|
||||
- -usr/share/@@NAME@@/libGLESv2.so*
|
||||
- -usr/share/@@NAME@@/libvulkan.so*
|
||||
build-attributes:
|
||||
- enable-patchelf
|
||||
override-prime: |
|
||||
|
||||
84
upload_sourcemaps.sh
Executable file
84
upload_sourcemaps.sh
Executable file
@@ -0,0 +1,84 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
npm install -g checksum github-release-cli
|
||||
|
||||
mkdir -p sourcemaps
|
||||
cd sourcemaps
|
||||
|
||||
SOURCE_DIR="../vscode/.build/extensions"
|
||||
DESTINATION_DIR="extensions"
|
||||
|
||||
find "${SOURCE_DIR}" -type f -name "*.js.map" | while read -r SOURCE_FILE_PATH; do
|
||||
RELATIVE_PATH="${SOURCE_FILE_PATH#$SOURCE_DIR/}"
|
||||
FLATTENED_FILENAME="${RELATIVE_PATH//\//-}"
|
||||
|
||||
cp "${SOURCE_FILE_PATH}" "$DESTINATION_DIR-${FLATTENED_FILENAME}"
|
||||
done
|
||||
|
||||
SOURCE_DIR="../vscode/out-vscode-min"
|
||||
DESTINATION_DIR="core"
|
||||
|
||||
find "${SOURCE_DIR}" -type f -name "*.js.map" | while read -r SOURCE_FILE_PATH; do
|
||||
RELATIVE_PATH="${SOURCE_FILE_PATH#$SOURCE_DIR/}"
|
||||
FLATTENED_FILENAME="${RELATIVE_PATH//\//-}"
|
||||
|
||||
cp "${SOURCE_FILE_PATH}" "$DESTINATION_DIR-${FLATTENED_FILENAME}"
|
||||
done
|
||||
|
||||
tar czf "${APP_NAME}-${RELEASE_VERSION}-sourcemaps.tar.gz" *.js.map
|
||||
|
||||
find . -type f -name "*.js.map" | sort | xargs checksum -a sha256 > checksum.txt
|
||||
|
||||
checksum -a sha256 checksum.txt > checksum.txt.sha256
|
||||
checksum -a sha256 "${APP_NAME}-${RELEASE_VERSION}-sourcemaps.tar.gz" > "${APP_NAME}-${RELEASE_VERSION}-sourcemaps.tar.gz.sha256"
|
||||
|
||||
REPOSITORY_OWNER="${SOURCEMAPS_REPOSITORY/\/*/}"
|
||||
REPOSITORY_NAME="${SOURCEMAPS_REPOSITORY/*\//}"
|
||||
RELEASE_TAG="${VSCODE_QUALITY}-${BUILD_SOURCEVERSION}"
|
||||
|
||||
gh release create "${RELEASE_TAG}" --repo "${SOURCEMAPS_REPOSITORY}" --title "${RELEASE_VERSION}"
|
||||
|
||||
set +e
|
||||
|
||||
for FILE in *; do
|
||||
if [[ -f "${FILE}" ]]; then
|
||||
echo "::group::Uploading '${FILE}' at $( date "+%T" )"
|
||||
gh release upload --repo "${SOURCEMAPS_REPOSITORY}" "${RELEASE_TAG}" "${FILE}"
|
||||
|
||||
EXIT_STATUS=$?
|
||||
echo "exit: ${EXIT_STATUS}"
|
||||
|
||||
if (( "${EXIT_STATUS}" )); then
|
||||
for (( i=0; i<10; i++ )); do
|
||||
github-release delete --owner "${REPOSITORY_OWNER}" --repo "${REPOSITORY_NAME}" --tag "${RELEASE_TAG}" "${FILE}"
|
||||
|
||||
sleep $(( 15 * (i + 1)))
|
||||
|
||||
echo "RE-Uploading '${FILE}' at $( date "+%T" )"
|
||||
gh release upload --repo "${SOURCEMAPS_REPOSITORY}" "${RELEASE_TAG}" "${FILE}"
|
||||
|
||||
EXIT_STATUS=$?
|
||||
echo "exit: ${EXIT_STATUS}"
|
||||
|
||||
if ! (( "${EXIT_STATUS}" )); then
|
||||
break
|
||||
fi
|
||||
done
|
||||
echo "exit: ${EXIT_STATUS}"
|
||||
|
||||
if (( "${EXIT_STATUS}" )); then
|
||||
echo "'${FILE}' hasn't been uploaded!"
|
||||
|
||||
github-release delete --owner "${REPOSITORY_OWNER}" --repo "${REPOSITORY_NAME}" --tag "${RELEASE_TAG}" "${FILE}"
|
||||
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "::endgroup::"
|
||||
fi
|
||||
done
|
||||
|
||||
cd ..
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"tag": "1.104.0",
|
||||
"commit": "f220831ea2d946c0dcb0f3eaa480eb435a2c1260"
|
||||
"tag": "1.105.0",
|
||||
"commit": "03c265b1adee71ac88f833e065f7bb956b60550a"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"tag": "1.104.3",
|
||||
"commit": "385651c938df8a906869babee516bffd0ddb9829"
|
||||
"tag": "1.105.1",
|
||||
"commit": "7d842fb85a0275a4a8e4d7e040d2625abbf7f084"
|
||||
}
|
||||
|
||||
2
utils.sh
2
utils.sh
@@ -6,6 +6,7 @@ ASSETS_REPOSITORY="${ASSETS_REPOSITORY:-VSCodium/vscodium}"
|
||||
BINARY_NAME="${BINARY_NAME:-codium}"
|
||||
GH_REPO_PATH="${GH_REPO_PATH:-VSCodium/vscodium}"
|
||||
ORG_NAME="${ORG_NAME:-VSCodium}"
|
||||
TUNNEL_APP_NAME="${TUNNEL_APP_NAME:-"${BINARY_NAME}-tunnel"}"
|
||||
|
||||
# All common functions can be added to this file
|
||||
|
||||
@@ -24,6 +25,7 @@ apply_patch() {
|
||||
replace "s|!!GH_REPO_PATH!!|${GH_REPO_PATH}|g" "$1"
|
||||
replace "s|!!ORG_NAME!!|${ORG_NAME}|g" "$1"
|
||||
replace "s|!!RELEASE_VERSION!!|${RELEASE_VERSION}|g" "$1"
|
||||
replace "s|!!TUNNEL_APP_NAME!!|${TUNNEL_APP_NAME}|g" "$1"
|
||||
|
||||
if ! git apply --ignore-whitespace "$1"; then
|
||||
echo failed to apply patch "$1" >&2
|
||||
|
||||
Reference in New Issue
Block a user