1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
/// <reference path="fourslash.ts" />
// @Filename: /a.tsx
////declare namespace JSX {
//// interface IntrinsicElements {
//// div: { a: string, b: string }
//// }
////}
////const foo = 0;
////<div x=[|f/*0*/|] />;
////
////<div a="1" b/*1*/ />
////<div a /*2*/ />
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" },
);
|