Skip to content

Commit 0b8cdac

Browse files
authored
rewriteManifest did not actually rewrite package (#1423)
1 parent 698d1e4 commit 0b8cdac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Extension/src/main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ function checkDistro(channel: vscode.OutputChannel, platformInfo: PlatformInform
434434
}
435435
}
436436

437-
function rewriteManifest(installBlob: InstallBlob): void {
437+
function rewriteManifest(installBlob: InstallBlob): Promise<void> {
438438
installBlob.stage = "rewriteManifest";
439439

440440
// Replace activationEvents with the events that the extension should be activated for subsequent sessions.
@@ -459,4 +459,6 @@ function rewriteManifest(installBlob: InstallBlob): void {
459459
"onCommand:C_Cpp.TakeSurvey",
460460
"onDebug"
461461
];
462+
463+
return util.writeFileText(util.getPackageJsonPath(), util.getPackageJsonString());
462464
}

0 commit comments

Comments
 (0)