@@ -10,7 +10,7 @@ const libPath = path.join(__dirname, "../lib");
10
10
const vscodePath = path . join ( libPath , "vscode" ) ;
11
11
const pkgsPath = path . join ( __dirname , "../packages" ) ;
12
12
const defaultExtensionsPath = path . join ( libPath , "VSCode-linux-x64/resources/app/extensions" ) ;
13
- const vscodeVersion = "1.32" ;
13
+ const vscodeVersion = "1.32.0 " ;
14
14
15
15
const buildServerBinary = register ( "build:server:binary" , async ( runner ) => {
16
16
await ensureInstalled ( ) ;
@@ -220,11 +220,17 @@ const ensureCloned = register("vscode:clone", async (runner) => {
220
220
} else {
221
221
fse . mkdirpSync ( libPath ) ;
222
222
runner . cwd = libPath ;
223
- const clone = await runner . execute ( "git" , [ "clone" , "https://github.com/microsoft/vscode" , "--branch" , `release/ ${ vscodeVersion } ` , "--single-branch" , "--depth=1" ] ) ;
223
+ const clone = await runner . execute ( "git" , [ "clone" , "https://github.com/microsoft/vscode" , "--branch" , vscodeVersion , "--single-branch" , "--depth=1" ] ) ;
224
224
if ( clone . exitCode !== 0 ) {
225
225
throw new Error ( `Failed to clone: ${ clone . exitCode } ` ) ;
226
226
}
227
227
}
228
+
229
+ runner . cwd = vscodePath ;
230
+ const checkout = await runner . execute ( "git" , [ "checkout" , vscodeVersion ] ) ;
231
+ if ( checkout . exitCode !== 0 ) {
232
+ throw new Error ( `Failed to checkout: ${ checkout . stderr } ` ) ;
233
+ }
228
234
} ) ;
229
235
230
236
const ensureClean = register ( "vscode:clean" , async ( runner ) => {
0 commit comments