fix(language-service): Make Definition and QuickInfo compatible with TS LS (#31972)

Now that the Angular LS is a proper tsserver plugin, it does not make
sense for it to maintain its own language service API.

This is part one of the effort to remove our custom LanguageService
interface.
This interface is cumbersome because we have to do two transformations:
  ng def -> ts def -> lsp definition

The TS LS interface is more comprehensive, so this allows the Angular LS
to return more information.

PR Close #31972
This commit is contained in:
Keen Yee Liau
2019-08-01 13:07:32 -07:00
committed by Alex Rickabaugh
parent e906a4f0d8
commit a8e2ee1343
10 changed files with 442 additions and 260 deletions

View File

@ -20,12 +20,12 @@
],
"textSpan": {
"start": {
"line": 7,
"offset": 30
"line": 5,
"offset": 26
},
"end": {
"line": 7,
"offset": 47
"line": 5,
"offset": 30
}
}
}

View File

@ -5,7 +5,7 @@
"request_seq": 2,
"success": true,
"body": {
"kind": "",
"kind": "property",
"kindModifiers": "",
"start": {
"line": 5,
@ -15,7 +15,7 @@
"line": 5,
"offset": 30
},
"displayString": "property name of AppComponent",
"displayString": "(property) AppComponent.name",
"documentation": "",
"tags": []
}