Skip to content

Commit

Permalink
Provide log warning when used vscode version differs from 'latest' ve…
Browse files Browse the repository at this point in the history
…rsion (#636)

Signed-off-by: Dominik Jelinek <[email protected]>
  • Loading branch information
djelinek authored Feb 17, 2023
1 parent dbd482c commit 9cfc61e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/util/codeUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ export class CodeUtil {
await this.checkCodeVersion(version);

const literalVersion = version === 'latest' ? this.availableVersions[0] : version;
if(this.releaseType == ReleaseQuality.Stable && literalVersion !== this.availableVersions[0]) {
console.log(`
WARNING: You are using the outdated VSCode version '${literalVersion}'. The latest stable version is '${this.availableVersions[0]}'.
`);
}

console.log(`Downloading VSCode: ${literalVersion} / ${this.releaseType}`);
if (!fs.existsSync(this.executablePath) || await this.getExistingCodeVersion() !== literalVersion) {
fs.mkdirpSync(this.downloadFolder);
Expand Down

0 comments on commit 9cfc61e

Please sign in to comment.