From c54d7f8c42c9cc28c8221add6efdeaf94d914acc Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Thu, 18 Jun 2026 23:25:44 +0200 Subject: [PATCH 1/4] Disable `process.report` --- extensions/copilot/package-lock.json | 4 ++-- extensions/copilot/package.json | 2 +- .../extension/vscode-node/disableProcessReport.ts | 10 ++++++++++ .../src/extension/extension/vscode-node/extension.ts | 3 +++ 4 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 extensions/copilot/src/extension/extension/vscode-node/disableProcessReport.ts diff --git a/extensions/copilot/package-lock.json b/extensions/copilot/package-lock.json index 430b2586289751..27629ad252eeea 100644 --- a/extensions/copilot/package-lock.json +++ b/extensions/copilot/package-lock.json @@ -1,12 +1,12 @@ { "name": "copilot-chat", - "version": "0.53.0", + "version": "0.53.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "copilot-chat", - "version": "0.53.0", + "version": "0.53.1", "hasInstallScript": true, "license": "SEE LICENSE IN LICENSE.txt", "dependencies": { diff --git a/extensions/copilot/package.json b/extensions/copilot/package.json index 841a8a538bff7f..e8815f3d1a5c4e 100644 --- a/extensions/copilot/package.json +++ b/extensions/copilot/package.json @@ -2,7 +2,7 @@ "name": "copilot-chat", "displayName": "GitHub Copilot Chat", "description": "AI chat features powered by Copilot", - "version": "0.53.0", + "version": "0.53.1", "build": "1", "completionsCoreVersion": "1.378.1799", "internalLargeStorageAriaKey": "ec712b3202c5462fb6877acae7f1f9d7-c19ad55e-3e3c-4f99-984b-827f6d95bd9e-6917", diff --git a/extensions/copilot/src/extension/extension/vscode-node/disableProcessReport.ts b/extensions/copilot/src/extension/extension/vscode-node/disableProcessReport.ts new file mode 100644 index 00000000000000..f6b63023a2f9f3 --- /dev/null +++ b/extensions/copilot/src/extension/extension/vscode-node/disableProcessReport.ts @@ -0,0 +1,10 @@ +/*--------------------------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + *--------------------------------------------------------------------------------------------*/ + +Object.defineProperty(process, 'report', { + configurable: true, + writable: true, + value: undefined +}); diff --git a/extensions/copilot/src/extension/extension/vscode-node/extension.ts b/extensions/copilot/src/extension/extension/vscode-node/extension.ts index 053b2a4a4e821a..8b802b6db7aae9 100644 --- a/extensions/copilot/src/extension/extension/vscode-node/extension.ts +++ b/extensions/copilot/src/extension/extension/vscode-node/extension.ts @@ -3,6 +3,9 @@ * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ +// Must be the first import to ensure it evaluates before other imports. +import './disableProcessReport'; + import { ExtensionContext } from 'vscode'; import { resolve } from '../../../util/vs/base/common/path'; import { baseActivate } from '../vscode/extension'; From 52b8f96ee208f34e10713bf42151440db0316a18 Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Thu, 18 Jun 2026 23:41:53 +0200 Subject: [PATCH 2/4] Try to make the patch more friendly and fail-safe --- .../vscode-node/disableProcessReport.ts | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/extensions/copilot/src/extension/extension/vscode-node/disableProcessReport.ts b/extensions/copilot/src/extension/extension/vscode-node/disableProcessReport.ts index f6b63023a2f9f3..f4f14b4a7f9405 100644 --- a/extensions/copilot/src/extension/extension/vscode-node/disableProcessReport.ts +++ b/extensions/copilot/src/extension/extension/vscode-node/disableProcessReport.ts @@ -3,8 +3,15 @@ * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ -Object.defineProperty(process, 'report', { - configurable: true, - writable: true, - value: undefined -}); +if (process.report) { + try { + Object.defineProperty(process.report, 'getReport', { + value: undefined, + writable: true, + configurable: true, + enumerable: true + }); + } catch (err) { + + } +} From 95c3c4db6d39f35bfb14d5dc894b6f913009ddca Mon Sep 17 00:00:00 2001 From: deepak1556 Date: Fri, 19 Jun 2026 06:54:55 +0900 Subject: [PATCH 3/4] ci: add npm registry information for chat recovery pipeline --- build/azure-pipelines/product-copilot-recovery.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build/azure-pipelines/product-copilot-recovery.yml b/build/azure-pipelines/product-copilot-recovery.yml index a0c52e68302470..6ad5ac420b7caf 100644 --- a/build/azure-pipelines/product-copilot-recovery.yml +++ b/build/azure-pipelines/product-copilot-recovery.yml @@ -16,6 +16,10 @@ parameters: displayName: Custom NPM Registry (Terrapin) type: boolean default: true + - name: NPM_REGISTRY + displayName: Custom NPM Registry URL + type: string + default: 'https://pkgs.dev.azure.com/monacotools/Monaco/_packaging/vscode/npm/registry/' - name: publishExtension displayName: Publish Stable Recovery Extension type: boolean @@ -31,6 +35,7 @@ extends: workingDirectory: ./extensions/copilot l10nSourcePaths: ./extensions/copilot/src nodeVersion: 22.21.x + NPM_REGISTRY: ${{ parameters.NPM_REGISTRY }} cgIgnoreDirectories: $(Build.SourcesDirectory)/extensions/copilot/script @@ -80,6 +85,7 @@ extends: ${{ if eq(parameters.customNPMRegistry, false) }}: customNPMRegistry: '' + NPM_REGISTRY: none generateNotice: true From 6297f0f5d2f3063f7c1bed3f64efb97fce7d9f12 Mon Sep 17 00:00:00 2001 From: deepak1556 Date: Fri, 19 Jun 2026 07:01:40 +0900 Subject: [PATCH 4/4] ci:fix template parameter --- build/azure-pipelines/product-copilot-recovery.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/build/azure-pipelines/product-copilot-recovery.yml b/build/azure-pipelines/product-copilot-recovery.yml index 6ad5ac420b7caf..5c184c525e17fa 100644 --- a/build/azure-pipelines/product-copilot-recovery.yml +++ b/build/azure-pipelines/product-copilot-recovery.yml @@ -28,6 +28,11 @@ parameters: variables: - name: VSCODE_QUALITY value: stable + - name: NPM_REGISTRY + ${{ if eq(parameters.customNPMRegistry, true) }}: + value: ${{ parameters.NPM_REGISTRY }} + ${{ else }}: + value: none extends: template: azure-pipelines/extension/stable.yml@templates @@ -35,7 +40,6 @@ extends: workingDirectory: ./extensions/copilot l10nSourcePaths: ./extensions/copilot/src nodeVersion: 22.21.x - NPM_REGISTRY: ${{ parameters.NPM_REGISTRY }} cgIgnoreDirectories: $(Build.SourcesDirectory)/extensions/copilot/script @@ -85,7 +89,6 @@ extends: ${{ if eq(parameters.customNPMRegistry, false) }}: customNPMRegistry: '' - NPM_REGISTRY: none generateNotice: true