Skip to content

Commit

Permalink
vscode: use buck for rust-analyzer settings
Browse files Browse the repository at this point in the history
  • Loading branch information
thoughtpolice committed Sep 4, 2024
1 parent 4619b16 commit 5912631
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,21 @@
"BUILD": "starlark",
"PACKAGE": "starlark",
},

"rust-analyzer.workspace.discoverConfig": {
"command": [
"rust-project",
"develop-json",
"--sysroot-mode=rustc",
"{arg}"
],
"progressLabel": "rust-analyzer[buck2]",
"filesToWatch": ["BUILD", "PACKAGE"]
},

"rust-analyzer.check.overrideCommand": [
"rust-project",
"check",
"$saved_file",
]
}

0 comments on commit 5912631

Please sign in to comment.