angular-docs-cn/packages/language-service/ivy
Andrew Scott 8f12f47492 fix(compiler-cli): Allow analysis to continue with invalid style url (#41403)
Currently, we throw a FatalDiagnosticError when we fail to load a resource
(`templateUrl` or `styleUrl`) at various stages in the compiler. This prevents
analysis of the component from completing. This will result in in users not being
able to get any information in the component template when there is a missing
`styleUrl`, for example.

This commit simply tracks the diagnostic, marks the component as poisoned, and
continues merrily along. Environments configured to use poisoned data
(like the language service) will then be able to use other information from the analysis.

Fixes https://github.com/angular/vscode-ng-language-service/issues/1241

PR Close #41403
2021-04-07 09:42:21 -07:00
..
test fix(compiler-cli): Allow analysis to continue with invalid style url (#41403) 2021-04-07 09:42:21 -07:00
testing feat(language-service): add perf tracing to LanguageService (#41319) 2021-03-31 10:03:53 -07:00
BUILD.bazel perf(compiler-cli): refactor the performance tracing infrastructure (#41125) 2021-03-24 13:42:24 -07:00
adapters.ts perf(language-service): update NgCompiler via resource-only path when able (#40585) 2021-02-02 16:24:56 -08:00
attribute_completions.ts fix(language-service): Only provide Angular property completions in templates (#41278) 2021-04-01 11:37:30 -07:00
compiler_factory.ts perf(compiler-cli): refactor the performance tracing infrastructure (#41125) 2021-03-24 13:42:24 -07:00
completions.ts fix(language-service): Only provide Angular property completions in templates (#41278) 2021-04-01 11:37:30 -07:00
definitions.ts refactor(compiler-cli): remove event output helper from TCB (#40738) 2021-02-10 11:06:35 -08:00
display_parts.ts feat(language-service): complete attributes on elements (#40032) 2020-12-14 12:08:41 -08:00
language_service.ts fix(language-service): Only provide Angular property completions in templates (#41278) 2021-04-01 11:37:30 -07:00
quick_info.ts refactor(compiler-cli): Enable pipe information when checkTypeOfPipes=false (#39555) 2020-12-11 16:19:15 -08:00
references.ts perf(compiler-cli): refactor the performance tracing infrastructure (#41125) 2021-03-24 13:42:24 -07:00
template_target.ts refactor(language-service): Have TemplateTarget recognize two way bindings (#40185) 2021-01-07 13:18:38 -08:00
ts_plugin.ts fix(language-service): Add plugin option to force strictTemplates (#41062) 2021-03-03 09:48:06 -08:00
ts_utils.ts perf(language-service): short-circuit LS operations (#40946) 2021-02-22 13:19:09 -08:00
utils.ts fix(language-service): fix go to definition for template variables and references (#40455) 2021-01-19 13:03:14 -08:00