29 lines
824 B
TypeScript
29 lines
824 B
TypeScript
|
/// <reference path='fourslash.ts' />
|
||
|
|
||
|
// Should give completions for modules referenced via baseUrl and paths compiler options with explicit name mappings
|
||
|
|
||
|
// @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;
|
||
|
|
||
|
verify.completions({ marker: test.markerNames(), exact: ["/module1", "/module2"], isNewIdentifierLocation: true });
|