Skip to content

Commit fe40195

Browse files
authored
Switch to a different toml library. (#20544)
1 parent e9edfc0 commit fe40195

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

package-lock.json

Lines changed: 11 additions & 11 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
@@ -1806,7 +1806,7 @@
18061806
"webpack": "webpack"
18071807
},
18081808
"dependencies": {
1809-
"@ltd/j-toml": "^1.37.0",
1809+
"@iarna/toml": "^2.2.5",
18101810
"@vscode/extension-telemetry": "^0.7.4-preview",
18111811
"@vscode/jupyter-lsp-middleware": "^0.2.50",
18121812
"arch": "^2.1.0",

src/client/pythonEnvironments/creation/provider/venvUtils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License
33

4-
import * as tomljs from '@ltd/j-toml';
4+
import * as tomljs from '@iarna/toml';
55
import * as fs from 'fs-extra';
66
import { flatten, isArray } from 'lodash';
77
import * as path from 'path';
@@ -68,8 +68,8 @@ async function pickTomlExtras(extras: string[], token?: CancellationToken): Prom
6868
async function pickRequirementsFiles(files: string[], token?: CancellationToken): Promise<string[] | undefined> {
6969
const items: QuickPickItem[] = files
7070
.sort((a, b) => {
71-
const al = a.split(/[\\\/]/).length;
72-
const bl = b.split(/[\\\/]/).length;
71+
const al: number = a.split(/[\\\/]/).length;
72+
const bl: number = b.split(/[\\\/]/).length;
7373
if (al === bl) {
7474
if (a.length === b.length) {
7575
return a.localeCompare(b);

0 commit comments

Comments
 (0)