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

Word Wrap feature not working correctly #163466

Closed
mkhlz opened this issue Oct 12, 2022 · 8 comments
Closed

Word Wrap feature not working correctly #163466

mkhlz opened this issue Oct 12, 2022 · 8 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) editor-wrapping Editor line wrapping issues info-needed Issue requires more information from poster

Comments

@mkhlz
Copy link

mkhlz commented Oct 12, 2022

Type: Bug

Make a simple text file with lorem ipsum verbiage and fill a paragraph. Turn on word wrap feature. Keep lines at 70 characters. Shorten the viewport to overflow the line character limit. Now pick any random line and place a few characters at the end of the line. If the line ends with a set of continuous characters (NOT carriage return, example a word or a stream of dots or dashes) the wrapping hides the left side of the viewport by a few pixels

VS Code version: Code 1.71.2 (74b1f97, 2022-09-14T21:03:37.738Z)
OS version: Windows_NT x64 10.0.19044
Modes:
Sandboxed: No

@vscodenpa
Copy link

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.72.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

@alexdima
Copy link
Member

@mkhlz Could you please share sample text and a screenshot demonstrating the problem? Have you tried editor.wrappingStrategy: "advanced"?

@alexdima alexdima added info-needed Issue requires more information from poster editor-wrapping Editor line wrapping issues labels Oct 12, 2022
@mkhlz
Copy link
Author

mkhlz commented Oct 13, 2022

Hey! Sorry I should have put a screenshot. Some more context:

Here's the normal flow when you go to the next line after carriage return. The gutter and viewport looks as expected. All good no problems here.

image

But now let me end the line without the carriage return. In this case I'll simply add some period characters . to achieve that. Notice the gutter area gets jacked up after the caret goes to the next line.

image

Apologies for the lack of info. This should clear things up. Let me know if you need more info.

Also, let me check if the option you suggested works.

By the way, there is a workaround hack. Just fix the line width to be less than the viewport. And in the wrap settings, use wordWrapColumn or bounded but like I said the original bug still exists

image

@mkhlz
Copy link
Author

mkhlz commented Oct 14, 2022

I can confirm that "editor.wrappingStrategy": "advanced" does not work @alexdima

@mkhlz
Copy link
Author

mkhlz commented Oct 21, 2022

closing this issue and making a new one, cuz of non-response

@mkhlz mkhlz closed this as completed Oct 21, 2022
@mkhlz mkhlz reopened this Oct 21, 2022
@mkhlz mkhlz closed this as not planned Won't fix, can't repro, duplicate, stale Oct 21, 2022
@alexdima
Copy link
Member

@mkhlz Does this reproduce when disabling the gitlens extension?

@mkhlz
Copy link
Author

mkhlz commented Oct 27, 2022

No, the issue is non-reproduceable after disabling the git lens extension. Although I really need that extension :(

In this case, how are things handled? By the extension developer, or VSCode? @alexdima

@alexdima
Copy link
Member

Let's track in #32856

@alexdima alexdima added the *duplicate Issue identified as a duplicate of another issue(s) label Oct 28, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Dec 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) editor-wrapping Editor line wrapping issues info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants