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

feat: use cli ls extension [IDE-76] #551

Merged
merged 26 commits into from
Nov 11, 2024
Merged

feat: use cli ls extension [IDE-76] #551

merged 26 commits into from
Nov 11, 2024

Conversation

ShawkyZ
Copy link
Contributor

@ShawkyZ ShawkyZ commented Oct 28, 2024

Description

  • Remove LS Path from configuration and settings.
  • Download CLI instead of LS.
  • Run LS from CLI LS extension.
  • Added CLI Release Channels.
  • Added CLI base download URL.

Checklist

  • Tests added and all succeed
  • Linted
  • CHANGELOG.md updated
  • README.md updated, if user-facing

Screenshots / GIFs

Visuals that may help the reviewer. Please add screenshots for any UI change. GIFs are most welcome!

@ShawkyZ ShawkyZ changed the title feat: wip use cli ls extension feat: use cli ls extension Oct 28, 2024
@ShawkyZ ShawkyZ marked this pull request as ready for review October 29, 2024 15:24
@ShawkyZ ShawkyZ requested a review from a team as a code owner October 29, 2024 15:24
@bastiandoetsch bastiandoetsch added the ⚠️ DON'T MERGE Shouldn't be merged yet. label Oct 30, 2024
@ShawkyZ ShawkyZ changed the title feat: use cli ls extension feat: use cli ls extension [IDE-76] Nov 4, 2024
private getLsChecksum(): number | undefined {
return this.extensionContext.getGlobalStateValue<number>(MEMENTO_LS_CHECKSUM);
private getCliChecksum(): string | undefined {
return this.extensionContext.getGlobalStateValue<string>(MEMENTO_CLI_CHECKSUM);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick(non-blocking): We should probably clean up the old mementos

test('Download of LS fails if platform is not supported', async () => {
const downloader = new Downloader(configuration, lsApi, windowMock, logger);
sinon.stub(LsExecutable, 'getCurrentWithArch').throws(new Error());
test('Download of CLI fails if platform is not supported', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: test for the protocol version would be neat.

@ShawkyZ ShawkyZ merged commit 3a41a25 into main Nov 11, 2024
10 checks passed
@ShawkyZ ShawkyZ deleted the feat/use-cli-ls-extension branch November 11, 2024 14:42
@ShawkyZ ShawkyZ removed the ⚠️ DON'T MERGE Shouldn't be merged yet. label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants