Skip to content

Commit 1fc371b

Browse files
committed
Added support to extendBundle.
1 parent 5836f1b commit 1fc371b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/deepcode/lib/modules/BundlesModule.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ abstract class BundlesModule extends LoginModule
164164
return;
165165
}
166166

167-
this.files = await this.startCollectingFiles(path, this.serverFilesFilterList);
167+
const bundle = await this.startCollectingFiles(path, this.serverFilesFilterList);
168+
const removedFiles = (this.files || []).filter(f => !bundle.includes(f));
169+
this.files = bundle;
168170

169171
this.serviceAI.on(BUNDLE_EVENTS.buildBundleProgress, (processed: number, total: number) => {
170172
this.onBuildBundleProgress(processed, total);
@@ -193,7 +195,7 @@ abstract class BundlesModule extends LoginModule
193195
this.onError(error);
194196
});
195197

196-
http.analyse(this.baseURL, this.token, path, this.files).catch((error) => this.onError(error));
198+
http.analyse(this.baseURL, this.token, path, this.files, removedFiles).catch((error) => this.onError(error));
197199
}
198200

199201
private async startCollectingFiles(

0 commit comments

Comments
 (0)