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

Suggestion text leading whitespace appears to be indented incorrectly #283

Closed
dingfeli opened this issue Dec 3, 2024 · 0 comments
Closed
Assignees
Labels
bug Something isn't working high priority

Comments

@dingfeli
Copy link
Contributor

dingfeli commented Dec 3, 2024

Describe the bug
On windows, multi-line suggestions would sometimes be indented incorrectly:
image

But after acceptance, the indents would once again look normal:
image

To Reproduce

  1. On Windows, any version of eclipse, trigger an inline suggestion that has multiple lines in a file that indents with tabs.
  2. Observe where the lines subsequent to first line is not indented correctly.
  3. Accept said multi-line suggestion.
  4. Observe that the placement of the suggestion ghost text is not representative of inserted text in terms of placement.

Expected behavior
The placement of the suggestion ghost text should be representative to that of the user buffer in the editor.

Screenshots
See description.

Your Environment:

  • OS: Windows 10
  • Eclipse product (EE, C++, etc): EE
  • Eclipse product version: 2024-09 (4.33.0), build 20240905-0614
  • Amazon Q for Eclipse plugin version: 55bba2a
  • JVM version: 22

Additional context
The aforementioned display discrepancy only occurs in files that use tab for indent.

@dingfeli dingfeli added the bug Something isn't working label Dec 3, 2024
@breedloj breedloj added good first issue Good for newcomers and removed good first issue Good for newcomers labels Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high priority
Projects
None yet
Development

No branches or pull requests

2 participants