mirror of
https://github.com/microsoft/playwright.git
synced 2025-01-07 11:46:42 +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()]);
|
const projectClosure = buildProjectsClosure([...filesToRunByProject.keys()]);
|
||||||
for (const [project, type] of projectClosure) {
|
for (const [project, type] of projectClosure) {
|
||||||
if (type === 'dependency') {
|
if (type === 'dependency') {
|
||||||
filesToRunByProject.delete(project);
|
|
||||||
const treatProjectAsEmpty = doNotRunTestsOutsideProjectFilter && !filteredProjects.includes(project);
|
const treatProjectAsEmpty = doNotRunTestsOutsideProjectFilter && !filteredProjects.includes(project);
|
||||||
const files = treatProjectAsEmpty ? [] : allFilesForProject.get(project) || await collectFilesForProject(project, fsCache);
|
const files = treatProjectAsEmpty ? [] : allFilesForProject.get(project) || await collectFilesForProject(project, fsCache);
|
||||||
filesToRunByProject.set(project, files);
|
filesToRunByProject.set(project, files);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
testRun.projects = [...filesToRunByProject.keys()];
|
|
||||||
testRun.projectFiles = filesToRunByProject;
|
testRun.projectFiles = filesToRunByProject;
|
||||||
testRun.projectSuites = new Map();
|
testRun.projectSuites = new Map();
|
||||||
}
|
}
|
||||||
|
@ -51,7 +51,6 @@ export class TestRun {
|
|||||||
readonly failureTracker: FailureTracker;
|
readonly failureTracker: FailureTracker;
|
||||||
rootSuite: Suite | undefined = undefined;
|
rootSuite: Suite | undefined = undefined;
|
||||||
readonly phases: Phase[] = [];
|
readonly phases: Phase[] = [];
|
||||||
projects: FullProjectInternal[] = [];
|
|
||||||
projectFiles: Map<FullProjectInternal, string[]> = new Map();
|
projectFiles: Map<FullProjectInternal, string[]> = new Map();
|
||||||
projectSuites: Map<FullProjectInternal, Suite[]> = new Map();
|
projectSuites: Map<FullProjectInternal, Suite[]> = new Map();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user