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

Resolve internal variables in formatter arguments #1171

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zandivx
Copy link

@zandivx zandivx commented Jan 31, 2025

Currently, VS Code variables like ${workspaceFolder} are not expanded in the arguments provided to the selected formatter. As this functionality is already implemented in this project and applied at several places, it's no effort to apply it to the arguments for the formatter as well.

@krystophny
Copy link

Thanks @zandivx ! This enables the use of a .fprettify file in the workspace folder

    "fortran.formatting.fprettifyArgs": [
        "--config",
        "${workspaceFolder}/.fprettify"
    ],

@gnikit this is a small change that is very useful, if you find time we would be very grateful if you could review this.

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