mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-03-15 14:05:47 -05:00
Add a test for finding all references of same-named imports from two missing modules (#55519)
This commit is contained in:
committed by
GitHub
parent
270a471e11
commit
27a5bdd446
@@ -0,0 +1,43 @@
|
||||
// === findAllReferences ===
|
||||
// === /tests/cases/fourslash/findAllRefsMissingModulesOverlappingSpecifiers.ts ===
|
||||
// // https://github.com/microsoft/TypeScript/issues/5551
|
||||
// import { resolve/*FIND ALL REFS*/ as resolveUrl } from "idontcare";
|
||||
// import { resolve } from "whatever";
|
||||
|
||||
|
||||
|
||||
// === findAllReferences ===
|
||||
// === /tests/cases/fourslash/findAllRefsMissingModulesOverlappingSpecifiers.ts ===
|
||||
// // https://github.com/microsoft/TypeScript/issues/5551
|
||||
// import { resolve as resolveUrl } from "idontcare";
|
||||
// <|import { [|{| isWriteAccess: true, isDefinition: true |}resolve|]/*FIND ALL REFS*/ } from "whatever";|>
|
||||
|
||||
// === Definitions ===
|
||||
// === /tests/cases/fourslash/findAllRefsMissingModulesOverlappingSpecifiers.ts ===
|
||||
// // https://github.com/microsoft/TypeScript/issues/5551
|
||||
// import { resolve as resolveUrl } from "idontcare";
|
||||
// <|import { [|resolve|]/*FIND ALL REFS*/ } from "whatever";|>
|
||||
|
||||
// === Details ===
|
||||
[
|
||||
{
|
||||
"containerKind": "",
|
||||
"containerName": "",
|
||||
"kind": "alias",
|
||||
"name": "import resolve",
|
||||
"displayParts": [
|
||||
{
|
||||
"text": "import",
|
||||
"kind": "keyword"
|
||||
},
|
||||
{
|
||||
"text": " ",
|
||||
"kind": "space"
|
||||
},
|
||||
{
|
||||
"text": "resolve",
|
||||
"kind": "aliasName"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,7 @@
|
||||
/// <reference path="fourslash.ts" />
|
||||
|
||||
//// // https://github.com/microsoft/TypeScript/issues/5551
|
||||
//// import { resolve/*0*/ as resolveUrl } from "idontcare";
|
||||
//// import { resolve/*1*/ } from "whatever";
|
||||
|
||||
verify.baselineFindAllReferences("0", "1");
|
||||
Reference in New Issue
Block a user