Open
Bug 1594009
Opened 3 months ago
Updated 2 days ago
Make console autocompletion work with optional chaining
Categories
(DevTools :: Console, task, P2)
DevTools
Console
P2
Tracking
(Not tracked)
ASSIGNED
People
(Reporter: nchevobbe, Assigned: nchevobbe)
References
Details
Attachments
(1 file)
In Bug 1566143 we plan to add support for optional chaining syntax, which mean we'll have to change how we parse the input for the autocompletion.
Example:
var response = { prototype: {object: { a: 1, b: 2}}}
var result = response?.prototype?.object?.
Here we should check on each part if the property does exist, and retrieve its properties.
So with our example, we should return a and b.
This impact the server side (JsPropertyProvider), as well as the frontend (when we cache the autocompletion result).
It might also have an impact on the ConfirmDialog if any of the optional properties is a getter.
| Assignee | ||
Updated•3 months ago
|
Priority: -- → P2
| Assignee | ||
Updated•1 month ago
|
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
| Assignee | ||
Comment 1•14 days ago
|
||
Updated•2 days ago
|
Attachment #9122314 -
Attachment description: Bug 1594009 - Add optional chaining support for console autocomplete. r=Honza. → Bug 1594009 - Add optional chaining support for console autocomplete. r=ochameau.
You need to log in
before you can comment on or make changes to this bug.
Description
•