2016-07-27 20:41:45 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
2016-08-06 02:53:04 +02:00
|
|
|
// Should give completions for directories that are merged via the rootDirs compiler option
|
|
|
|
|
2018-11-16 00:11:27 +01:00
|
|
|
// @rootDirs: /sub/src1,/src2
|
2016-07-27 20:41:45 +02:00
|
|
|
|
2018-11-16 00:11:27 +01:00
|
|
|
// @Filename: /src2/test0.ts
|
2016-07-27 20:41:45 +02:00
|
|
|
//// import * as foo1 from "./mo/*import_as0*/
|
|
|
|
//// import foo2 = require("./mo/*import_equals0*/
|
|
|
|
//// var foo3 = require("./mo/*require0*/
|
|
|
|
|
2018-11-16 00:11:27 +01:00
|
|
|
// @Filename: /src2/inner/inner0.ts
|
|
|
|
////import * as s from ".//*inner*/";
|
|
|
|
|
|
|
|
// @Filename: /src2/inner/inner1.ts
|
|
|
|
////export const x = 0;
|
|
|
|
|
|
|
|
// @Filename: /src2/module0.ts
|
2016-07-27 20:41:45 +02:00
|
|
|
//// export var w = 0;
|
|
|
|
|
2018-11-16 00:11:27 +01:00
|
|
|
// @Filename: /sub/src1/module1.ts
|
2016-07-27 20:41:45 +02:00
|
|
|
//// export var x = 0;
|
|
|
|
|
2018-11-16 00:11:27 +01:00
|
|
|
// @Filename: /sub/src1/module2.ts
|
2016-07-27 20:41:45 +02:00
|
|
|
//// export var y = 0;
|
|
|
|
|
2018-11-16 00:11:27 +01:00
|
|
|
// @Filename: /sub/src1/more/module3.ts
|
2016-07-27 20:41:45 +02:00
|
|
|
//// export var z = 0;
|
|
|
|
|
|
|
|
|
|
|
|
// @Filename: f1.ts
|
2018-05-01 22:00:13 +02:00
|
|
|
////
|
2016-07-27 20:41:45 +02:00
|
|
|
// @Filename: f2.tsx
|
2018-05-01 22:00:13 +02:00
|
|
|
////
|
2016-07-27 20:41:45 +02:00
|
|
|
// @Filename: folder/f1.ts
|
2018-05-01 22:00:13 +02:00
|
|
|
////
|
2016-07-27 20:41:45 +02:00
|
|
|
// @Filename: f3.js
|
2018-05-01 22:00:13 +02:00
|
|
|
////
|
2016-07-27 20:41:45 +02:00
|
|
|
// @Filename: f4.jsx
|
2018-05-01 22:00:13 +02:00
|
|
|
////
|
2016-07-27 20:41:45 +02:00
|
|
|
// @Filename: e1.ts
|
2018-05-01 22:00:13 +02:00
|
|
|
////
|
2016-07-27 20:41:45 +02:00
|
|
|
// @Filename: e2.js
|
2018-05-01 22:00:13 +02:00
|
|
|
////
|
2016-07-27 20:41:45 +02:00
|
|
|
|
2018-11-16 00:11:27 +01:00
|
|
|
verify.completions(
|
|
|
|
{
|
|
|
|
marker: ["import_as0", "import_equals0", "require0"],
|
|
|
|
exact: ["module1", "module2", "more", "module0", "inner"],
|
|
|
|
isNewIdentifierLocation: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
marker: "inner",
|
|
|
|
exact: "inner1",
|
|
|
|
isNewIdentifierLocation: true,
|
|
|
|
}
|
|
|
|
);
|