angular-cn/packages/language-service/src
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
..
common.ts refactor(language-service): Remove AttrInfo interface (#33380) 2019-10-24 14:10:14 -07:00
completions.ts feat(language-service): add support for text replacement (#33091) 2019-10-29 11:47:01 -07:00
definitions.ts feat(language-service): add definitions for styleUrls (#32464) 2019-09-09 16:04:14 -04:00
diagnostics.ts feat: typescript 3.6 support (#32946) 2019-10-18 13:15:16 -04:00
expressions.ts refactor(language-service): find expression ASTs using absolute spans (#33387) 2019-10-24 17:08:23 -07:00
global_symbols.ts fix(language-service): Add global symbol for $any() (#33245) 2019-10-23 10:02:50 -07:00
hover.ts feat(language-service): hover information for component NgModules (#33118) 2019-10-14 20:28:06 +00: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): Create ng.CompletionEntry to replace ts.CompletionEntry (#33379) 2019-10-24 14:09:33 -07:00
locate_symbol.ts refactor(language-service): find expression ASTs using absolute spans (#33387) 2019-10-24 17:08:23 -07:00
reflector_host.ts fix(language-service): Use tsLSHost.fileExists() to resolve modules (#32642) 2019-09-12 17:18:06 -07:00
template.ts fix(language-service): Add global symbol for $any() (#33245) 2019-10-23 10:02:50 -07:00
ts_plugin.ts fix(language-service): Return empty external files during project initialization (#32519) 2019-09-09 12:22:19 -04:00
types.ts fix(language-service): Do not show HTML elements and attrs for ext template (#33388) 2019-10-25 09:18:16 -07:00
typescript_host.ts fix(language-service): Preserve CRLF in templates for language-service (#33241) 2019-10-22 13:29:23 -04:00
utils.ts fix(language-service): Add directive selectors & banana-in-a-box to completions (#33311) 2019-10-23 09:10:39 -07:00
version.ts style: remove empty comments (#23404) 2018-05-10 15:48:13 -07:00