Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't include trailing whitespace in code action title
The previous regex included trailing whitespace, including newline character, in the match. This meant the code action title (shown to users to trigger the action) had that trailing whitespace and newline. This version of the regex uses a lookahead to check the `=` is followed by the end of the string or by whitespace and then the end of the string. (I.e. that the addition doesn't already have a sum.) The values in the lookahead aren't included in the match groups. The trigger is only shown when users hover
- Loading branch information