vscode: fix darwin build (#346727)

This commit is contained in:
Bobby Rong 2024-10-07 08:26:11 +08:00 committed by GitHub
commit 792b14b9b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -236,7 +236,10 @@ in
let
vscodeRipgrep =
if stdenv.hostPlatform.isDarwin then
"Contents/Resources/app/node_modules.asar.unpacked/@vscode/ripgrep/bin/rg"
if lib.versionAtLeast version "1.94.0" then
"Contents/Resources/app/node_modules/@vscode/ripgrep/bin/rg"
else
"Contents/Resources/app/node_modules.asar.unpacked/@vscode/ripgrep/bin/rg"
else
"resources/app/node_modules/@vscode/ripgrep/bin/rg";
in