Skip to content

Preserve whitespace after the colon in value completions - #145

Merged
jdesrosiers merged 1 commit into
mainfrom
fix-value-completion-whitespace
Oct 11, 2026
Merged

jdesrosiers merged 1 commit into
mainfrom
fix-value-completion-whitespace

Conversation

@jdesrosiers

Copy link
Copy Markdown
Collaborator

The value completion range started right after the colon, so whitespace between the colon and the cursor (such as the space inserted by a property completion) was replaced without adding a space back. The range now starts at the first non-whitespace character after the colon, and the leading space is only added when the range starts directly after a colon or comma.

The value completion range started right after the colon, so whitespace
between the colon and the cursor (such as the space inserted by a property
completion) was replaced without adding a space back. The range now starts
at the first non-whitespace character after the colon, and the leading
space is only added when the range starts directly after a colon or comma.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jdesrosiers
jdesrosiers merged commit 00f8bf5 into main Oct 11, 2026
6 checks passed
@jdesrosiers
jdesrosiers deleted the fix-value-completion-whitespace branch October 11, 2026 17:57
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.

1 participant