2017-11-07 04:14:24 +01:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
// @jsx: preserve
|
|
|
|
|
|
|
|
// @Filename: /a.tsx
|
|
|
|
////declare namespace JSX {
|
|
|
|
//// interface Element {}
|
|
|
|
//// interface IntrinsicElements {
|
|
|
|
//// div: {
|
|
|
|
//// /** Doc */
|
2018-09-06 23:15:12 +02:00
|
|
|
//// foo: boolean;
|
|
|
|
//// bar: string;
|
2017-11-07 04:14:24 +01:00
|
|
|
//// }
|
|
|
|
//// }
|
|
|
|
////}
|
|
|
|
////
|
|
|
|
////<div /**/></div>;
|
|
|
|
|
2018-09-06 23:15:12 +02:00
|
|
|
const exact: ReadonlyArray<FourSlashInterface.ExpectedCompletionEntry> = [
|
2018-10-30 19:56:34 +01:00
|
|
|
{ name: "foo", kind: "JSX attribute", kindModifiers: "declare", text: "(JSX attribute) foo: boolean", documentation: "Doc" },
|
|
|
|
{ name: "bar", kind: "JSX attribute", kindModifiers: "declare", text: "(JSX attribute) bar: string" },
|
2018-09-06 23:15:12 +02:00
|
|
|
];
|
|
|
|
verify.completions({ marker: "", exact });
|
2017-11-07 04:14:24 +01:00
|
|
|
edit.insert("f");
|
2018-09-06 23:15:12 +02:00
|
|
|
verify.completions({ exact });
|
|
|
|
edit.insert("oo ");
|
|
|
|
verify.completions({ exact: exact[1] });
|
|
|
|
edit.insert("b");
|
|
|
|
verify.completions({ exact: exact[1] });
|