Skip to content

Commit

Permalink
Fix rewrite of updateChannel for remote VS Code insiders (#8003)
Browse files Browse the repository at this point in the history
  • Loading branch information
Colengms authored Aug 18, 2021
1 parent 1ed9602 commit f02661a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Extension/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,10 @@ async function finalizeExtensionActivation(): Promise<void> {
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;
Expand Down

0 comments on commit f02661a

Please sign in to comment.