textSearchManager.ts ×12

Frontier kind: Code frontier

unlabeled · c_a9cee374f330

16 tests · 10670 LOC · 48 files · introduces 0 tests · 26 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
12 ranges26 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
1513 ranges10670 lines · 48 files · Browse complete extent
All tests (intent)
16 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 26 introduced LOC across 12 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/workbench/services/search/common/textSearchManager.ts 26 introduced LOC · 12 ranges

Open complete file

86 // For each root folder
87 this.doSearch(folderQueries, onResult, tokenSource.token, onKeywordResult).then(result => {
88 > tokenSource.dispose(); textSearchManager.ts
89 > this.collector!.flush();
90 >
91 > resolve({
92 > limitHit: this.isLimitHit || result?.limitHit,
93 > messages: this.getMessagesFromResults(result),
94 > stats: {
95 > type: this.processType
96 > }
97 > });
98 }, (err: Error) => {
99 tokenSource.dispose();
105
106 private getMessagesFromResults(result: TextSearchComplete2 | null | undefined) {
107 > if (!result?.message) { return []; } textSearchManager.ts
108 if (Array.isArray(result.message)) { return result.message; }
109 return [result.message];
111
112 private resultSize(result: TextSearchResult2): number {
187 } else {
188 result = await (this.queryProviderPair as ITextQueryProviderPair).provider.provideTextSearchResults(patternInfoToQuery(this.queryProviderPair.query.contentPattern), searchOptions, progress, token);
190 > if (testingPs.length) {
191 await Promise.all(testingPs);
192 }
194 > return result;
195 }
196
271
272 private pushToCollector(): void {
273 > const size = this._currentFileMatch && this._currentFileMatch.results ? textSearchManager.ts
274 this._currentFileMatch.results.length :
275 0;
276 > this._batchedCollector.addItem(this._currentFileMatch!, size); textSearchManager.ts
277 > }
278
279 flush(): void {
280 > this.pushToCollector(); textSearchManager.ts
281 > this._batchedCollector.flush();
282 > }
283
284 private sendItems(items: IFileMatch[]): void {
337
338 addItem(item: T, size: number): void {
339 > if (!item) { textSearchManager.ts
340 return;
341 }
342
343 this.addItemToBatch(item, size);
345
346 addItems(items: T[], size: number): void {
380
381 flush(): void {
382 > if (this.batchSize) { textSearchManager.ts
383 this.totalNumberCompleted += this.batchSize;
384 this.cb(this.batch);