TypeScript/tests/cases/fourslash/tripleSlashRefPathCompletionExtensionsAllowJSFalse.ts

30 lines
567 B
TypeScript
Raw Normal View History

2016-09-30 01:17:20 +02:00
/// <reference path='fourslash.ts' />
2016-10-04 22:32:37 +02:00
// Should give completions for relative references to ts files only when allowJs is false.
2016-09-30 01:17:20 +02:00
// @Filename: test0.ts
//// /// <reference path="/*0*/
//// /// <reference path=".//*1*/
//// /// <reference path="./f/*2*/
// @Filename: f1.ts
////
2016-09-30 01:17:20 +02:00
// @Filename: f1.js
////
2016-09-30 01:17:20 +02:00
// @Filename: f1.d.ts
////
2016-09-30 01:17:20 +02:00
// @Filename: f1.tsx
////
2016-09-30 01:17:20 +02:00
// @Filename: f1.js
////
2016-09-30 01:17:20 +02:00
// @Filename: f1.jsx
////
2016-09-30 01:17:20 +02:00
// @Filename: f1.cs
////
2016-09-30 01:17:20 +02:00
verify.completions({
marker: test.markers(),
exact: ["f1.d.ts", "f1.ts", "f1.tsx"],
isNewIdentifierLocation: true,
});