angular-docs-cn/packages/language-service/test
Keen Yee Liau 7b9891d7cd feat(language-service): Introduce 'angularOnly' flag (#31935)
This PR changes the language service to work in two different modes:

1. TS + Angular
   Plugin augments TS language service to provide additonal Angular
   information. This only works with inline template and is meant to be
   used as a local plugin (configured via tsconfig.json).
2. Angular only
   Plugin only provides information on Angular templates, no TS info at
   all. This effectively disables native TS features and is meant for
   internal use only.

Default mode is `angularOnly = false` so that we don't break any users
already using Angular LS as local plugin.

As part of the refactoring, `undefined` is removed from type aliases
because it is considered bad practice.

go/tsstyle#nullableundefined-type-aliases
```
Type aliases must not include |null or |undefined in a union type.
Nullable aliases typically indicate that null values are being passed
around through too many layers of an application, and this clouds the
source of the original issue that resulted in null. They also make it
unclear when specific values on a class or interface might be absent.
```

PR Close #31935
2019-08-01 17:43:21 -07:00
..
BUILD.bazel build: update rules_nodejs and clean up bazel warnings (#30370) 2019-05-14 10:08:45 -07:00
completions_spec.ts feat(language-service): Introduce 'angularOnly' flag (#31935) 2019-08-01 17:43:21 -07:00
definitions_spec.ts refactor(language-service): Remove NgLSHost -> NgLS dependency (#31122) 2019-06-19 15:19:56 -07:00
diagnostics_spec.ts refactor(language-service): Remove NgLSHost -> NgLS dependency (#31122) 2019-06-19 15:19:56 -07:00
hover_spec.ts refactor(language-service): Remove NgLSHost -> NgLS dependency (#31122) 2019-06-19 15:19:56 -07:00
html_info_spec.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
language_service_spec.ts refactor: clean up language service from unused code and imports (#30534) 2019-05-17 13:32:06 -07:00
reflector_host_spec.ts test: improve language service tests performance (#30585) 2019-05-24 18:17:21 -04:00
template_references_spec.ts refactor(language-service): Remove NgLSHost -> NgLS dependency (#31122) 2019-06-19 15:19:56 -07:00
test_data.ts refactor: clean up language service from unused code and imports (#30534) 2019-05-17 13:32:06 -07:00
test_utils.ts test: improve language service tests performance (#30585) 2019-05-24 18:17:21 -04:00
ts_plugin_spec.ts feat(language-service): Introduce 'angularOnly' flag (#31935) 2019-08-01 17:43:21 -07:00
typescript_host_spec.ts fix(language-service): getSourceFile() should only be called on TS files (#31920) 2019-08-01 10:10:09 -07:00