-
Notifications
You must be signed in to change notification settings - Fork 132
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: do not overwrite user-provided shellcheck --shell
(#1064)
#1133
Conversation
Any updates on this, I have the same issue (the LSP doesn't load on zsh shebangs) |
This PR should be an okay workaround, but we should already infer the shell name based on the file name and the shebang. Can you come with an example file where this doesn't work as intended? |
That's exactly the problem. If the file is inferred to be a zsh file, To force shellcheck to work with zsh files, you need to explicitly pass |
Thanks, that makes sense. I see that we actually fall back to using |
Sorry for the delay here... |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1133 +/- ##
==========================================
+ Coverage 81.09% 81.13% +0.03%
==========================================
Files 29 29
Lines 1439 1442 +3
Branches 342 343 +1
==========================================
+ Hits 1167 1170 +3
Misses 218 218
Partials 54 54 ☔ View full report in Codecov by Sentry. |
@skovhus Sorry to bother you again, but it seems this PR did not fix the issue. The problem described in #1064 still occurs, and shellcheck does not become active in a zsh file, even if passing |
This is an attempt to fix #1064. I am really not familiar with the inner working of LSPs, but the fix appears to be simple enough, if I am not mistaken here.