Skip to content

Account for indentSize as well as tabSize - #206

Open
4321louis wants to merge 2 commits into
oderwat:masterfrom
4321louis:master
Open

Account for indentSize as well as tabSize#206
4321louis wants to merge 2 commits into
oderwat:masterfrom
4321louis:master

Conversation

@4321louis

@4321louis 4321louis commented Jul 11, 2026

Copy link
Copy Markdown

A few years ago vscode added the indentSize setting with a default = tabSize.
This pull request updates the extension to:

  • look at indentSize rather than tabSize
  • behave appropriately in cases where these are not equal
  • depend on @types/vscode 1.83 rather than 1.52. 1.83 is the lowest version with indentSize.

An issue that is not solved by this pull request is partial colouring of tab characters, this can occur when indentSize % tabSize != 0. Instead tabs are coloured by their right most indent colour(this was tested with tabSize = 8 and indentSize =4). This behaviour seems good enough to me.

Let me know if anything else is needed before the PR can be accepted

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.

1 participant