Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AAP-37422: Empty line at the top of the file break completion #1724

Conversation

goneri
Copy link
Contributor

@goneri goneri commented Dec 13, 2024

When the first line of the document is empty, the line is removed from the documentLines
array because of the early trim() call.
As a consequence, the promptLine value is incorrect and not completion is never triggered.
This PR address the problem.

See: c5b208d

When the first line of the document is empty, the line is removed from the `documentLines`
array because of the early `trim()` call.
As a consequence, the `promptLine` value is incorrect and not completion is never triggered.
This PR address the problem.

See: c5b208d
Copy link
Contributor

@manstis manstis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@goneri goneri enabled auto-merge (rebase) December 16, 2024 14:08
@goneri goneri merged commit 5df1782 into main Dec 16, 2024
16 of 17 checks passed
@goneri goneri deleted the goneri/AAP-37422-Empty-line-at-the-top-of-the-file-break-completion_9706 branch December 16, 2024 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants