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

support fileDirname variable in roots configuration #31

Merged
merged 1 commit into from
Jun 1, 2020

Conversation

itaysk
Copy link
Contributor

@itaysk itaysk commented May 25, 2020

opa.roots already supports the conventional ${workspaceFolder} built-in variable. This PR adds another conventional and useful variable: ${fileDirname} which is resolved with the directory of the file opened in the active window. This was also mentioned in #27 where a user intuitively tried to use this but the extension didn't support it then.

for reference: https://code.visualstudio.com/docs/editor/variables-reference

@patrick-east
Copy link
Contributor

Changes LGTM, please update the commit to fix the DCO check https://github.com/open-policy-agent/vscode-opa/pull/31/checks?check_run_id=705346889 and add a node into the README to document that we support it (as-is we only mention the workspaceFolder)

@itaysk itaysk force-pushed the root-filedirname branch from f1eb429 to 2b72db9 Compare May 27, 2020 08:02
@itaysk
Copy link
Contributor Author

itaysk commented May 27, 2020

thanks @patrick-east . please see now

README.md Outdated Show resolved Hide resolved
@itaysk itaysk force-pushed the root-filedirname branch from 35ec62e to 45660a9 Compare May 29, 2020 08:03
@patrick-east
Copy link
Contributor

@itaysk Go ahead and squash the changes when you have a chance

@itaysk itaysk force-pushed the root-filedirname branch from 45660a9 to f6d6516 Compare May 29, 2020 18:02
@itaysk
Copy link
Contributor Author

itaysk commented May 29, 2020

@patrick-east squashed

@tsandall tsandall merged commit b511634 into open-policy-agent:master Jun 1, 2020
@itaysk itaysk deleted the root-filedirname branch June 1, 2020 15:07
@itaysk
Copy link
Contributor Author

itaysk commented Jun 8, 2020

is there a plan to cut a release sometime soon? the last release was a long time ago

@tsandall
Copy link
Member

tsandall commented Jun 8, 2020

I can cut a release today.

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