Display variables declared in the expression in the autocomplete popup
Categories
(DevTools :: Console, enhancement, P3)
Tracking
(firefox73 fixed)
Tracking | Status | |
---|---|---|
firefox73 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
Details
Attachments
(1 file)
Given the following expression in the console input
var win = window;
wi
The autocomplete popup should display both win
and window
.
Assignee | ||
Comment 1•5 years ago
|
||
Variables are retrieved from CodeMirror state and sent to the
webconsole actor, where the filtering is done.
Depends on D57342
Assignee | ||
Comment 2•5 years ago
|
||
The attached patch works quite well, with one limitation: when in a function, it does not autocomplete the function parameters.
I'm not sure if I'm doing something wrong or if it's a codeMirror limitation.
I asked the question on https://discuss.codemirror.net/t/function-parameter-autocomplete/2240
This isn't too bad though, and we could probably fix that in a follow up.
Assignee | ||
Comment 3•5 years ago
|
||
(In reply to Nicolas Chevobbe [:nchevobbe] from comment #2)
The attached patch works quite well, with one limitation: when in a function, it does not autocomplete the function parameters.
I'm not sure if I'm doing something wrong or if it's a codeMirror limitation.
I asked the question on https://discuss.codemirror.net/t/function-parameter-autocomplete/2240This isn't too bad though, and we could probably fix that in a follow up.
Needed to look into the state context
too. Now it works fine :)
Comment 5•5 years ago
|
||
bugherder |
Description
•