angular/packages
ayazhafiz ce7f934c66 feat(language-service): directive info when looking up attribute's symbol (#33127)
Now, hovering over an attribute on an element will provide information
about the directive that attribute matches in the element, if any.
(More generally, we return information about directive symbols
matched on an element attribute.)

I believe this is similar to how the indexer provides this kind of
information, though more precise in the sense that this commit provides
directive information only if the directive selector exactly matches the
attribute selector. In another sense, this is a limitation.

In fact, there are the limitations of:

- Directives matched on the element, but with a selector of anything
  more than the attribute (e.g. `div[string-model]` or
  `[string-model][other-attr]`) will not be returned as symbols matching
  on the attribute.
- Only one symbol can be returned currently. If the attribute matches
  multiple directives, only one directive symbol will be returned.
  Furthermore, we cannot say that the directive symbol returned is
  determinstic.

Resolution of these limitations can be discussed in the future. At least
the second limitation should be very easy to fixup in a future commit.

This relies solely on the template compiler and is agnostic to any Ivy
changes, so this is strictly a feature enhancement that will not have to
be refactored when we migrate the language service to Ivy.

PR Close #33127
2019-10-15 16:49:18 +00:00
..
animations feat: change tslib from direct dependency to peerDependency (#32167) 2019-10-14 16:34:47 +00:00
bazel build: update to nodejs rules 0.38.3 (#33073) 2019-10-14 20:25:57 +00:00
benchpress feat: update rxjs peerDependencies minimum requirment to 6.5.3 (#32812) 2019-10-01 14:56:45 -07:00
common docs: clarify http header api doc (#33038) 2019-10-14 23:45:45 +00:00
compiler refactor(core): rename ngModuleDef to ɵmod (#33142) 2019-10-14 23:08:10 +00:00
compiler-cli refactor(core): rename ngModuleDef to ɵmod (#33142) 2019-10-14 23:08:10 +00:00
core refactor(core): replace instanceof Array (#33077) 2019-10-14 23:44:57 +00:00
docs refactor(core): remove deprecated Renderer (#33019) 2019-10-08 09:23:00 -07:00
elements feat: change tslib from direct dependency to peerDependency (#32167) 2019-10-14 16:34:47 +00:00
examples docs: correct component names in NgComponentOutlet examples (#33068) 2019-10-10 15:29:07 -07:00
forms feat: change tslib from direct dependency to peerDependency (#32167) 2019-10-14 16:34:47 +00:00
http feat: change tslib from direct dependency to peerDependency (#32167) 2019-10-14 16:34:47 +00:00
language-service feat(language-service): directive info when looking up attribute's symbol (#33127) 2019-10-15 16:49:18 +00:00
localize feat(ivy): i18n - support source locale inlining (#33101) 2019-10-14 20:32:57 +00:00
platform-browser feat: change tslib from direct dependency to peerDependency (#32167) 2019-10-14 16:34:47 +00:00
platform-browser-dynamic feat: change tslib from direct dependency to peerDependency (#32167) 2019-10-14 16:34:47 +00:00
platform-server feat: change tslib from direct dependency to peerDependency (#32167) 2019-10-14 16:34:47 +00:00
platform-webworker feat: change tslib from direct dependency to peerDependency (#32167) 2019-10-14 16:34:47 +00:00
platform-webworker-dynamic feat: change tslib from direct dependency to peerDependency (#32167) 2019-10-14 16:34:47 +00:00
private/testing test(ivy): add onlyInIvy perf counter expectations (#30339) 2019-05-09 11:22:00 -07:00
router docs: correct matcher description (#32970) 2019-10-14 23:47:29 +00:00
service-worker fix(service-worker): continue serving api requests on cache failure (#32996) 2019-10-14 20:21:41 +00:00
upgrade feat: change tslib from direct dependency to peerDependency (#32167) 2019-10-14 16:34:47 +00:00
zone.js refactor: utilize type narrowing (#33075) 2019-10-10 15:18:44 -07:00
BUILD.bazel refactor(core): ensure compatibility with typescript strict flag (#30993) 2019-07-18 14:21:25 -07:00
empty.ts
goog.d.ts fix(ivy): use goog.LOCALE for Closure Compiler to define default LOCALE_ID (#31519) 2019-07-16 13:02:10 -04:00
license-banner.txt build: bump year (#27880) 2019-01-11 11:15:59 -08:00
README.md Revert "docs: Remove unneeded file (#18106)" 2017-07-20 16:46:47 -05:00
system.d.ts
tsconfig-build-no-strict.json refactor(core): ensure compatibility with typescript strict flag (#30993) 2019-07-18 14:21:25 -07:00
tsconfig-build.json refactor(core): ensure compatibility with typescript strict flag (#30993) 2019-07-18 14:21:25 -07:00
tsconfig-test.json refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
tsconfig.json test(language-service): Create proper test project (#32653) 2019-09-18 13:07:01 -07:00
types.d.ts build: switch to typescript's es2015 typings (#28570) 2019-02-06 14:17:55 -05:00

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

License: MIT