@@ -5,6 +5,7 @@ import * as os from "os";
5
5
import * as path from "path" ;
6
6
import * as zlib from "zlib" ;
7
7
8
+ const isWin = os . platform ( ) === "win32" ;
8
9
const libPath = path . join ( __dirname , "../lib" ) ;
9
10
const vscodePath = path . join ( libPath , "vscode" ) ;
10
11
const pkgsPath = path . join ( __dirname , "../packages" ) ;
@@ -84,7 +85,7 @@ const buildServerBinaryCopy = register("build:server:binary:copy", async (runner
84
85
const nodePtyModule = path . join ( pkgsPath , "protocol" , "node_modules" , "node-pty-prebuilt" , "build" , "Release" , "pty.node" ) ;
85
86
const spdlogModule = path . join ( pkgsPath , "protocol" , "node_modules" , "spdlog" , "build" , "Release" , "spdlog.node" ) ;
86
87
let ripgrepPath = path . join ( pkgsPath , ".." , "lib" , "vscode" , "node_modules" , "vscode-ripgrep" , "bin" , "rg" ) ;
87
- if ( os . platform ( ) === "win32" ) {
88
+ if ( isWin ) {
88
89
ripgrepPath += ".exe" ;
89
90
}
90
91
@@ -188,7 +189,7 @@ const ensureInstalled = register("vscode:install", async (runner) => {
188
189
await ensureCloned ( ) ;
189
190
190
191
runner . cwd = vscodePath ;
191
- const install = await runner . execute ( "yarn" , [ ] ) ;
192
+ const install = await runner . execute ( isWin ? "yarn.cmd" : "yarn" , [ ] ) ;
192
193
if ( install . exitCode !== 0 ) {
193
194
throw new Error ( `Failed to install vscode dependencies: ${ install . stderr } ` ) ;
194
195
}
0 commit comments