File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -303,8 +303,16 @@ class Builder {
303303 ] ) ;
304304 } ) ;
305305
306- // This is so it doesn't get cached along with VS Code (no point).
307- await this . task ( "Removing copied server" , ( ) => fs . remove ( serverPath ) ) ;
306+ // This is so it doesn't get cached along with VS Code. There's no point
307+ // since there isn't anything like an incremental build.
308+ await this . task ( "Removing build files for smaller cache" , ( ) => {
309+ return Promise . all ( [
310+ fs . remove ( serverPath ) ,
311+ fs . remove ( path . join ( vscodeSourcePath , "out-vscode" ) ) ,
312+ fs . remove ( path . join ( vscodeSourcePath , "out-vscode-min" ) ) ,
313+ fs . remove ( path . join ( vscodeSourcePath , "out-build" ) ) ,
314+ ] ) ;
315+ } ) ;
308316
309317 // Prepend code to the target which enables finding files within the binary.
310318 const prependLoader = async ( relativeFilePath : string ) : Promise < void > => {
You can’t perform that action at this time.
0 commit comments