28 lines
905 B
TypeScript
28 lines
905 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
// Should define spans for replacement that appear after the last directory seperator in triple slash references
|
|
|
|
// @typeRoots: my_typings
|
|
|
|
// @Filename: test.ts
|
|
//// /// <reference path="./[|some|]/*0*/
|
|
//// /// <reference types="[|some|]/*1*/
|
|
|
|
//// /// <reference path="./sub/[|some|]/*2*/" />
|
|
//// /// <reference types="[|some|]/*3*/" />
|
|
|
|
// @Filename: someFile.ts
|
|
//// /*someFile*/
|
|
|
|
// @Filename: sub/someOtherFile.ts
|
|
//// /*someOtherFile*/
|
|
|
|
// @Filename: my_typings/some-module/index.d.ts
|
|
//// export var x = 9;
|
|
|
|
verify.completions(
|
|
{ marker: "0", exact: ["someFile.ts", "my_typings", "sub"], isNewIdentifierLocation: true },
|
|
{ marker: "1", exact: "some-module", isNewIdentifierLocation: true },
|
|
{ marker: "2", exact: "someOtherFile.ts", isNewIdentifierLocation: true },
|
|
{ marker: "3", exact: "some-module", isNewIdentifierLocation: true },
|
|
);
|