From f02661a4721e4ca95dbd9ca3894bd8b3ecdeb401 Mon Sep 17 00:00:00 2001 From: Colen Garoutte-Carson <49173979+Colengms@users.noreply.github.com> Date: Wed, 18 Aug 2021 14:14:13 -0700 Subject: [PATCH] Fix rewrite of updateChannel for remote VS Code insiders (#8003) --- Extension/src/main.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Extension/src/main.ts b/Extension/src/main.ts index 5a46e332a3..dfa8b8ff6c 100644 --- a/Extension/src/main.ts +++ b/Extension/src/main.ts @@ -425,7 +425,10 @@ async function finalizeExtensionActivation(): Promise { const packageJson: any = util.getRawPackageJson(); let writePackageJson: boolean = false; const packageJsonPath: string = util.getExtensionFilePath("package.json"); - if (packageJsonPath.includes(".vscode-insiders") || packageJsonPath.includes(".vscode-exploration")) { + if (packageJsonPath.includes(".vscode-insiders") || + packageJsonPath.includes(".vscode-server-insiders") || + packageJsonPath.includes(".vscode-exploration") || + packageJsonPath.includes(".vscode-server-exploration")) { if (packageJson.contributes.configuration.properties['C_Cpp.updateChannel'].default === 'Default') { packageJson.contributes.configuration.properties['C_Cpp.updateChannel'].default = 'Insiders'; writePackageJson = true;