diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-15 21:19:17 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-08-15 21:19:17 -0400 |
| commit | d3a4ffbd465f1f959738cc990b1fbe55fea37ddf (patch) | |
| tree | ee0819c3cd65f479b60e1f04abdf3d7c1835b5b5 /editors | |
| parent | 34e3bad043b1a98534863d66233f2e7411c51a6a (diff) | |
Copy the users ols.json to the new folder when updating the binary with vscode
Diffstat (limited to 'editors')
| -rw-r--r-- | editors/vscode/src/extension.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editors/vscode/src/extension.ts b/editors/vscode/src/extension.ts index 8b05455..4b9ea44 100644 --- a/editors/vscode/src/extension.ts +++ b/editors/vscode/src/extension.ts @@ -426,6 +426,9 @@ async function checkForUpdates(config: Config, state: PersistentState, required: fs.chmod(latestExecutable, 0o755); } + const prevFolder = getDestFolder(config, state.releaseId) + await fs.copyFile(`${prevFolder}/ols.json`, `${latestDestFolder}/ols.json`) + await state.updateServerVersion(config.package.version); await state.updateReleaseId(release.id); await state.updateLastCheck(Date.now()); |