2016-06-24 22:56:45 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
2016-08-06 02:53:04 +02:00
|
|
|
// Should give completions for all node modules visible to the script
|
|
|
|
|
2016-06-24 22:56:45 +02:00
|
|
|
// @Filename: dir1/dir2/dir3/dir4/test0.ts
|
2016-06-27 22:06:40 +02:00
|
|
|
//// import * as foo1 from "f/*import_as0*/
|
|
|
|
//// import foo4 = require("f/*import_equals0*/
|
|
|
|
//// var foo7 = require("f/*require0*/
|
2016-06-24 22:56:45 +02:00
|
|
|
|
|
|
|
// @Filename: package.json
|
|
|
|
//// { "dependencies": { "fake-module": "latest" } }
|
|
|
|
// @Filename: node_modules/fake-module/ts.ts
|
2018-05-01 22:00:13 +02:00
|
|
|
////
|
2016-06-24 22:56:45 +02:00
|
|
|
|
|
|
|
// @Filename: dir1/package.json
|
|
|
|
//// { "dependencies": { "fake-module2": "latest" } }
|
2016-07-28 20:52:15 +02:00
|
|
|
// @Filename: dir1/node_modules/fake-module2/index.ts
|
2018-05-01 22:00:13 +02:00
|
|
|
////
|
2016-06-24 22:56:45 +02:00
|
|
|
|
|
|
|
// @Filename: dir1/dir2/dir3/package.json
|
|
|
|
//// { "dependencies": { "fake-module3": "latest" } }
|
|
|
|
// @Filename: dir1/dir2/dir3/node_modules/fake-module3/ts.ts
|
2018-05-01 22:00:13 +02:00
|
|
|
////
|
2016-06-24 22:56:45 +02:00
|
|
|
|
2018-05-01 22:00:13 +02:00
|
|
|
verify.completions({
|
2018-10-29 18:03:25 +01:00
|
|
|
marker: test.markers(),
|
2018-05-03 22:04:08 +02:00
|
|
|
exact: ["fake-module3", "fake-module2", "fake-module"],
|
2018-05-01 22:00:13 +02:00
|
|
|
isNewIdentifierLocation: true,
|
|
|
|
});
|