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: expand ${workspaceFolder} in nargoPath setting #91

Merged
merged 2 commits into from
Jan 8, 2025

Conversation

asterite
Copy link
Contributor

@asterite asterite commented Jan 6, 2025

Description

Problem

Asked by Palla, it seems it'll be useful to use in Aztec-Packages.

Summary

VSCode doesn't automatically expand variables in settings so some plugins do it. There's no convention about which names to use but at least the cmake plugin uses workspaceFolder for the workspace folder, and that's probably the most useful one to have to configure nargo relative to it... so that's just what this PR does.

Additional Context

After merging this PR we'd probably need a new release so it can be used.

PR Checklist

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt on default settings.

@asterite asterite requested review from TomAFrench and a team and removed request for TomAFrench January 6, 2025 19:45
Copy link
Member

@TomAFrench TomAFrench left a comment

Choose a reason for hiding this comment

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

🤷 I'm assuming you've tested this manually and in that case I'm fine with it.

@asterite
Copy link
Contributor Author

asterite commented Jan 8, 2025

Yes! I tried it locally by placing a nargo binary inside Aztec-Packages/noir-projects, configuring nargoPath to be ${workspaceFolder}/nargo, then opening noir-projects in VSCode.

@asterite asterite merged commit cf4b161 into master Jan 8, 2025
4 checks passed
@asterite asterite deleted the ab/expand-variables-in-nargo-path branch January 8, 2025 11:54
@github-actions github-actions bot mentioned this pull request Jan 8, 2025
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.

2 participants