Skip to content

Commit 47a75d8

Browse files
committed
wip
1 parent 4a57f9d commit 47a75d8

3 files changed

Lines changed: 25 additions & 22 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,14 +455,14 @@
455455
"@types/lodash": "^4.14.170",
456456
"@types/mocha": "^10.0.6",
457457
"@types/mz": "^2.7.3",
458-
"@types/node": "^15.12.4",
458+
"@types/node": "^22.22.0",
459459
"@types/vscode": "^1.110.0",
460460
"@vscode/test-cli": "^0.0.9",
461461
"@vscode/test-electron": "^2.4.0",
462462
"esbuild": "^0.11.12",
463463
"mocha": "^10.4.0",
464464
"prettier": "^3.3.0",
465-
"typescript": "^4.2.2",
465+
"typescript": "^5.9.3",
466466
"vscode-test": "^1.6.1"
467467
},
468468
"dependencies": {

src/git.ts

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import * as vscode from "vscode"
2-
import { execFile } from "child_process"
3-
import { promisify } from "util"
4-
import * as path from "path"
2+
import { execFile } from "node:child_process"
3+
import { promisify } from "node:util"
4+
import * as path from "node:path"
55
import { outputChannel } from "./extension"
66

7-
const execFileAsync = promisify(execFile)
8-
97
export interface Repo {
108
rootUri: vscode.Uri
119
}
1210

11+
const execFileAsync = promisify(execFile)
12+
1313
async function git(cwd: string, ...args: string[]): Promise<string> {
1414
const { stdout } = await execFileAsync("git", args, { cwd })
1515
return stdout.trim()
@@ -25,9 +25,7 @@ export async function getRepo(fileUri: vscode.Uri): Promise<Repo | null> {
2525
const root = await git(cwd, "rev-parse", "--show-toplevel")
2626
return { rootUri: vscode.Uri.file(root) }
2727
} catch {
28-
outputChannel.warn(
29-
"Could not find git repository for file: " + fileUri.fsPath,
30-
)
28+
outputChannel.warn("Could not find git repository for file", fileUri.fsPath)
3129
return null
3230
}
3331
}
@@ -75,10 +73,3 @@ export async function head(
7573
return null
7674
}
7775
}
78-
79-
export async function dir(
80-
repo: Repo,
81-
): Promise<{ git: string; repository: string } | null> {
82-
const root = repo.rootUri.fsPath
83-
return { git: root, repository: root }
84-
}

yarn.lock

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,18 @@
8484
dependencies:
8585
"@types/node" "*"
8686

87-
"@types/node@*", "@types/node@^15.12.4":
87+
"@types/node@*":
8888
version "15.12.4"
8989
resolved "https://registry.yarnpkg.com/@types/node/-/node-15.12.4.tgz#e1cf817d70a1e118e81922c4ff6683ce9d422e26"
9090
integrity sha512-zrNj1+yqYF4WskCMOHwN+w9iuD12+dGm0rQ35HLl9/Ouuq52cEtd0CH9qMgrdNmi5ejC1/V7vKEXYubB+65DkA==
9191

92+
"@types/node@^22.22.0":
93+
version "22.19.15"
94+
resolved "https://registry.yarnpkg.com/@types/node/-/node-22.19.15.tgz#6091d99fdf7c08cb57dc8b1345d407ba9a1df576"
95+
integrity sha512-F0R/h2+dsy5wJAUe3tAU6oqa2qbWY5TpNfL/RGmo1y38hiyO1w3x2jPtt76wmuaJI4DQnOBu21cNXQ2STIUUWg==
96+
dependencies:
97+
undici-types "~6.21.0"
98+
9299
"@types/vscode@^1.110.0":
93100
version "1.110.0"
94101
resolved "https://registry.yarnpkg.com/@types/vscode/-/vscode-1.110.0.tgz#b6210c7d5e049003138bb17311644fe8b179dc8b"
@@ -1433,10 +1440,15 @@ to-regex-range@^5.0.1:
14331440
resolved "https://registry.yarnpkg.com/traverse/-/traverse-0.3.9.tgz#717b8f220cc0bb7b44e40514c22b2e8bbc70d8b9"
14341441
integrity sha512-iawgk0hLP3SxGKDfnDJf8wTz4p2qImnyihM5Hh/sGvQ3K37dPi/w8sRhdNIxYA1TwFwc5mDhIJq+O0RsvXBKdQ==
14351442

1436-
typescript@^4.2.2:
1437-
version "4.3.4"
1438-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.4.tgz#3f85b986945bcf31071decdd96cf8bfa65f9dcbc"
1439-
integrity sha512-uauPG7XZn9F/mo+7MrsRjyvbxFpzemRjKEZXS4AK83oP2KKOJPvb+9cO/gmnv8arWZvhnjVOXz7B49m1l0e9Ew==
1443+
typescript@^5.9.3:
1444+
version "5.9.3"
1445+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.9.3.tgz#5b4f59e15310ab17a216f5d6cf53ee476ede670f"
1446+
integrity sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==
1447+
1448+
undici-types@~6.21.0:
1449+
version "6.21.0"
1450+
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.21.0.tgz#691d00af3909be93a7faa13be61b3a5b50ef12cb"
1451+
integrity sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==
14401452

14411453
unzipper@^0.10.11:
14421454
version "0.10.14"

0 commit comments

Comments
 (0)