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

VSCode: Move Scarb searching logic to the Scarb class #5012

Merged
merged 1 commit into from
Feb 13, 2024
Merged

Conversation

@mkaput mkaput requested a review from orizi February 6, 2024 10:30
Copy link
Collaborator

@Arcticae Arcticae left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @mkaput and @orizi)


vscode-cairo/src/cairols.ts line 200 at r1 (raw file):

      scarb = await Scarb.find(workspaceFolder, ctx);
    } catch (e) {
      ctx.log.error(`${e}`);

obsolete interpolation


vscode-cairo/src/scarb.ts line 34 at r1 (raw file):

    async function findPath(): Promise<string> {
      // TODO(mkaput): Config should probably be scoped to workspace folder.
      // Check config for scarb path.

I'd use 3 functions instead of those comments and do return fromConfig() || fromPath() || fromEnv()

@mkaput mkaput force-pushed the spr/main/5ffc097f branch 2 times, most recently from 00a55bd to b070fd3 Compare February 12, 2024 07:12
@mkaput mkaput changed the base branch from spr/main/5ffc097f to spr/main/a58e04a6 February 12, 2024 07:22
Copy link
Contributor Author

@mkaput mkaput left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @Arcticae and @orizi)


vscode-cairo/src/cairols.ts line 200 at r1 (raw file):

Previously, Arcticae (Tomasz Rejowski) wrote…

obsolete interpolation

This is the only way I know to make TypeScript happy. ctx.log.error(msg: string), while e: unknown, so I cannot call .toString()

Copy link
Contributor Author

@mkaput mkaput left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @Arcticae and @orizi)


vscode-cairo/src/scarb.ts line 34 at r1 (raw file):

Previously, Arcticae (Tomasz Rejowski) wrote…

I'd use 3 functions instead of those comments and do return fromConfig() || fromPath() || fromEnv()

Done.

Copy link
Collaborator

@Arcticae Arcticae left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @orizi)

Copy link
Collaborator

@orizi orizi left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 2 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @mkaput)

Base automatically changed from spr/main/a58e04a6 to main February 13, 2024 10:55
@mkaput mkaput added this pull request to the merge queue Feb 13, 2024
Merged via the queue into main with commit a015ebe Feb 13, 2024
44 checks passed
@mkaput mkaput deleted the spr/main/c0872618 branch February 13, 2024 11:14
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