mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-02 04:48:13 +00:00
Update Node.js, vscode, and ts deps
This commit is contained in:
parent
2fa819c9d3
commit
00726cf697
29 changed files with 2715 additions and 1857 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue