mirror of
https://github.com/microsoft/playwright.git
synced 2025-01-06 03:16:17 +03:00
fix(vscode): keep config order in vscode extension project dropdown (#30954)
Relates https://github.com/microsoft/playwright/issues/30936
This commit is contained in:
parent
964fe66ccc
commit
cfc9623a79
@ -67,14 +67,12 @@ export async function collectProjectsAndTestFiles(testRun: TestRun, doNotRunTest
|
||||
const projectClosure = buildProjectsClosure([...filesToRunByProject.keys()]);
|
||||
for (const [project, type] of projectClosure) {
|
||||
if (type === 'dependency') {
|
||||
filesToRunByProject.delete(project);
|
||||
const treatProjectAsEmpty = doNotRunTestsOutsideProjectFilter && !filteredProjects.includes(project);
|
||||
const files = treatProjectAsEmpty ? [] : allFilesForProject.get(project) || await collectFilesForProject(project, fsCache);
|
||||
filesToRunByProject.set(project, files);
|
||||
}
|
||||
}
|
||||
|
||||
testRun.projects = [...filesToRunByProject.keys()];
|
||||
testRun.projectFiles = filesToRunByProject;
|
||||
testRun.projectSuites = new Map();
|
||||
}
|
||||
|
@ -51,7 +51,6 @@ export class TestRun {
|
||||
readonly failureTracker: FailureTracker;
|
||||
rootSuite: Suite | undefined = undefined;
|
||||
readonly phases: Phase[] = [];
|
||||
projects: FullProjectInternal[] = [];
|
||||
projectFiles: Map<FullProjectInternal, string[]> = new Map();
|
||||
projectSuites: Map<FullProjectInternal, Suite[]> = new Map();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user