18 lines
610 B
TypeScript
18 lines
610 B
TypeScript
/// <reference path="fourslash.ts" />
|
|
|
|
// @Filename: /a.tsx
|
|
////function f(this: { p: number; "a b": number }, x: number): void {
|
|
//// <div foo=/**/ />;
|
|
////}
|
|
|
|
verify.completions({
|
|
marker: "",
|
|
includes: [
|
|
{ name: "x", text: "(parameter) x: number", kind: "parameter", insertText: "{x}" },
|
|
{ name: "p", text: "(JSX attribute) p: number", kind: "JSX attribute", insertText: "{this.p}" },
|
|
{ name: "a b", text: '(JSX attribute) "a b": number', kind: "JSX attribute", insertText: '{this["a b"]}' },
|
|
],
|
|
preferences: {
|
|
includeInsertTextCompletions: true,
|
|
},
|
|
});
|