fix(language-service): Insert parentheses for method completion (#33860)

This commit leverages the `insertText` field in `ts.CompletionEntry` to
return a completion text for class methods that includes parentheses.

PR closes https://github.com/angular/vscode-ng-language-service/issues/15

PR Close #33860
This commit is contained in:
Keen Yee Liau
2019-11-15 12:06:00 -08:00
committed by Miško Hevery
parent db4789bf91
commit fb22f18694
4 changed files with 102 additions and 44 deletions

View File

@ -128,6 +128,7 @@ describe('plugin', () => {
kind: CompletionKind.PROPERTY as any,
sortText: 'children',
replacementSpan: {start: 182, length: 8},
insertText: 'children',
},
]);
});