angular-cn/packages/language-service/test
ayazhafiz da4eb91283 feat(language-service): add support for text replacement (#33091)
Adds a `replacementSpan` field on a completion that will allow typed
text to be replaced with the suggested completion value if a user
selects the completion. Previously, the completion value would simply be
appended to the text already typed. E.g. if we had

```
{{ti}}
```

typed in a template and `title` was recommended as a completion and
selected, the template would become

```
{{tititle}}
```

With `replacementSpan`, the original text `ti` will be replaced for
`title`.

PR Close #33091
2019-10-29 11:47:01 -07:00
..
project fix(language-service): Add directive selectors & banana-in-a-box to completions (#33311) 2019-10-23 09:10:39 -07:00
BUILD.bazel fix(language-service): Add global symbol for $any() (#33245) 2019-10-23 10:02:50 -07:00
completions_spec.ts feat(language-service): add support for text replacement (#33091) 2019-10-29 11:47:01 -07:00
definitions_spec.ts fix(language-service): reset MockHost after every spec instead of creating new LS (#33200) 2019-10-16 17:49:55 -04:00
diagnostics_spec.ts fix(language-service): Add global symbol for $any() (#33245) 2019-10-23 10:02:50 -07:00
global_symbols_spec.ts fix(language-service): Add global symbol for $any() (#33245) 2019-10-23 10:02:50 -07:00
hover_spec.ts fix(language-service): Add global symbol for $any() (#33245) 2019-10-23 10:02:50 -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 test(language-service): Move diagnostics tests to diagnostics_spec.ts (#33158) 2019-10-14 23:40:20 +00:00
reflector_host_spec.ts test(language-service): remove MockData from MockTypescriptHost (#32752) 2019-09-18 15:29:25 -07:00
template_references_spec.ts fix(language-service): reset MockHost after every spec instead of creating new LS (#33200) 2019-10-16 17:49:55 -04:00
template_spec.ts test(language-service): remove MockData from MockTypescriptHost (#32752) 2019-09-18 15:29:25 -07:00
test_utils.ts fix(language-service): Increase project/script version in MockHost.reset() (#33200) 2019-10-16 17:49:55 -04:00
ts_plugin_spec.ts feat(language-service): add support for text replacement (#33091) 2019-10-29 11:47:01 -07:00
typescript_host_spec.ts fix(language-service): reset MockHost after every spec instead of creating new LS (#33200) 2019-10-16 17:49:55 -04:00
utils_spec.ts refactor(language-service): Omit typechecking for finding directives (#32156) 2019-08-16 09:58:28 -07:00