2016-06-24 22:56:45 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
2016-08-06 02:53:04 +02:00
|
|
|
// Should not give duplicate entries for similarly named files with different extensions
|
|
|
|
|
2016-06-24 22:56:45 +02:00
|
|
|
// @Filename: tests/test0.ts
|
2016-06-27 22:06:40 +02:00
|
|
|
//// import * as foo1 from "fake-module//*import_as0*/
|
|
|
|
//// import foo2 = require("fake-module//*import_equals0*/
|
|
|
|
//// var foo3 = require("fake-module//*require0*/
|
2016-06-24 22:56:45 +02:00
|
|
|
|
|
|
|
// @Filename: package.json
|
|
|
|
//// { "dependencies": { "fake-module": "latest" }, "devDependencies": { "fake-module-dev": "latest" } }
|
|
|
|
|
|
|
|
// @Filename: node_modules/fake-module/repeated.ts
|
|
|
|
//// /*repeatedts*/
|
|
|
|
// @Filename: node_modules/fake-module/repeated.tsx
|
|
|
|
//// /*repeatedtsx*/
|
|
|
|
// @Filename: node_modules/fake-module/repeated.d.ts
|
|
|
|
//// /*repeateddts*/
|
|
|
|
// @Filename: node_modules/fake-module/other.js
|
|
|
|
//// /*other*/
|
|
|
|
// @Filename: node_modules/fake-module/other2.js
|
|
|
|
//// /*other2*/
|
|
|
|
|
|
|
|
// @Filename: node_modules/unlisted-module/index.js
|
|
|
|
//// /*unlisted-module*/
|
|
|
|
|
2016-07-28 20:52:15 +02:00
|
|
|
// @Filename: ambient.ts
|
|
|
|
//// declare module "fake-module/other"
|
2016-06-24 22:56:45 +02:00
|
|
|
|
2018-10-29 18:03:25 +01:00
|
|
|
verify.completions({ marker: ["import_as0", "import_equals0", "require0"], exact: ["other", "repeated"], isNewIdentifierLocation: true });
|