We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ad1de5 commit e16afc7Copy full SHA for e16afc7
src/controller.ts
@@ -180,6 +180,20 @@ export class Controller {
180
return;
181
}
182
183
+ //merge suites of same type and name
184
+ const branchMap = new Map<string, number>();
185
+ for (let i = 0; tree.length > 1 && i < tree.length; i++) {
186
+ const { fn, name, children } = tree[i];
187
+ if (!branchMap.has(fn + name)) {
188
+ branchMap.set(fn + name, i);
189
+ }
190
+ else {
191
+ tree[branchMap.get(fn + name)!].children.push(...children);
192
+ tree.splice(i, 1);
193
+ i--;
194
195
196
+
197
const smMaintainer = previous?.sourceMap ?? this.smStore.maintain(uri);
198
const sourceMap = await smMaintainer.refresh(contents);
199
const add = (
0 commit comments