2018-02-06 20:40:39 +01:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
// @Filename: /a.tsx
|
2018-04-05 17:30:02 +02:00
|
|
|
////declare namespace JSX {
|
|
|
|
//// interface IntrinsicElements {
|
|
|
|
//// div: { a: string, b: string }
|
|
|
|
//// }
|
|
|
|
////}
|
2018-02-06 20:40:39 +01:00
|
|
|
////const foo = 0;
|
2018-04-05 17:30:02 +02:00
|
|
|
////<div x=[|f/*0*/|] />;
|
|
|
|
////
|
|
|
|
////<div a="1" b/*1*/ />
|
|
|
|
////<div a /*2*/ />
|
2018-02-06 20:40:39 +01:00
|
|
|
|
2018-10-29 18:03:25 +01:00
|
|
|
verify.completions(
|
|
|
|
{
|
|
|
|
marker: "0",
|
|
|
|
includes: { name: "foo", text: "const foo: 0", kind: "const", insertText: "{foo}", replacementSpan: test.ranges()[0] },
|
|
|
|
preferences: { includeInsertTextCompletions: true },
|
|
|
|
},
|
|
|
|
{ marker: ["1", "2"], exact: "b" },
|
|
|
|
);
|