29 lines
925 B
TypeScript
29 lines
925 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
// Should define spans for replacement that appear after the last directory seperator in export statements
|
|
|
|
// @typeRoots: my_typings
|
|
|
|
// @Filename: test.ts
|
|
//// export * from "./some/*0*/
|
|
//// export * from "./sub/some/*1*/";
|
|
//// export * from "[|some-/*2*/|]";
|
|
//// export * from "..//*3*/";
|
|
//// export {} from ".//*4*/";
|
|
|
|
|
|
// @Filename: someFile1.ts
|
|
//// /*someFile1*/
|
|
|
|
// @Filename: sub/someFile2.ts
|
|
//// /*someFile2*/
|
|
|
|
// @Filename: my_typings/some-module/index.d.ts
|
|
//// export var x = 9;
|
|
|
|
verify.completions(
|
|
{ marker: ["0", "4"], exact: ["someFile1", "my_typings", "sub"], isNewIdentifierLocation: true },
|
|
{ marker: "1", exact: "someFile2", isNewIdentifierLocation: true },
|
|
{ marker: "2", exact: { name: "some-module", replacementSpan: test.ranges()[0] }, isNewIdentifierLocation: true },
|
|
{ marker: "3", exact: "fourslash", isNewIdentifierLocation: true },
|
|
);
|