zls
zls copied to clipboard
Add semicolon when it's missing
Closes #1475
Probably needs some fuzzing and manual testing but this is it!
I wonder if applying multiple autofixes at once would be desirable as now this can happen pretty easily (see var a = 1, which adds a ; on the first save and then an unused discard on the second.)
Anyways back to my job I go! 🏃♂️
Is this something anyone actually wants? Not sure if it's useful
If this feature has no false-positives then it wouldn't hurt, right?
Codecov Report
Attention: Patch coverage is 20.00000% with 16 lines in your changes are missing coverage. Please review.
Project coverage is 78.57%. Comparing base (
d034594) to head (0051998). Report is 1 commits behind head on master.
| Files | Patch % | Lines |
|---|---|---|
| src/features/code_actions.zig | 0.00% | 8 Missing :warning: |
| src/features/diagnostics.zig | 27.27% | 8 Missing :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## master #1476 +/- ##
==========================================
- Coverage 78.69% 78.57% -0.13%
==========================================
Files 34 34
Lines 10560 10584 +24
==========================================
+ Hits 8310 8316 +6
- Misses 2250 2268 +18
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.