Skip to content

Auto-insert semicolon for simple variable declarations#499

Merged
waf merged 1 commit into
mainfrom
auto-insert-semicolon
Jun 26, 2026
Merged

Auto-insert semicolon for simple variable declarations#499
waf merged 1 commit into
mainfrom
auto-insert-semicolon

Conversation

@waf

@waf waf commented Jun 26, 2026

Copy link
Copy Markdown
Owner

If the user types e.g.

var x = 5

without the semicolon, insert the semicolon for them. It only inserts on variable declarations that are on a single line.

Contains a PrettyPrompt upgrade to 6.0.3 as we needed improved autoformatting behavior to implement this feature.

@codecov

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.6%. Comparing base (37f9d5d) to head (1e0c9f0).

Additional details and impacted files
@@           Coverage Diff           @@
##            main    #499     +/-   ##
=======================================
+ Coverage   79.4%   79.6%   +0.1%     
=======================================
  Files        125     126      +1     
  Lines       9358    9383     +25     
  Branches    1395    1400      +5     
=======================================
+ Hits        7437    7470     +33     
+ Misses      1435    1427      -8     
  Partials     486     486             

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@waf waf merged commit 619feed into main Jun 26, 2026
3 checks passed
@waf waf deleted the auto-insert-semicolon branch June 26, 2026 16:05
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.

Don't require a trailing semicolon for a complete single statement other than an expression

1 participant