diff --git a/build/update_api.sh b/build/update_api.sh index a12256c..1d9b42a 100755 --- a/build/update_api.sh +++ b/build/update_api.sh @@ -1,6 +1,17 @@ #!/bin/bash -URL=`curl -s "https://update.code.visualstudio.com/api/update/win32-x64-archive/stable/VERSION" | jq -c '.url' | sed -E 's/.*"([^"]+)".*/\1/'` +export VSCODE_QUALITY="stable" + +while getopts ":ilp" opt; do + case "$opt" in + i) + export VSCODE_QUALITY="insider" + ;; + esac +done + + +URL=`curl -s "https://update.code.visualstudio.com/api/update/win32-x64-archive/${VSCODE_QUALITY}/VERSION" | jq -c '.url' | sed -E 's/.*"([^"]+)".*/\1/'` # echo "url: ${URL}" FILE=`echo "${URL}" | sed -E 's|.*/([^/]+\.zip)$|\1|'` # echo "file: ${FILE}" diff --git a/patches/report-issue.patch b/patches/report-issue.patch index 0a088aa..7cc6d6e 100644 --- a/patches/report-issue.patch +++ b/patches/report-issue.patch @@ -1,48 +1,80 @@ diff --git a/src/vs/code/electron-sandbox/issue/issueReporterMain.ts b/src/vs/code/electron-sandbox/issue/issueReporterMain.ts -index fcd4485..8d97e5a 100644 +index 33e66be..a7ade0a 100644 --- a/src/vs/code/electron-sandbox/issue/issueReporterMain.ts +++ b/src/vs/code/electron-sandbox/issue/issueReporterMain.ts -@@ -682,7 +682,7 @@ export class IssueReporter extends Disposable { +@@ -468,3 +468,3 @@ export class IssueReporter extends Disposable { + if (title) { +- this.searchDuplicates(title, issueDescription); ++ this.searchGitHub('VSCodium/vscodium', title); + } else { +@@ -556,33 +556,2 @@ export class IssueReporter extends Disposable { - sourceSelect.innerText = ''; +- @debounce(300) +- private searchDuplicates(title: string, body?: string): void { +- const url = 'https://vscode-probot.westus.cloudapp.azure.com:7890/duplicate_candidates'; +- const init = { +- method: 'POST', +- body: JSON.stringify({ +- title, +- body +- }), +- headers: new Headers({ +- 'Content-Type': 'application/json' +- }) +- }; +- +- window.fetch(url, init).then((response) => { +- response.json().then(result => { +- this.clearSearchResults(); +- +- if (result && result.candidates) { +- this.displaySearchResults(result.candidates); +- } else { +- throw new Error('Unexpected response, no candidates property'); +- } +- }).catch(_ => { +- // Ignore +- }); +- }).catch(_ => { +- // Ignore +- }); +- } +- + private displaySearchResults(results: SearchResult[]) { +@@ -674,3 +643,3 @@ export class IssueReporter extends Disposable { sourceSelect.append(this.makeOption('', localize('selectSource', "Select source"), true)); - sourceSelect.append(this.makeOption('vscode', localize('vscode', "Visual Studio Code"), false)); + sourceSelect.append(this.makeOption('vscode', localize('vscode', "VSCodium"), false)); sourceSelect.append(this.makeOption('extension', localize('extension', "An extension"), false)); - if (this.configuration.product.reportMarketplaceIssueUrl) { - sourceSelect.append(this.makeOption('marketplace', localize('marketplace', "Extensions marketplace"), false)); +diff --git a/src/vs/code/electron-sandbox/issue/issueReporterModel.ts b/src/vs/code/electron-sandbox/issue/issueReporterModel.ts +index a58acca..1903a0c 100644 +--- a/src/vs/code/electron-sandbox/issue/issueReporterModel.ts ++++ b/src/vs/code/electron-sandbox/issue/issueReporterModel.ts +@@ -77,3 +77,3 @@ ${this._data.issueDescription} + ${this.getExtensionVersion()} +-VS Code version: ${this._data.versionInfo && this._data.versionInfo.vscodeVersion} ++VSCodium version: ${this._data.versionInfo && this._data.versionInfo.vscodeVersion} + OS version: ${this._data.versionInfo && this._data.versionInfo.os} +diff --git a/src/vs/code/electron-sandbox/issue/issueReporterPage.ts b/src/vs/code/electron-sandbox/issue/issueReporterPage.ts +index 6467d66..d425016 100644 +--- a/src/vs/code/electron-sandbox/issue/issueReporterPage.ts ++++ b/src/vs/code/electron-sandbox/issue/issueReporterPage.ts +@@ -17,3 +17,3 @@ const reviewGuidanceLabel = localize( // intentionally not escaped because of it + comment: [ +- '{Locked=""}', ++ '{Locked=""}', + '{Locked=""}' +@@ -21,3 +21,3 @@ const reviewGuidanceLabel = localize( // intentionally not escaped because of it + }, +- 'Before you report an issue here please review the guidance we provide.' ++ 'Before you report an issue here please review the guidance we provide.' + ); diff --git a/src/vs/workbench/contrib/extensions/electron-sandbox/extensionsSlowActions.ts b/src/vs/workbench/contrib/extensions/electron-sandbox/extensionsSlowActions.ts -index 0c5855b..654f9a4 100644 +index 20154ad..bca59b8 100644 --- a/src/vs/workbench/contrib/extensions/electron-sandbox/extensionsSlowActions.ts +++ b/src/vs/workbench/contrib/extensions/electron-sandbox/extensionsSlowActions.ts -@@ -144,7 +144,7 @@ class ReportExtensionSlowAction extends Action { - - Extension Name: \`${this.extension.name}\` - - Extension Version: \`${this.extension.version}\` +@@ -148,3 +148,3 @@ class ReportExtensionSlowAction extends Action { - OS Version: \`${osVersion}\` -- VS Code version: \`${this._productService.version}\`\n\n${message}`); +- VSCodium version: \`${this._productService.version}\`\n\n${message}`); - const url = `${this.repoInfo.base}/${this.repoInfo.owner}/${this.repoInfo.repo}/issues/new/?body=${body}&title=${title}`; - this._openerService.open(URI.parse(url)); -diff --git a/src/vs/workbench/contrib/extensions/electron-sandbox/reportExtensionIssueAction.ts b/src/vs/workbench/contrib/extensions/electron-sandbox/reportExtensionIssueAction.ts -index f1755db..e77be21 100644 ---- a/src/vs/workbench/contrib/extensions/electron-sandbox/reportExtensionIssueAction.ts -+++ b/src/vs/workbench/contrib/extensions/electron-sandbox/reportExtensionIssueAction.ts -@@ -14,7 +14,7 @@ import { ExtensionType, IExtensionDescription } from 'vs/platform/extensions/com - import { IOpenerService } from 'vs/platform/opener/common/opener'; - import { URI } from 'vs/base/common/uri'; - --const builtinExtensionIssueUrl = 'https://github.com/microsoft/vscode'; -+const builtinExtensionIssueUrl = 'https://github.com/VSCodium/vscodium'; - - export class ReportExtensionIssueAction extends Action { - -@@ -76,7 +76,7 @@ export class ReportExtensionIssueAction extends Action { - - Extension Name: \`${extension.description.name}\` - - Extension Version: \`${extension.description.version}\` - - OS Version: \`${osVersion}\` --- VS Code version: \`${this.productService.version}\`\n\n${message}` -+- VSCodium version: \`${this.productService.version}\`\n\n${message}` - ); - - return `${baseUrl}${queryStringPrefix}body=${body}&title=${encodeURIComponent(title)}`; diff --git a/product.json b/product.json index d769b82..d3aa845 100644 --- a/product.json +++ b/product.json @@ -63,7 +63,6 @@ "notebookCellExecutionState", "notebookContentProvider", "notebookEditor", - "notebookEditorEdit", "notebookLiveShare", "notebookWorkspaceEdit", "terminalDimensions", @@ -74,7 +73,8 @@ "portsAttributes", "findTextInFiles", "workspaceTrust", - "resolvers" + "resolvers", + "tunnels" ], "ms-toolsai.vscode-ai-remote": [ "resolvers", @@ -85,13 +85,7 @@ "testObserver" ], "ms-dotnettools.dotnet-interactive-vscode": [ - "notebookCellExecutionState", - "notebookControllerKind", - "notebookDebugOptions", - "notebookEditor", - "notebookLiveShare", "notebookMessaging", - "notebookMime", "notebookWorkspaceEdit" ], "GitHub.codespaces": [ @@ -99,8 +93,8 @@ "contribMenuBarHome", "contribRemoteHelp", "contribViewsRemote", - "notebookEditor", "resolvers", + "tunnels", "terminalDataWriteEvent", "treeViewReveal" ], @@ -115,7 +109,9 @@ "contribMenuBarHome", "contribViewsRemote", "contribViewsWelcome", + "contribShareMenu", "documentFiltersExclusive", + "editSessionIdentityProvider", "extensionRuntime", "fileSearchProvider", "quickPickSortByLabel", @@ -132,16 +128,23 @@ ], "ms-vscode-remote.remote-ssh": [ "resolvers", + "tunnels", "terminalDataWriteEvent", "contribViewsRemote", "telemetry" ], "ms-vscode.remote-server": [ "resolvers", - "contribViewsRemote" + "tunnels" + ], + "ms-vscode.remote-explorer": [ + "contribViewsRemote", + "extensionsAny" ], "ms-vscode-remote.remote-containers": [ + "contribEditSessions", "resolvers", + "tunnels", "workspaceTrust", "terminalDimensions", "contribViewsRemote" @@ -150,7 +153,8 @@ "portsAttributes", "findTextInFiles", "workspaceTrust", - "resolvers" + "resolvers", + "tunnels" ], "ms-vscode.lsif-browser": [ "documentFiltersExclusive" @@ -184,26 +188,10 @@ "textSearchProvider", "timeline" ], - "GitHub.remotehub-insiders": [ - "contribRemoteHelp", - "contribMenuBarHome", - "contribViewsRemote", - "contribViewsWelcome", - "documentFiltersExclusive", - "extensionRuntime", - "fileSearchProvider", - "quickPickSortByLabel", - "workspaceTrust", - "scmSelectedProvider", - "scmValidation", - "textSearchProvider", - "timeline" - ], "ms-python.gather": [ "notebookCellExecutionState" ], "ms-python.vscode-pylance": [ - "notebookEditor", "notebookCellExecutionState" ], "ms-toolsai.jupyter": [ @@ -226,7 +214,8 @@ "notebookCellExecutionState" ], "ms-vscode.azure-sphere-tools-ui": [ - "resolvers" + "resolvers", + "tunnels" ], "ms-azuretools.vscode-azureappservice": [ "terminalDataWriteEvent"