You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: unchanged files sometimes have no Angular information for string… (#1453)
* fix: unchanged files sometimes have no Angular information for strings when first opened
The `TextStorage` in TS server calls `useScriptVersionCacheIfValidOrOpen` in many places
when dealing with a `ScriptInfo`. One of the conditions in that function
is to switch to version _if the script is open_. This change in version
results in an identity change for the `SourceFile` which is problematic
for the compiler because we store references to string literals for
inline templates, template URLs, and style URLs. These references will
not be valid if the `SourceFile` changed identity.
To ensure that the compiler is aware of the change, we mark the project
as dirty when a text document is opened. This will cause the project to
call `updateGraph`, determine that the file changed versions, and create
a new program. This is done so that the Angular compiler can reprocess
the file.
This also appears to be one of, if not the only issue, that's currently
causing the e2e tests to be flaky.
* test: Stabalize e2e tests
* Fix test output so that it logs to console.
* Disable hover tests because they are flaky.
(cherry picked from commit a751e61)
0 commit comments