File tree
Expand file treeCollapse file tree1 file changed
+12
-1
lines changed test/integration-tests/utilities
Expand file treeCollapse file tree1 file changed
+12
-1
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -238,7 +238,17 @@ const extensionBootstrapper = (() => {
|
238 | 238 | } else if (expectedAssets.length > 0) {
|
239 | 239 | await new Promise<void>(res => {
|
240 | 240 | const found: string[] = [];
|
241 |
| -workspaceContext.onDidChangeFolders(e => { |
| 241 | +for (const f of workspaceContext.folders) { |
| 242 | +if (found.includes(f.name) || !expectedAssets.includes(f.name)) { |
| 243 | +continue; |
| 244 | +} |
| 245 | +found.push(f.name); |
| 246 | +} |
| 247 | +if (expectedAssets.length === found.length) { |
| 248 | +res(); |
| 249 | +return; |
| 250 | +} |
| 251 | +const disposable = workspaceContext.onDidChangeFolders(e => { |
242 | 252 | if (
|
243 | 253 | e.operation !== FolderOperation.add ||
|
244 | 254 | found.includes(e.folder!.name) ||
|
@@ -249,6 +259,7 @@ const extensionBootstrapper = (() => {
|
249 | 259 | found.push(e.folder!.name);
|
250 | 260 | if (expectedAssets.length === found.length) {
|
251 | 261 | res();
|
| 262 | +disposable.dispose(); |
252 | 263 | }
|
253 | 264 | });
|
254 | 265 | });
|
|
You can’t perform that action at this time.
0 commit comments