Closed
Bug 1498598
Opened 7 years ago
Closed 7 years ago
Autocomplete popup should not be displayed after `var `, `let ` or `const `
Categories
(DevTools :: Console, defect, P1)
DevTools
Console
Tracking
(firefox64 fixed)
RESOLVED
FIXED
Firefox 64
| Tracking | Status | |
|---|---|---|
| firefox64 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
Details
(Whiteboard: [boogaloo-mvp])
Attachments
(1 file)
**Steps to reproduce**
1. Open the console
2. Type `var w`
**Actual results**
The autocomplete popup opens, but since I want to define a new variable it gets into my way.
---
We should simply not show the autocomplete when the user wants to define a variable.
I guess this could be extended to `function `, `class ` and I'm sure other I'm forgetting when it does not make sense to show the popup.
| Assignee | ||
Updated•7 years ago
|
Whiteboard: [boogaloo-mvp]
| Assignee | ||
Updated•7 years ago
|
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Priority: -- → P1
| Assignee | ||
Comment 1•7 years ago
|
||
This patches solves 2 issues:
- it doesn't return any result when the user is trying to
perform a variable, function or class declaration (e.g.
var d).
- js-property-provider used to compute the last statement
by only looking for space or ; chars. But there are a lot
of cases (basically each time using an operator), where we
should return results and we weren't.
Test cases are added to cover those fixes.
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a8e1eaf6d370
Make js-property-provider better; r=bgrins.
Comment 3•7 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox64:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 64
You need to log in
before you can comment on or make changes to this bug.
Description
•