Add @link jsdoc auto-complete (#43475)

* feat(services): jsdoc add link tag name

* test: add jsdoc inline test
This commit is contained in:
Sang 2021-04-02 11:02:50 +11:00 committed by GitHub
parent c6a2e45768
commit f9b35cd302
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -44,6 +44,7 @@ namespace ts.JsDoc {
"kind",
"lends",
"license",
"link",
"listens",
"member",
"memberof",

View File

@ -53,6 +53,10 @@
//// */
////
//// /** @param /*16*/ */
////
//// /**
//// * jsdoc inline tag {@/*17*/}
//// */
verify.completions(
{ marker: ["1", "2"], includes: ["constructor", "param", "type", "method", "template"] },
@ -60,4 +64,5 @@ verify.completions(
{ marker: ["4", "5", "8"], includes: { name: "number", sortText: completion.SortText.GlobalsOrKeywords } },
{ marker: ["6", "7", "14"], exact: undefined },
{ marker: ["9", "10", "11", "12", "13"], includes: ["@argument", "@returns"] },
{ marker: ["17"], includes: ["link", "tutorial"] },
);