2016-07-28 20:52:15 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
2016-08-06 02:53:04 +02:00
|
|
|
// Should give completions for typings discovered in all visible @types directories
|
|
|
|
|
2016-07-28 20:52:15 +02:00
|
|
|
// @Filename: subdirectory/test0.ts
|
2016-07-28 22:12:53 +02:00
|
|
|
//// /// <reference types="m/*types_ref0*/" />
|
2016-07-28 20:52:15 +02:00
|
|
|
//// import * as foo1 from "m/*import_as0*/
|
|
|
|
//// import foo2 = require("m/*import_equals0*/
|
|
|
|
//// var foo3 = require("m/*require0*/
|
|
|
|
|
|
|
|
// @Filename: subdirectory/node_modules/@types/module-x/index.d.ts
|
|
|
|
//// export var x = 9;
|
|
|
|
// @Filename: subdirectory/package.json
|
|
|
|
//// { "dependencies": { "@types/module-x": "latest" } }
|
|
|
|
|
|
|
|
// @Filename: node_modules/@types/module-y/index.d.ts
|
|
|
|
//// export var y = 9;
|
|
|
|
// @Filename: package.json
|
|
|
|
//// { "dependencies": { "@types/module-y": "latest" } }
|
|
|
|
|
2016-07-28 22:12:53 +02:00
|
|
|
const kinds = ["types_ref", "import_as", "import_equals", "require"];
|
2016-07-28 20:52:15 +02:00
|
|
|
|
|
|
|
for (const kind of kinds) {
|
|
|
|
goTo.marker(kind + "0");
|
2016-09-01 04:20:15 +02:00
|
|
|
verify.completionListContains("module-x");
|
|
|
|
verify.completionListContains("module-y");
|
|
|
|
verify.not.completionListItemsCountIsGreaterThan(2);
|
2016-07-28 20:52:15 +02:00
|
|
|
}
|