-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Extended diagnostics integration #43107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extended diagnostics integration #43107
Conversation
I think you probably want to rebase this against |
8775483
to
8174a07
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Just a couple nits and a few questions for Andrew.
One other nit: The first commit message should probably have "refactor(compiler-cli): export getExtendedTemplateDiagnosticsForComponent
and template checks" as its first line so it's more easily scanable when abbreviated to one line.
packages/compiler-cli/test/ngtsc/extended_template_diagnostics_spec.ts
Outdated
Show resolved
Hide resolved
8174a07
to
0ca47a5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great overall!
One thing about the feat
commit in the middle: If we decide this is appropriately a feat
, then we'll need to change the target to minor
. If we want to merge to patch
, that'll have to change to refactor
because the tool won't allow feat
commit in the patch branch.
packages/compiler-cli/test/ngtsc/extended_template_diagnostics_spec.ts
Outdated
Show resolved
Hide resolved
0ca47a5
to
3a72d17
Compare
3a72d17
to
164c563
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! Just a couple minor nits, but no major concerns here.
aef54bd
to
9242cf8
Compare
9242cf8
to
3c2150b
Compare
This commit adds extended template diagnostics end-to-end tests, to make sure the diagnostics are generated correctly. Template checks are already tested with unit tests. Refs angular#42966
Add a test in the langauge-service to make sure the extended template diagnostics are being correctly generated. Refs angular#42966
a83684e
to
f1df924
Compare
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Integrate extended template diagnostics with compiler and add
extendedTemplateDiagnostics
flag in the compiler options.What is the current behavior?
The compiler currently can't access the
extended
package.Issue Number: #42966
What is the new behavior?
Added a new phase in the compiler that runs all template checks and generates extended template diagnostics when the
extendedTemplateDiagnostics
andstrictTemplates
flags are set.Does this PR introduce a breaking change?
Other information