Skip to content

Commit

Permalink
Run bazel Rust analyzer task in shell
Browse files Browse the repository at this point in the history
The current process based strategy does not pick up env variables that
are set by direnv.

Change-Id: I25827e2390b7b5f7700b4d62bf1932070a308a58
  • Loading branch information
tiziano88 committed Oct 23, 2024
1 parent d4159db commit 85704f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"tasks": [
{
"label": "Generate rust-project.json",
// Run this task in a shell instead of a subprocess so it inherits the direnv / nix environment.
"type": "shell",
"command": "bazel",
"args": [
"run",
Expand All @@ -20,7 +22,7 @@
},
"runOptions": {
"runOn": "folderOpen"
}
},
},
]
}

0 comments on commit 85704f3

Please sign in to comment.