-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed as not planned
Description
π Search Terms
π Version & Regression Information
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about Crash in VSCode InlayHint:
Unhandled case in Node.ElementList: KindTupleTypeΒ typescript-go#2039
β― Playground Link
π» Code
/// <reference path="fourslash.ts" />
//// function iterateTuples(tuples: [string, string][]) {
//// tuples.forEach((t) => {})
//// }
verify.baselineInlayHints(undefined, {
includeInlayVariableTypeHints: true,
includeInlayParameterNameHints: "all",
includeInlayFunctionParameterTypeHints: true,
});π Actual behavior
On TypeScript, this works as intended.
On the TypeScript Go port, we get the error seen in microsoft/typescript-go#2039:
Unhandled case in Node.ElementList: KindTupleType
π Expected behavior
// === Inlay Hints ===
tuples.forEach((t) => {})
^
{
"text": "callbackfn:",
"position": 72,
"kind": "Parameter",
"whitespaceAfter": true
}
tuples.forEach((t) => {})
^
{
"text": ": [string, string]",
"position": 74,
"kind": "Type",
"whitespaceBefore": true
}
Additional information about the issue
See #62740 for the PR that adds this test case and baseline.
Metadata
Metadata
Assignees
Labels
No labels