2018-01-25 18:02:20 +01:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
// @Filename: /a.tsx
|
|
|
|
////function f(this: { p: number; "a b": number }, x: number): void {
|
|
|
|
//// <div foo=/**/ />;
|
|
|
|
////}
|
|
|
|
|
2018-10-29 18:03:25 +01:00
|
|
|
verify.completions({
|
|
|
|
marker: "",
|
|
|
|
includes: [
|
|
|
|
{ name: "x", text: "(parameter) x: number", kind: "parameter", insertText: "{x}" },
|
2019-05-16 23:46:10 +02:00
|
|
|
{ name: "p", text: "(JSX attribute) p: number", kind: "JSX attribute", insertText: "{this.p}", sortText: completion.SortText.SuggestedClassMembers },
|
|
|
|
{ name: "a b", text: '(JSX attribute) "a b": number', kind: "JSX attribute", insertText: '{this["a b"]}', sortText: completion.SortText.SuggestedClassMembers },
|
2018-10-29 18:03:25 +01:00
|
|
|
],
|
|
|
|
preferences: {
|
|
|
|
includeInsertTextCompletions: true,
|
|
|
|
},
|
2018-01-25 18:02:20 +01:00
|
|
|
});
|