Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added current target version #18

Merged
merged 2 commits into from
Mar 21, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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';
vince-fugnitto marked this conversation as resolved.
Show resolved Hide resolved

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