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 triple slash references
|
|
|
|
|
2016-08-02 01:58:33 +02:00
|
|
|
// @typeRoots: my_typings
|
|
|
|
|
|
|
|
// @Filename: test.ts
|
2016-08-02 02:49:13 +02:00
|
|
|
//// /// <reference path="./[|some|]/*0*/
|
2016-08-02 01:58:33 +02:00
|
|
|
//// /// <reference types="[|some|]/*1*/
|
|
|
|
|
2016-08-02 02:49:13 +02:00
|
|
|
//// /// <reference path="./sub/[|some|]/*2*/" />
|
2016-08-02 01:58:33 +02:00
|
|
|
//// /// <reference types="[|some|]/*3*/" />
|
|
|
|
|
|
|
|
// @Filename: someFile.ts
|
|
|
|
//// /*someFile*/
|
|
|
|
|
2016-08-02 02:49:13 +02:00
|
|
|
// @Filename: sub/someOtherFile.ts
|
|
|
|
//// /*someOtherFile*/
|
|
|
|
|
2016-08-02 01:58:33 +02:00
|
|
|
// @Filename: my_typings/some-module/index.d.ts
|
|
|
|
//// export var x = 9;
|
|
|
|
|
|
|
|
goTo.marker("0");
|
2016-09-01 04:20:15 +02:00
|
|
|
verify.completionListContains("someFile.ts", undefined, undefined, undefined, 0);
|
2016-08-02 01:58:33 +02:00
|
|
|
|
|
|
|
goTo.marker("1");
|
2016-09-01 04:20:15 +02:00
|
|
|
verify.completionListContains("some-module", undefined, undefined, undefined, 1);
|
2016-08-02 01:58:33 +02:00
|
|
|
|
|
|
|
goTo.marker("2");
|
2016-09-01 04:20:15 +02:00
|
|
|
verify.completionListContains("someOtherFile.ts", undefined, undefined, undefined, 2);
|
2016-08-02 01:58:33 +02:00
|
|
|
|
|
|
|
goTo.marker("3");
|
2016-09-01 04:20:15 +02:00
|
|
|
verify.completionListContains("some-module", undefined, undefined, undefined, 3);
|