Files
tsgo/testdata/baselines/reference/fourslash/quickInfo/quickInfoDisplayPartsUsing.baseline
e0069505b9 Use typescript instead of tsx for hover code block language (#3458)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: jakebailey <[email protected]>
2026-04-22 17:14:11 +00:00

78 lines
1.6 KiB
Plaintext

// === QuickInfo ===
=== /quickInfoDisplayPartsUsing.ts ===
// using a = "a";
// ^
// | ----------------------------------------------------------------------
// | ```typescript
// | using a: "a"
// | ```
// |
// | ----------------------------------------------------------------------
// const f = async () => {
// await using b = { async [Symbol.asyncDispose]() {} };
// ^
// | ----------------------------------------------------------------------
// | ```typescript
// | await using b: {
// | [Symbol.asyncDispose](): Promise<void>;
// | }
// | ```
// |
// | ----------------------------------------------------------------------
// };
[
{
"marker": {
"Position": 7,
"LSPosition": {
"line": 0,
"character": 7
},
"Name": "a",
"Data": {}
},
"item": {
"contents": {
"kind": "markdown",
"value": "```typescript\nusing a: \"a\"\n```\n"
},
"range": {
"start": {
"line": 0,
"character": 6
},
"end": {
"line": 0,
"character": 7
}
}
}
},
{
"marker": {
"Position": 55,
"LSPosition": {
"line": 2,
"character": 16
},
"Name": "b",
"Data": {}
},
"item": {
"contents": {
"kind": "markdown",
"value": "```typescript\nawait using b: {\n [Symbol.asyncDispose](): Promise<void>;\n}\n```\n"
},
"range": {
"start": {
"line": 2,
"character": 16
},
"end": {
"line": 2,
"character": 17
}
}
}
}
]