2016-08-02 01:58:33 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
2016-08-06 02:53:04 +02:00
|
|
|
// Should define spans for replacement that appear after the last directory seperator in import statements
|
|
|
|
|
2016-08-02 02:49:13 +02:00
|
|
|
// @typeRoots: my_typings
|
|
|
|
|
2016-08-02 01:58:33 +02:00
|
|
|
// @Filename: test.ts
|
2018-03-28 00:15:50 +02:00
|
|
|
//// import * as foo0 from "./some/*0*/
|
|
|
|
//// import * as foo1 from "./sub/some/*1*/
|
2016-08-02 02:49:13 +02:00
|
|
|
//// import * as foo2 from "[|some-|]/*2*/"
|
2018-03-28 00:15:50 +02:00
|
|
|
//// import * as foo3 from "..//*3*/";
|
2016-08-02 02:49:13 +02:00
|
|
|
|
|
|
|
|
|
|
|
// @Filename: someFile1.ts
|
|
|
|
//// /*someFile1*/
|
|
|
|
|
|
|
|
// @Filename: sub/someFile2.ts
|
|
|
|
//// /*someFile2*/
|
|
|
|
|
|
|
|
// @Filename: my_typings/some-module/index.d.ts
|
|
|
|
//// export var x = 9;
|
2016-08-02 01:58:33 +02:00
|
|
|
|
2018-10-29 18:03:25 +01:00
|
|
|
verify.completions(
|
|
|
|
{ marker: "0", 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 },
|
|
|
|
);
|