We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 97ba9cb + 5b0e831 commit cc3cae5Copy full SHA for cc3cae5
1 file changed
helpers.build.psm1
@@ -500,6 +500,19 @@ function Install-TreeSitter {
500
if ($LASTEXITCODE -ne 0) {
501
throw "Failed to install tree-sitter-cli"
502
}
503
+
504
+ # Ensure cargo bin directory is in PATH so tree-sitter can be found
505
+ if (!$IsWindows) {
506
+ $cargoBin = "$env:HOME/.cargo/bin"
507
+ if ($env:PATH -notlike "*$cargoBin*") {
508
+ $env:PATH += ":$cargoBin"
509
+ }
510
+ } else {
511
+ $cargoBin = "$env:USERPROFILE\.cargo\bin"
512
513
+ $env:PATH += ";$cargoBin"
514
515
516
517
518
0 commit comments