-
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.
- Loading branch information
1 parent
df23ce3
commit 0b0029d
Showing
7 changed files
with
156 additions
and
16 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
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
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
48 changes: 48 additions & 0 deletions
48
tests/baselines/reference/jsdocImportTypeTagCompletion2.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,48 @@ | ||
// === Completions === | ||
=== /b.js === | ||
// /** | ||
// * @importType { } from "./a" | ||
// ^ | ||
// | ---------------------------------------------------------------------- | ||
// | interface A | ||
// | ---------------------------------------------------------------------- | ||
// */ | ||
|
||
[ | ||
{ | ||
"marker": { | ||
"fileName": "/b.js", | ||
"position": 21, | ||
"name": "" | ||
}, | ||
"item": { | ||
"flags": 0, | ||
"isGlobalCompletion": false, | ||
"isMemberCompletion": true, | ||
"isNewIdentifierLocation": false, | ||
"entries": [ | ||
{ | ||
"name": "A", | ||
"kind": "interface", | ||
"kindModifiers": "export", | ||
"sortText": "11", | ||
"displayParts": [ | ||
{ | ||
"text": "interface", | ||
"kind": "keyword" | ||
}, | ||
{ | ||
"text": " ", | ||
"kind": "space" | ||
}, | ||
{ | ||
"text": "A", | ||
"kind": "interfaceName" | ||
} | ||
], | ||
"documentation": [] | ||
} | ||
] | ||
} | ||
} | ||
] |
51 changes: 51 additions & 0 deletions
51
tests/baselines/reference/jsdocImportTypeTagCompletion3.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,51 @@ | ||
// === Completions === | ||
=== /tests/cases/fourslash/./c.js === | ||
// /** | ||
// * @importType * as types from "./" | ||
// ^ | ||
// | ---------------------------------------------------------------------- | ||
// | a | ||
// | b | ||
// | ---------------------------------------------------------------------- | ||
// */ | ||
|
||
[ | ||
{ | ||
"marker": { | ||
"fileName": "/tests/cases/fourslash/./c.js", | ||
"position": 38, | ||
"name": "" | ||
}, | ||
"item": { | ||
"isGlobalCompletion": false, | ||
"isMemberCompletion": false, | ||
"isNewIdentifierLocation": true, | ||
"entries": [ | ||
{ | ||
"name": "a", | ||
"kind": "script", | ||
"kindModifiers": ".ts", | ||
"sortText": "11", | ||
"displayParts": [ | ||
{ | ||
"text": "a", | ||
"kind": "text" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "b", | ||
"kind": "script", | ||
"kindModifiers": ".ts", | ||
"sortText": "11", | ||
"displayParts": [ | ||
{ | ||
"text": "b", | ||
"kind": "text" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
] |
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,14 @@ | ||
///<reference path="fourslash.ts" /> | ||
|
||
// @allowJS: true | ||
// @checkJs: true | ||
|
||
// @filename: /a.ts | ||
////export interface A {} | ||
|
||
// @filename: /b.js | ||
/////** | ||
//// * @importType { /**/ } from "./a" | ||
//// */ | ||
|
||
verify.baselineCompletions(); |
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,18 @@ | ||
///<reference path="fourslash.ts" /> | ||
|
||
// @allowJS: true | ||
// @checkJs: true | ||
// @module: esnext | ||
|
||
// @filename: ./a.ts | ||
////export interface A {} | ||
|
||
// @filename: ./b.ts | ||
////export interface B {} | ||
|
||
// @filename: ./c.js | ||
/////** | ||
//// * @importType * as types from ".//**/" | ||
//// */ | ||
|
||
verify.baselineCompletions(); |