-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
Formatting issue with "evenBetterToml.formatter.indentTables": true
#363
Comments
Another issue I just noticed: in the first example, the two |
We are experiencing the same bug, would love if it was addressed :) |
Can confirm that this bug is still occurring: [tool.poetry]
# ...
version = "0.0.5"
[tool.poetry.dependencies]
python = ">=3.8,<3.13"
urllib3 = "^2.0.4"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
pipdeptree = "^2.13"
vermin = "^1.6"
viztracer = ">=0.16,<1"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
esbonio = "*"
furo = ">=2023.9"
sphinx = [ # 6 is lower bound because of furo
{version = ">=6,<7.2", python = "~3.8"},
{version = ">=6,<8", python = ">=3.9,<3.13"},
]
sphinx-copybutton = ">=0.5.2,<1"
sphinx-inline-tabs = ">=2023.4.21"
sphinx-lint = "*"
sphinx-notfound-page = "^1"
sphinx_last_updated_by_git = ">=0.3.6,<1" |
PR welcome for a fix |
This has been fixed by #450 and should have been released by now. Which version are you using? With the following [formatting]
indent_tables = true
indent_string = " " I get the following indentation: [tool.poetry]
# ...
version = "0.0.5"
[tool.poetry.dependencies]
python = ">=3.8,<3.13"
urllib3 = "^2.0.4"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
pipdeptree = "^2.13"
vermin = "^1.6"
viztracer = ">=0.16,<1"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
esbonio = "*"
furo = ">=2023.9"
sphinx = [ # 6 is lower bound because of furo
{ version = ">=6,<7.2", python = "~3.8" },
{ version = ">=6,<8", python = ">=3.9,<3.13" },
]
sphinx-copybutton = ">=0.5.2,<1"
sphinx-inline-tabs = ">=2023.4.21"
sphinx-lint = "*"
sphinx-notfound-page = "^1"
sphinx_last_updated_by_git = ">=0.3.6,<1" |
Hi, I'm using 0.19.2 of the VSCode extension. {
...,
"evenBetterToml.formatter.indentString": " ",
"evenBetterToml.formatter.indentTables": true,
....,
} I took a look at the extension on the market place, and it was last updated prior to the release that fixes this issue. Maybe that's the source of the problem? |
That's correct. You'll need the new version that's in the works. Not sure which issue you can follow best for that, probably #547 although it's a merged PR. |
With the default configuration +
"evenBetterToml.formatter.indentTables": true
, this example is formatted nicely:However, adding arguments to the first Poe task causes the second Poe task to be unindented:
Is this a bug, or intended? Is there a solution or workaround?
The text was updated successfully, but these errors were encountered: