Skip to content

Conversation

@jhasse
Copy link
Contributor

@jhasse jhasse commented Sep 22, 2023

Tab size and indent size were separated in #155450, but for deciding where to put "//" or "#" when toggling a line comment tab size was still used.

Fixes #170393.

Tab size and indent size were separated in microsoft#155450, but for deciding
where to put "//" or "#" when toggling a line comment tab size was still
used.

Fixes microsoft#170393.
@jhasse jhasse force-pushed the toggle-comment-indent branch from a71e408 to de422ea Compare September 22, 2023 14:13
@jhasse jhasse changed the title Use the tabSize instead of indentSize for LineCommentCommand Use indentSize instead of tabSize for LineCommentCommand Sep 22, 2023
@jhasse
Copy link
Contributor Author

jhasse commented Dec 8, 2023

Any comments?

I know this probably only affects a small percentage of users (mostly those who have to use legacy code bases which used the tab character incorrectly), but the change should be easy to reason about as tabSize == indentSize for everyone else.

Copy link
Member

@alexdima alexdima left a comment

Choose a reason for hiding this comment

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

Thank you!

@alexdima alexdima added this to the March 2024 milestone Mar 16, 2024
@alexdima alexdima merged commit 997212d into microsoft:main Mar 16, 2024
@jhasse jhasse deleted the toggle-comment-indent branch March 16, 2024 12:03
chen-ky pushed a commit to chen-ky/vscode that referenced this pull request Mar 18, 2024
…93811)

Tab size and indent size were separated in microsoft#155450, but for deciding
where to put "//" or "#" when toggling a line comment tab size was still
used.

Fixes microsoft#170393.

Co-authored-by: Alexandru Dima <[email protected]>
@microsoft microsoft locked and limited conversation to collaborators Jun 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Toggle Line Comment should ignore editor.tabSize and only use editor.indentSize

3 participants