๐ Search Terms
object literal, error span, squigglies, highlight, decoration, editor, range
โ
Viability Checklist
โญ Suggestion
When defining an object literal with a missing key, e.g. as a function input, highlight only the first line of the object literal as opposed to the entire node.
๐ Motivating Example
Current behavior (one parameter with missing key):

Suggested behavior (one parameter with missing key):

Current behavior (two parameters with missing keys):

Suggested behavior(two parameters with missing keys):

Here's a TS playground link with the original source:
https://tsplay.dev/N9a3qN
๐ป Use Cases
This would make errors clearer and less jarring when defining large objects as function inputs.
๐ Search Terms
object literal, error span, squigglies, highlight, decoration, editor, range
โ Viability Checklist
โญ Suggestion
When defining an object literal with a missing key, e.g. as a function input, highlight only the first line of the object literal as opposed to the entire node.
๐ Motivating Example
Current behavior (one parameter with missing key):
Suggested behavior (one parameter with missing key):

Current behavior (two parameters with missing keys):

Suggested behavior(two parameters with missing keys):

Here's a TS playground link with the original source:
https://tsplay.dev/N9a3qN
๐ป Use Cases
This would make errors clearer and less jarring when defining large objects as function inputs.