Skip to content

Adds line param to unsetVerticalIndent - #41

Merged
dingfeli merged 20 commits into
mainfrom
fix-vertical-indent-unset
Sep 27, 2024
Merged

Adds line param to unsetVerticalIndent#41
dingfeli merged 20 commits into
mainfrom
fix-vertical-indent-unset

Conversation

@dingfeli

Copy link
Copy Markdown
Contributor

Premise

In order to show the ghost text from a given suggestion without having it overlapped with user buffer thereafter, the line at which the suggestion was triggered needs to be indented vertically to make space for the suggestion ghost text. This was done in this change: #31.

Upon termination of preview, this vertical indent would need to be unset to revert the text widget back to its original state.

Description of changes:
The following changes were made in this PR. These changes were made based on the changes in #37:

  • Adds param to unsetVerticalndent to specify the line number to which the operation is done (previously this was always the line below the current line the caret is on).

Test

Before:
before

After:
after

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@breedloj

Copy link
Copy Markdown
Contributor

Changes look good, but please merge main in to make sure Checkstyle successfully runs before merging.

@dingfeli
dingfeli changed the base branch from refactor-input-listener-for-inline to main September 27, 2024 22:41
@dingfeli
dingfeli merged commit 524d4b4 into main Sep 27, 2024
@dingfeli
dingfeli deleted the fix-vertical-indent-unset branch September 27, 2024 22:59
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.

2 participants