2016-07-26 22:43:29 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
2016-08-06 02:53:04 +02:00
|
|
|
// Should give completions for modules referenced via baseUrl and paths compiler options with explicit name mappings
|
|
|
|
|
2016-07-26 22:43:29 +02:00
|
|
|
// @Filename: tsconfig.json
|
|
|
|
//// {
|
|
|
|
//// "compilerOptions": {
|
|
|
|
//// "baseUrl": "./modules",
|
|
|
|
//// "paths": {
|
|
|
|
//// "module1": ["some/path/whatever.ts"],
|
|
|
|
//// "module2": ["some/other/path.ts"]
|
|
|
|
//// }
|
|
|
|
//// }
|
|
|
|
//// }
|
|
|
|
|
|
|
|
|
|
|
|
// @Filename: tests/test0.ts
|
|
|
|
//// import * as foo1 from "m/*import_as0*/
|
|
|
|
//// import foo2 = require("m/*import_equals0*/
|
|
|
|
//// var foo3 = require("m/*require0*/
|
|
|
|
|
|
|
|
// @Filename: some/path/whatever.ts
|
|
|
|
//// export var x = 9;
|
|
|
|
|
|
|
|
// @Filename: some/other/path.ts
|
|
|
|
//// export var y = 10;
|
|
|
|
|
2018-10-29 18:03:25 +01:00
|
|
|
verify.completions({ marker: test.markers(), exact: ["module1", "module2"], isNewIdentifierLocation: true });
|