Skip to content

Commit 76d3c13

Browse files
committed
fix: parsing mixed-value toml arrays
Upgrade `@iarna/toml` to v3 which should support mixed values within TOML arrays. Updated one of the test fixtures to make use of the newer `[dependency-groups]` section. Fixes: #25413 Signed-off-by: JP-Ellis <[email protected]>
1 parent ebc683a commit 76d3c13

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

package-lock.json

Lines changed: 8 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1695,7 +1695,7 @@
16951695
"webpack": "webpack"
16961696
},
16971697
"dependencies": {
1698-
"@iarna/toml": "^2.2.5",
1698+
"@iarna/toml": "^3.0.0",
16991699
"@vscode/extension-telemetry": "^0.8.4",
17001700
"arch": "^2.1.0",
17011701
"fs-extra": "^11.2.0",

src/test/pythonEnvironments/creation/pyProjectTomlContext.unit.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function getInstallableToml(): typemoq.IMock<TextDocument> {
2828
.setup((p) => p.getText(typemoq.It.isAny()))
2929
.returns(
3030
() =>
31-
'[project]\nname = "spam"\nversion = "2020.0.0"\n[build-system]\nrequires = ["setuptools ~= 58.0", "cython ~= 0.29.0"]\n[project.optional-dependencies]\ntest = ["pytest"]\ndoc = ["sphinx", "furo"]',
31+
'[project]\nname = "spam"\nversion = "2020.0.0"\n[build-system]\nrequires = ["setuptools ~= 58.0", "cython ~= 0.29.0"]\n[dependency-groups]\ndev = ["ruff", { include-group = "test" }]\ntest = ["pytest"]',
3232
);
3333
return pyprojectToml;
3434
}

0 commit comments

Comments
 (0)