Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Dec 12, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

markijbema and others added 14 commits December 11, 2025 17:18
When the inline completion provider suggests text that adds to the current
line (suggestion doesn't start with newline), only show the first line.
VSCode will request the rest on subsequent completions.

The full suggestion is shown when:
- The suggestion starts with a newline (inserting a new line)
- The current line is only whitespace (cursor on empty/indented line)

This improves the UX by not overwhelming users with multi-line suggestions
when they're typing in the middle of existing code.
When at the start of a line (only whitespace before cursor), show only
the first line if the suggestion is 3 or more lines. This provides a
better UX by showing smaller chunks that can be accepted incrementally.

- Added countLines() helper function
- Updated shouldShowOnlyFirstLine() to check line count when at start of line
- Added comprehensive tests for the new behavior
…o findMatchingSuggestion

- Add applyFirstLineOnlyIfNeeded() helper function
- Apply first-line truncation in findMatchingSuggestion for all match types
- Remove prefix parameter from stringToInlineCompletions
- Update tests to reflect the new location of the logic
- Add applyFirstLineOnly() function that transforms findMatchingSuggestion results
- findMatchingSuggestion() now returns raw (non-truncated) multi-line suggestions
- Apply transformation at call sites in provideInlineCompletionItems_Internal
- Update tests to reflect the separation of concerns
- ghost-provider-tester can now see full suggestions without truncation
feat: show only first line of completion when adding to current line
* feat(cli): add ESC key as alternative to cancel streaming tasks

* Fix tests
…ing) (#4416)

* Fix memory leaks in CLI

* Fix review notes
@pull pull bot locked and limited conversation to collaborators Dec 12, 2025
@pull pull bot added the ⤵️ pull label Dec 12, 2025
@pull pull bot merged commit 026da65 into jasonkneen:main Dec 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants