Closed Bug 1933140 Opened 10 months ago Closed 3 months ago

`using` keyword isn't displayed in console autocomplete

Categories

(DevTools :: Console, defect, P3)

defect

Tracking

(firefox142 fixed)

RESOLVED FIXED
142 Branch
Tracking Status
firefox142 --- fixed

People

(Reporter: nchevobbe, Assigned: nchevobbe)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

  1. Build with the --enable-explicit-resource-management options enabled in mozconfig, and then turn on javascript.options.experimental.explicit_resource_management
  2. In the console, type us

-> using should be in the list, but it's not

The list of keywords we display in the autocomplete is generated from https://searchfox.org/mozilla-release/rev/31c15d6d5d93f356ba1e880d406d88a13fdc9505/devtools/shared/webconsole/GenerateReservedWordsJS.py , which reads https://searchfox.org/mozilla-release/rev/31c15d6d5d93f356ba1e880d406d88a13fdc9505/js/src/frontend/ReservedWords.h
using is conditionnaly added in here, and our script don't handle this: https://searchfox.org/mozilla-release/rev/31c15d6d5d93f356ba1e880d406d88a13fdc9505/js/src/frontend/ReservedWords.h#41

IF_EXPLICIT_RESOURCE_MANAGEMENT(MACRO(using, using_, TokenKind::Using)) \

not sure we should do more here, this will probably be fixed when explicit resource management is enabled by default

Severity: -- → S3
Priority: -- → P3
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Attachment #9496672 - Attachment description: Bug 1933140 - [devtools] Adapt GenerateReservedWordsJS.py for decorators and explicit resource management. r=arai. → Bug 1933140 - [devtools] Add shared module for GenerateReservedWordsJS.py and GenerateReservedWords.py to read reserved words list. r=arai.
Pushed by nchevobbe@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/172e8b8336e7 https://hg.mozilla.org/integration/autoland/rev/7f5678abbcac [devtools] Add shared module for GenerateReservedWordsJS.py and GenerateReservedWords.py to read reserved words list. r=arai. https://github.com/mozilla-firefox/firefox/commit/4339627f908e https://hg.mozilla.org/integration/autoland/rev/285b6f64fd56 [devtools] Make sure using keyword is in autocompletion result when expected. r=devtools-reviewers,ochameau
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 142 Branch
QA Whiteboard: [qa-triage-done-c143/b142]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: