Skip to content

Commit

Permalink
Added current target version
Browse files Browse the repository at this point in the history
fixed #17

Signed-off-by: Jonas Helming <[email protected]>
  • Loading branch information
JonasHelming authored Mar 21, 2022
1 parent f6174e5 commit 3427ef9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/grab-vscode-versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ 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';
static readonly CURRENT_REFERENCE_TARGET_VERSION = '1.55.2';

private readonly content = new Content();

Expand Down Expand Up @@ -70,10 +71,16 @@ 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);

return versions;
}

Expand Down

0 comments on commit 3427ef9

Please sign in to comment.