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 Oct 11, 2024
1 parent a42d45d commit c2c8b8d
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 c2c8b8d

Please sign in to comment.