-
Notifications
You must be signed in to change notification settings - Fork 490
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
Conversation
1192706
to
d348a26
Compare
43f03d8
to
003f150
Compare
d348a26
to
1e11c58
Compare
003f150
to
c174370
Compare
1e11c58
to
61fa7e6
Compare
c174370
to
4d2cbf8
Compare
There was a problem hiding this 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()
4d2cbf8
to
fc16ac0
Compare
00a55bd
to
b070fd3
Compare
fc16ac0
to
b5ec693
Compare
b070fd3
to
872e7dc
Compare
b5ec693
to
64ed1f3
Compare
1e63307
to
327008d
Compare
64ed1f3
to
79c37b2
Compare
There was a problem hiding this 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()
There was a problem hiding this 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.
79c37b2
to
6cbfdcc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @orizi)
6cbfdcc
to
ffbfe51
Compare
4d64df7
to
f22c8ab
Compare
ffbfe51
to
9425529
Compare
f22c8ab
to
0df5181
Compare
9425529
to
7eca755
Compare
0df5181
to
372210c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 2 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @mkaput)
commit-id:c0872618
7eca755
to
c8c13c7
Compare
Stack:
isScarbProject
logic to separate file #5015StandaloneLS
class #5013Scarb
class #5012 ⬅Config
class #4976Scarb
class and move Scarb's LS discovery there #4974This change is