File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -158,21 +158,28 @@ class Builder {
158
158
} ) ;
159
159
160
160
// Download and prepare VS Code if necessary (should be cached by CI).
161
- const exists = fs . existsSync ( vscodeSourcePath ) ;
162
- if ( exists ) {
163
- this . log ( "Using existing VS Code directory" ) ;
161
+ if ( fs . existsSync ( vscodeSourcePath ) ) {
162
+ this . log ( "Using existing VS Code clone" ) ;
164
163
} else {
165
164
await this . task ( "Cloning VS Code" , ( ) => {
166
165
return util . promisify ( cp . exec ) (
167
166
"git clone https://github.com/microsoft/vscode"
168
167
+ ` --quiet --branch "${ vscodeVersion } "`
169
168
+ ` --single-branch --depth=1 "${ vscodeSourcePath } "` ) ;
170
169
} ) ;
170
+ }
171
171
172
+ if ( fs . existsSync ( path . join ( vscodeSourcePath , "node_modules" ) ) ) {
173
+ this . log ( "Using existing VS Code node_modules" ) ;
174
+ } else {
172
175
await this . task ( "Installing VS Code dependencies" , ( ) => {
173
176
return util . promisify ( cp . exec ) ( "yarn" , { cwd : vscodeSourcePath } ) ;
174
177
} ) ;
178
+ }
175
179
180
+ if ( fs . existsSync ( path . join ( vscodeSourcePath , ".build/extensions" ) ) ) {
181
+ this . log ( "Using existing built-in-extensions" ) ;
182
+ } else {
176
183
await this . task ( "Building default extensions" , ( ) => {
177
184
return util . promisify ( cp . exec ) (
178
185
"yarn gulp compile-extensions-build --max-old-space-size=32384" ,
You can’t perform that action at this time.
0 commit comments