angular/packages/language-service/src
ayazhafiz 47a1811e0b feat(language-service): modularize error messages (#35678)
This commit performs a modularization of the Language Service's existing
diagnostic messages. Such a modularization has two primary advantages:

- Centralization and decoupling of error messages from the code that
  generates them makes it easy to add/delete/edit diagnostic messages,
  and allows for independent iteration of diagnostic messages and
  diagnostic generation.
- Prepares for additional features like annotating the locations where a
  diagnostic is generated and enabling the configuration of which
  diagnostics should be reported by the language service.

Although it would be preferable to place the diagnostics registry in an
independent JSON file, for ease of typing diagnostic types as an enum
variant of 'ts.DiagnosticCategory', the registry is stored as an object.

Part of #32663.

PR Close #35678
2020-03-03 08:49:34 -08:00
..
common.ts fix(language-service): Do not produce diagnostics if metadata for NgModule not found (#34113) 2019-12-02 11:13:41 -08:00
completions.ts fix(language-service): provide completions for the structural directive that only injects the 'ViewContainerRef' (#35466) 2020-02-20 15:12:50 -08:00
definitions.ts fix(language-service): prune duplicate returned definitions (#34995) 2020-01-29 12:21:04 -08:00
diagnostic_messages.ts feat(language-service): modularize error messages (#35678) 2020-03-03 08:49:34 -08:00
diagnostics.ts feat(language-service): modularize error messages (#35678) 2020-03-03 08:49:34 -08:00
expression_diagnostics.ts feat(language-service): modularize error messages (#35678) 2020-03-03 08:49:34 -08:00
expression_type.ts feat(language-service): modularize error messages (#35678) 2020-03-03 08:49:34 -08:00
expressions.ts refactor(compiler): Remove NullAstVisitor and visitAstChildren (#35619) 2020-02-28 07:13:17 -08:00
global_symbols.ts refactor(language-service): adds Symbol#typeArguments and does cleanup (#34571) 2020-01-13 15:16:15 -08:00
hover.ts refactor(language-service): Avoid leaking host outside of LanguageService (#34941) 2020-01-24 15:53:52 -08:00
html_info.ts refactor(language-service): use strict comparisons (#33114) 2019-10-17 21:19:02 -04:00
language_service.ts refactor(language-service): dedupe diagnostics using ts utility function (#35086) 2020-02-03 08:57:58 -08:00
locate_symbol.ts fix(language-service): get the right 'ElementAst' in the nested HTML tag (#35317) 2020-02-25 13:12:08 -08:00
reflector_host.ts fix(language-service): Use tsLSHost.fileExists() to resolve modules (#32642) 2019-09-12 17:18:06 -07:00
symbols.ts refactor(language-service): adds Symbol#typeArguments and does cleanup (#34571) 2020-01-13 15:16:15 -08:00
template.ts fix(language-service): CRLF offset in inline template (#34737) 2020-01-13 07:16:50 -08:00
ts_plugin.ts refactor(language-service): Consistent naming between ts and ng LanguageService (#34888) 2020-01-22 14:36:04 -05:00
types.ts fix(language-service): Make metadata in Declaration non-optional (#34936) 2020-01-23 15:54:59 -08:00
typescript_host.ts refactor(language-service): Avoid leaking host outside of LanguageService (#34941) 2020-01-24 15:53:52 -08:00
typescript_symbols.ts refactor(language-service): cleanup of low-hanging TODOs (#34784) 2020-01-21 13:09:30 -05:00
utils.ts fix(language-service): provide completions for the structural directive that only injects the 'ViewContainerRef' (#35466) 2020-02-20 15:12:50 -08:00
version.ts style: remove empty comments (#23404) 2018-05-10 15:48:13 -07:00