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

Fix: substitule "${workspaceFolder}" in need install check #243

Merged
merged 2 commits into from
Nov 7, 2021
Merged

Fix: substitule "${workspaceFolder}" in need install check #243

merged 2 commits into from
Nov 7, 2021

Conversation

XuehaiPan
Copy link
Contributor

@XuehaiPan XuehaiPan commented Nov 6, 2021

I have set shellformat.path with ${workspaceFolder} in my settings since PR #228. However, after the extension has been loaded, the extension still downloads a shfmt program and replaces my executable, cause checkNeedInstall uses the raw path string from the settings.

The formatter works fine when I replace back my own shfmt executable. This PR fixes the extension replaces user's custom shfmt if the path contains "${workspaceFolder}".

@XuehaiPan XuehaiPan changed the title Fix: allow absolute paths for tools Fix: substitule "${workspaceFolder}" in need install check Nov 7, 2021
@foxundermoon foxundermoon merged commit bc56a8e into foxundermoon:master Nov 7, 2021
foxundermoon added a commit that referenced this pull request Nov 7, 2021
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.

None yet

2 participants