TypeScript/tests/cases/fourslash/tripleSlashRefPathCompletionExtensionsAllowJSFalse.ts
2016-10-04 13:32:37 -07:00

31 lines
734 B
TypeScript

/// <reference path='fourslash.ts' />
// Should give completions for relative references to ts files only when allowJs is false.
// @Filename: test0.ts
//// /// <reference path="/*0*/
//// /// <reference path=".//*1*/
//// /// <reference path="./f/*2*/
// @Filename: f1.ts
//// /*f1*/
// @Filename: f1.js
//// /*f1j*/
// @Filename: f1.d.ts
//// /*f1d*/
// @Filename: f1.tsx
//// /f2*/
// @Filename: f1.js
//// /*f3*/
// @Filename: f1.jsx
//// /*f4*/
// @Filename: f1.cs
//// /*f5*/
for (let i = 0; i < 3; i++) {
goTo.marker("" + i);
verify.completionListContains("f1.ts");
verify.completionListContains("f1.d.ts");
verify.completionListContains("f1.tsx");
verify.not.completionListItemsCountIsGreaterThan(3);
}