Skip to content

Commit

Permalink
Print initial load pending for project state changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sheetalkamat committed Sep 12, 2024
1 parent 8ad73bd commit 0228b37
Show file tree
Hide file tree
Showing 44 changed files with 123 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/harness/projectServiceStateLogger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ interface ProjectData {
projectStateVersion: Project["projectStateVersion"];
projectProgramVersion: Project["projectProgramVersion"];
dirty: Project["dirty"];
initialLoadPending: Project["initialLoadPending"];
isClosed: ReturnType<Project["isClosed"]>;
isOrphan: ReturnType<Project["isOrphan"]>;
noOpenRef: boolean;
Expand Down Expand Up @@ -123,6 +124,7 @@ export function patchServiceForStateBaseline(service: ProjectService) {
projectDiff = printProperty(PrintPropertyWhen.Always, data, "projectStateVersion", project.projectStateVersion, projectDiff, projectPropertyLogs);
projectDiff = printProperty(PrintPropertyWhen.Always, data, "projectProgramVersion", project.projectProgramVersion, projectDiff, projectPropertyLogs);
projectDiff = printProperty(PrintPropertyWhen.TruthyOrChangedOrNew, data, "dirty", project.dirty, projectDiff, projectPropertyLogs);
projectDiff = printProperty(PrintPropertyWhen.TruthyOrChangedOrNew, data, "initialLoadPending", project.initialLoadPending, projectDiff, projectPropertyLogs);
projectDiff = printProperty(PrintPropertyWhen.TruthyOrChangedOrNew, data, "isClosed", project.isClosed(), projectDiff, projectPropertyLogs);
projectDiff = printProperty(PrintPropertyWhen.TruthyOrChangedOrNew, data, "isOrphan", !isBackgroundProject(project) && project.isOrphan(), projectDiff, projectPropertyLogs);
projectDiff = printProperty(PrintPropertyWhen.TruthyOrChangedOrNew, data, "noOpenRef", noOpenRef(project), projectDiff, projectPropertyLogs);
Expand Down Expand Up @@ -154,6 +156,7 @@ export function patchServiceForStateBaseline(service: ProjectService) {
projectStateVersion: project.projectStateVersion,
projectProgramVersion: project.projectProgramVersion,
dirty: project.dirty,
initialLoadPending: project.initialLoadPending,
isClosed: project.isClosed(),
isOrphan: !isBackgroundProject(project) && project.isOrphan(),
noOpenRef: noOpenRef(project),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 0
dirty: true
initialLoadPending: true
ScriptInfos::
/home/src/tslibs/TS/Lib/lib.d.ts *new*
Expand Down Expand Up @@ -679,6 +680,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 1 *changed*
dirty: false *changed*
initialLoadPending: false *changed*
originalConfiguredProjects: 3 *changed*
/user/username/projects/project/packages/b/tsconfig.json *new*
/user/username/projects/project/tsconfig.json *new*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 0
dirty: true
initialLoadPending: true
/dev/null/inferredProject1* (Inferred)
projectStateVersion: 1
projectProgramVersion: 1
Expand Down Expand Up @@ -351,6 +352,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 1 *changed*
dirty: false *changed*
initialLoadPending: false *changed*
autoImportProviderHost: false *changed*
/dev/null/inferredProject1* (Inferred) *changed*
projectStateVersion: 2 *changed*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 0
dirty: true
initialLoadPending: true
Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/tsconfig.json
Info seq [hh:mm:ss:mss] event:
Expand Down Expand Up @@ -420,6 +421,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 1 *changed*
dirty: false *changed*
initialLoadPending: false *changed*
autoImportProviderHost: false *changed*
ScriptInfos::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 0
dirty: true
initialLoadPending: true
Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/tsconfig.json
Info seq [hh:mm:ss:mss] event:
Expand Down Expand Up @@ -473,6 +474,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 1 *changed*
dirty: false *changed*
initialLoadPending: false *changed*
autoImportProviderHost: false *changed*
ScriptInfos::
Expand Down Expand Up @@ -1314,6 +1316,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 0
dirty: true
initialLoadPending: true
Info seq [hh:mm:ss:mss] request:
{
Expand Down Expand Up @@ -1393,6 +1396,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 0
dirty: true
initialLoadPending: true
noOpenRef: true *changed*
ScriptInfos::
Expand Down Expand Up @@ -1565,6 +1569,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 0
dirty: true
initialLoadPending: true
isClosed: true *changed*
noOpenRef: true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 0
dirty: true
initialLoadPending: true
Info seq [hh:mm:ss:mss] request:
{
Expand Down Expand Up @@ -387,6 +388,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 1 *changed*
dirty: false *changed*
initialLoadPending: false *changed*
autoImportProviderHost: false *changed*
ScriptInfos::
Expand Down Expand Up @@ -1420,6 +1422,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 0
dirty: true
initialLoadPending: true
Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/tsconfig.json
Info seq [hh:mm:ss:mss] event:
Expand Down Expand Up @@ -1588,6 +1591,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 1 *changed*
dirty: false *changed*
initialLoadPending: false *changed*
autoImportProviderHost: false *changed*
ScriptInfos::
Expand Down Expand Up @@ -2594,6 +2598,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 0
dirty: true
initialLoadPending: true
Info seq [hh:mm:ss:mss] request:
{
Expand Down Expand Up @@ -2697,6 +2702,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 1 *changed*
dirty: false *changed*
initialLoadPending: false *changed*
autoImportProviderHost: false *changed*
ScriptInfos::
Expand Down Expand Up @@ -3289,6 +3295,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 0
dirty: true
initialLoadPending: true
Info seq [hh:mm:ss:mss] request:
{
Expand Down Expand Up @@ -3392,6 +3399,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 1 *changed*
dirty: false *changed*
initialLoadPending: false *changed*
autoImportProviderHost: false *changed*
ScriptInfos::
Expand Down Expand Up @@ -4211,6 +4219,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 0
dirty: true
initialLoadPending: true
Info seq [hh:mm:ss:mss] request:
{
Expand Down Expand Up @@ -4314,6 +4323,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 1 *changed*
dirty: false *changed*
initialLoadPending: false *changed*
autoImportProviderHost: false *changed*
ScriptInfos::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 0
dirty: true
initialLoadPending: true
/user/username/projects/myproject/folder/tsconfig.json (Configured) *changed*
projectStateVersion: 1
projectProgramVersion: 1
Expand Down Expand Up @@ -484,6 +485,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 1 *changed*
dirty: false *changed*
initialLoadPending: false *changed*
autoImportProviderHost: false *changed*
/user/username/projects/myproject/folder/tsconfig.json (Configured)
projectStateVersion: 1
Expand Down Expand Up @@ -1326,6 +1328,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 0
dirty: true
initialLoadPending: true
/user/username/projects/myproject/folder/tsconfig.json (Configured) *changed*
projectStateVersion: 1
projectProgramVersion: 1
Expand Down Expand Up @@ -1405,6 +1408,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 0
dirty: true
initialLoadPending: true
noOpenRef: true *changed*
/user/username/projects/myproject/folder/tsconfig.json (Configured) *changed*
projectStateVersion: 1
Expand Down Expand Up @@ -1576,6 +1580,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 0
dirty: true
initialLoadPending: true
isClosed: true *changed*
noOpenRef: true
/user/username/projects/myproject/folder/tsconfig.json (Configured) *deleted*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 0
dirty: true
initialLoadPending: true
/user/username/projects/myproject/folder/tsconfig.json (Configured) *changed*
projectStateVersion: 1
projectProgramVersion: 1
Expand Down Expand Up @@ -398,6 +399,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 1 *changed*
dirty: false *changed*
initialLoadPending: false *changed*
autoImportProviderHost: false *changed*
/user/username/projects/myproject/folder/tsconfig.json (Configured)
projectStateVersion: 1
Expand Down Expand Up @@ -1432,6 +1434,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 0
dirty: true
initialLoadPending: true
/user/username/projects/myproject/folder/tsconfig.json (Configured) *changed*
projectStateVersion: 1
projectProgramVersion: 1
Expand Down Expand Up @@ -1608,6 +1611,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 1 *changed*
dirty: false *changed*
initialLoadPending: false *changed*
autoImportProviderHost: false *changed*
/user/username/projects/myproject/folder/tsconfig.json (Configured)
projectStateVersion: 1
Expand Down Expand Up @@ -2615,6 +2619,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 0
dirty: true
initialLoadPending: true
/user/username/projects/myproject/folder/tsconfig.json (Configured) *changed*
projectStateVersion: 1
projectProgramVersion: 1
Expand Down Expand Up @@ -2726,6 +2731,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 1 *changed*
dirty: false *changed*
initialLoadPending: false *changed*
autoImportProviderHost: false *changed*
/user/username/projects/myproject/folder/tsconfig.json (Configured)
projectStateVersion: 1
Expand Down Expand Up @@ -3319,6 +3325,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 0
dirty: true
initialLoadPending: true
/user/username/projects/myproject/folder/tsconfig.json (Configured) *changed*
projectStateVersion: 1
projectProgramVersion: 1
Expand Down Expand Up @@ -3430,6 +3437,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 1 *changed*
dirty: false *changed*
initialLoadPending: false *changed*
autoImportProviderHost: false *changed*
/user/username/projects/myproject/folder/tsconfig.json (Configured)
projectStateVersion: 1
Expand Down Expand Up @@ -4250,6 +4258,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 0
dirty: true
initialLoadPending: true
/user/username/projects/myproject/folder/tsconfig.json (Configured) *changed*
projectStateVersion: 1
projectProgramVersion: 1
Expand Down Expand Up @@ -4361,6 +4370,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 1 *changed*
dirty: false *changed*
initialLoadPending: false *changed*
autoImportProviderHost: false *changed*
/user/username/projects/myproject/folder/tsconfig.json (Configured)
projectStateVersion: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 0
dirty: true
initialLoadPending: true
Info seq [hh:mm:ss:mss] Running: /user/username/projects/myproject/a/c/tsconfig.json
Info seq [hh:mm:ss:mss] event:
Expand Down Expand Up @@ -563,6 +564,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 1 *changed*
dirty: false *changed*
initialLoadPending: false *changed*
autoImportProviderHost: false *changed*

ScriptInfos::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 0
dirty: true
initialLoadPending: true
Before request
Expand Down Expand Up @@ -240,6 +241,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 1 *changed*
dirty: false *changed*
initialLoadPending: false *changed*

ScriptInfos::
/home/src/tslibs/TS/Lib/lib.d.ts *new*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 0
dirty: true
initialLoadPending: true
Before request
Expand Down Expand Up @@ -237,6 +238,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 1 *changed*
dirty: false *changed*
initialLoadPending: false *changed*

ScriptInfos::
/home/src/tslibs/TS/Lib/lib.d.ts *new*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 0
dirty: true
initialLoadPending: true
Before request
Expand Down Expand Up @@ -243,6 +244,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 1 *changed*
dirty: false *changed*
initialLoadPending: false *changed*
autoImportProviderHost: false *changed*

ScriptInfos::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 0
dirty: true
initialLoadPending: true
Before request
Expand Down Expand Up @@ -240,6 +241,7 @@ Projects::
projectStateVersion: 1
projectProgramVersion: 1 *changed*
dirty: false *changed*
initialLoadPending: false *changed*
autoImportProviderHost: false *changed*

ScriptInfos::
Expand Down
Loading

0 comments on commit 0228b37

Please sign in to comment.