angular-cn/packages/language-service/ivy/test
JoostK c18c7e23ec fix(compiler): exclude trailing whitespace from element source spans (#40513)
If the template parse option `leadingTriviaChars` is configured to
consider whitespace as trivia, any trailing whitespace of an element
would be considered as leading trivia of the subsequent element, such
that its `start` span would start _after_ the whitespace. This means
that the start span cannot be used to mark the end of the current
element, as its trailing whitespace would then be included in its span.
Instead, the full start of the subsequent element should be used.

To harden the tests that for the Ivy parser, the test utility `parseR3`
has been adjusted to use the same configuration for `leadingTriviaChars`
as would be the case in its production counterpart `parseTemplate`. This
uncovered another bug in offset handling of the interpolation parser,
where the absolute offset was computed from the start source span
(which excludes leading trivia) whereas the interpolation expression
would include the leading trivia. As such, the absolute offset now also
uses the full start span.

Fixes #39148

PR Close #40513
2021-01-28 08:53:02 -08:00
..
legacy fix(compiler): exclude trailing whitespace from element source spans (#40513) 2021-01-28 08:53:02 -08:00
BUILD.bazel test(language-service): introduce new virtual testing environment (#39594) 2020-11-17 11:59:56 -08:00
adapters_spec.ts fix(language-service): LSParseConfigHost.resolve should not concat abs paths (#40242) 2021-01-06 10:54:40 -08:00
compiler_spec.ts docs: remove duplicated the (#40434) 2021-01-14 11:33:57 -08:00
completions_spec.ts fix(language-service): recognize incomplete pipe bindings with whitespace (#40346) 2021-01-27 10:44:40 -08:00
definitions_spec.ts fix(language-service): fix go to definition for template variables and references (#40455) 2021-01-19 13:03:14 -08:00
diagnostic_spec.ts fix(compiler-cli): report non-template diagnostics (#40331) 2021-01-13 10:55:04 -08:00
env.ts feat(language-service): view template typecheck block (#39974) 2021-01-21 14:05:29 -08:00
gettcb_spec.ts feat(language-service): view template typecheck block (#39974) 2021-01-21 14:05:29 -08:00
mock_host.ts test(language-service): introduce new virtual testing environment (#39594) 2020-11-17 11:59:56 -08:00
quick_info_spec.ts refactor(compiler-cli): Enable pipe information when checkTypeOfPipes=false (#39555) 2020-12-11 16:19:15 -08:00
references_spec.ts refactor(language-service): do not mutate the original template node span (#40484) 2021-01-20 16:59:54 -08:00
test_utils.ts fix(language-service): fix go to definition for template variables and references (#40455) 2021-01-19 13:03:14 -08:00
type_definitions_spec.ts feat(language-service): initial implementation for `findRenameLocations` (#40140) 2021-01-14 16:24:39 -08:00