Skip to content

Commit

Permalink
Add current target version and officially supported version (#18)
Browse files Browse the repository at this point in the history
* Add current target version
* Add officially supported version

fixed #17

Signed-off-by: Jonas Helming <[email protected]>
  • Loading branch information
JonasHelming authored Mar 21, 2022
1 parent f6174e5 commit 7988404
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/grab-vscode-versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ export class GrabVSCodeVersions {

static readonly VSCODE_URL_PATTERN_PRE_1_63 = 'https://raw.githubusercontent.com/Microsoft/vscode/${VERSION}/src/vs/vscode.d.ts';
static readonly VSCODE_URL_PATTERN = 'https://raw.githubusercontent.com/Microsoft/vscode/${VERSION}/src/vscode-dts/vscode.d.ts';
// Version that is officially supported
static readonly CURRENT_REFERENCE_VERSION = '1.53.2';
// Target version that will be officially supported next
static readonly CURRENT_REFERENCE_TARGET_VERSION = '1.55.2';

private readonly content = new Content();

Expand Down Expand Up @@ -70,10 +74,19 @@ export class GrabVSCodeVersions {
versions.push(currVersion);
}
});

// keep only the last 4 versions
versions.length = 4;

// add main version
versions.unshift('main');

// keep only 5 versions
versions.length = 5;
// add current reference target version
versions.push(GrabVSCodeVersions.CURRENT_REFERENCE_TARGET_VERSION);

// add current reference version
versions.push(GrabVSCodeVersions.CURRENT_REFERENCE_VERSION);

return versions;
}

Expand Down

0 comments on commit 7988404

Please sign in to comment.