-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
Lines containing spaces should be handled the same no matter where in a file #8427
Comments
@kieferrm My change also makes it that the indent guides respect 100% the folding regions -- you can inspect this by hovering over the line decorations area between the line numbers and the content and the folding regions should reflect the indent guides. I don't know why we don't create a folding region for the last lines in the file. @aeschli here is a copy-paste friendly version of Kai's screen shot:
|
@aeschli Here is where I moved your code that computes folding regions: |
@alexandrudima A folding region only exists if there it at least one non empty line that has a larger indent than a non-empty line before
does not have any folding regions. Think of code like
has one folding region at line 2 (ending at the end of the file). IMO from the perspective of folding regions the algorithm does the right thing. |
Closing as per Martin's explanation |
Testing #8232. Create a simple file without any file extension.
In the following picture all green areas are showing lines that only contain whitespace characters. I can come up with rules why indentation guides are shown the way they are but I think all non-empty lines (including those containing whitespace only) should be handled the same no matter where they are in a file. I.e. the context of the line should be ignored.
The text was updated successfully, but these errors were encountered: