-
Notifications
You must be signed in to change notification settings - Fork 12.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(55650): show quick info in JSDoc @implements tag
- Loading branch information
1 parent
d027e96
commit eb09afb
Showing
3 changed files
with
141 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
106 changes: 106 additions & 0 deletions
106
tests/baselines/reference/quickInfoJsDocTags15.baseline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
// === QuickInfo === | ||
=== /b.js === | ||
// import * as _a from "./a.js"; | ||
// /** | ||
// * @implements {_a.Foo} | ||
// ^^^ | ||
// | ---------------------------------------------------------------------- | ||
// | type Foo = { | ||
// | getName: _a.Bar; | ||
// | } | ||
// | ---------------------------------------------------------------------- | ||
// */ | ||
// class Foo { } | ||
|
||
[ | ||
{ | ||
"marker": { | ||
"fileName": "/b.js", | ||
"position": 56, | ||
"name": "2" | ||
}, | ||
"item": { | ||
"kind": "type", | ||
"kindModifiers": "", | ||
"textSpan": { | ||
"start": 53, | ||
"length": 3 | ||
}, | ||
"displayParts": [ | ||
{ | ||
"text": "type", | ||
"kind": "keyword" | ||
}, | ||
{ | ||
"text": " ", | ||
"kind": "space" | ||
}, | ||
{ | ||
"text": "Foo", | ||
"kind": "aliasName" | ||
}, | ||
{ | ||
"text": " ", | ||
"kind": "space" | ||
}, | ||
{ | ||
"text": "=", | ||
"kind": "operator" | ||
}, | ||
{ | ||
"text": " ", | ||
"kind": "space" | ||
}, | ||
{ | ||
"text": "{", | ||
"kind": "punctuation" | ||
}, | ||
{ | ||
"text": "\n", | ||
"kind": "lineBreak" | ||
}, | ||
{ | ||
"text": " ", | ||
"kind": "space" | ||
}, | ||
{ | ||
"text": "getName", | ||
"kind": "propertyName" | ||
}, | ||
{ | ||
"text": ":", | ||
"kind": "punctuation" | ||
}, | ||
{ | ||
"text": " ", | ||
"kind": "space" | ||
}, | ||
{ | ||
"text": "_a", | ||
"kind": "aliasName" | ||
}, | ||
{ | ||
"text": ".", | ||
"kind": "punctuation" | ||
}, | ||
{ | ||
"text": "Bar", | ||
"kind": "aliasName" | ||
}, | ||
{ | ||
"text": ";", | ||
"kind": "punctuation" | ||
}, | ||
{ | ||
"text": "\n", | ||
"kind": "lineBreak" | ||
}, | ||
{ | ||
"text": "}", | ||
"kind": "punctuation" | ||
} | ||
], | ||
"documentation": [] | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/// <reference path="fourslash.ts" /> | ||
|
||
// @allowJs: true | ||
// @checkJs: true | ||
// @filename: /a.js | ||
/////** | ||
//// * @callback Bar | ||
//// * @param {string} name | ||
//// * @returns {string} | ||
//// */ | ||
//// | ||
/////** | ||
//// * @typedef Foo | ||
//// * @property {Bar} getName | ||
//// */ | ||
////export const foo = 1; | ||
|
||
// @filename: /b.js | ||
////import * as _a from "./a.js"; | ||
/////** | ||
//// * @implements {_a.Foo/*2*/} | ||
//// */ | ||
////class Foo { } | ||
|
||
goTo.file("/b.js") | ||
verify.baselineQuickInfo(); |