2018-10-23 03:17:09 +02:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
// @Filename: /node_modules/@types/foo/index.d.ts
|
|
|
|
////
|
|
|
|
|
|
|
|
// @Filename: /node_modules/@types/foo/bar.d.ts
|
|
|
|
////
|
|
|
|
|
|
|
|
// @Filename: /a.ts
|
|
|
|
////import {} from "unrelated//*0*/";
|
|
|
|
////import {} from "foo//*1*/";
|
|
|
|
/////// <reference types="foo//*2*/" />
|
|
|
|
|
|
|
|
verify.completions(
|
|
|
|
{ marker: "0", exact: [], isNewIdentifierLocation: true },
|
2018-10-30 19:56:34 +01:00
|
|
|
{
|
|
|
|
marker: ["1", "2"],
|
|
|
|
exact: ["bar", "index"].map(name => ({ name, kind: "script", kindModifiers: ".d.ts" })),
|
|
|
|
isNewIdentifierLocation: true,
|
|
|
|
},
|
2018-10-23 03:17:09 +02:00
|
|
|
);
|