angular-cn/packages/language-service/src
Keen Yee Liau f6e88cd659 fix(language-service): Use ts.CompletionEntry for completions (#32375)
This is a prerequisite to fix a bug in template completions whereby
completion of the string `ti` for the variable `title` results in
`tititle`.

This is because the position where the completion is requested is used
to insert the completion text. This is incorrect. Instead, a
`replacementSpan` should be used to indicate the span of text that needs
to be replaced. Angular's own `Completion` interface is insufficient to
hold this information. Instead, we should just use ts.CompletionEntry.

Also added string enum for `CompletionKind`, which is similar to
ts.ScriptElementKind but contains more info about HTML entities.

PR Close #32375
2019-09-04 11:53:14 -07:00
..
common.ts refactor(language-service): Remove redudant 'TemplateInfo' type (#32250) 2019-08-22 12:32:41 -07:00
completions.ts fix(language-service): Use ts.CompletionEntry for completions (#32375) 2019-09-04 11:53:14 -07:00
definitions.ts feat(language-service): add definitions for templateUrl (#32238) 2019-08-28 17:09:46 -07:00
diagnostics.ts refactor(language-service): Remove redudant 'TemplateInfo' type (#32250) 2019-08-22 12:32:41 -07:00
expressions.ts fix(language-service): remove tsickle dependency 2017-08-16 11:33:49 -07:00
hover.ts refactor(language-service): Remove redudant 'TemplateInfo' type (#32250) 2019-08-22 12:32:41 -07:00
html_info.ts refactor(core): remove misc, completely unused functions from DomAdapter (#32278) 2019-08-26 10:39:09 -07:00
language_service.ts fix(language-service): Use ts.CompletionEntry for completions (#32375) 2019-09-04 11:53:14 -07:00
locate_symbol.ts fix(language-service): Create DirectiveKind enum (#32376) 2019-08-28 17:23:53 -07:00
reflector_host.ts fix(language-service): Remove 'context' used for module resolution (#32015) 2019-08-13 11:19:18 -07:00
template.ts refactor(language-service): add generic decorator property verifications (#32252) 2019-08-22 16:04:14 -07:00
ts_plugin.ts refactor(language-service): Return ts.CompletionInfo for getCompletionsAt() (#32116) 2019-08-14 14:09:51 -07:00
types.ts fix(language-service): Use ts.CompletionEntry for completions (#32375) 2019-09-04 11:53:14 -07:00
typescript_host.ts refactor(language-service): rename `host` to `tsLsHost` (#32346) 2019-08-28 21:27:15 -07:00
utils.ts fix(language-service): Use ts.CompletionEntry for completions (#32375) 2019-09-04 11:53:14 -07:00
version.ts style: remove empty comments (#23404) 2018-05-10 15:48:13 -07:00