Update Node.js, vscode, and ts deps

This commit is contained in:
BenjaminBrienen 2025-02-26 17:17:07 +01:00
parent 2fa819c9d3
commit 00726cf697
29 changed files with 2715 additions and 1857 deletions

View file

@ -114,6 +114,7 @@ function f(task: vscode.Task): {
execution,
};
}
function executionToSimple(
taskExecution: vscode.ProcessExecution | vscode.ShellExecution | vscode.CustomExecution,
): {
@ -122,8 +123,8 @@ function executionToSimple(
const exec = taskExecution as vscode.ProcessExecution | vscode.ShellExecution;
if (exec instanceof vscode.ShellExecution) {
return {
command: typeof exec.command === "string" ? exec.command : exec.command.value,
args: exec.args.map((arg) => {
command: typeof exec.command === "string" ? exec.command : (exec.command?.value ?? ""),
args: (exec.args ?? []).map((arg) => {
if (typeof arg === "string") {
return arg;
}