Open Bug 1873657 Opened 10 months ago Updated 10 months ago

Stop using the parser worker for determining JSX and typescript jsx

Categories

(DevTools :: Debugger, enhancement)

enhancement

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: bomsy, Assigned: bomsy)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Currently the parser worker gathers JSX and typescript details about a source file https://searchfox.org/mozilla-central/rev/7fc94186f1a759790c56e41a90ab350d78dbda30/devtools/client/debugger/src/workers/parser/getSymbols.js#52-54,56-58,106-107,376-377

These information is used to determine the editor modes.
https://searchfox.org/mozilla-central/rev/7fc94186f1a759790c56e41a90ab350d78dbda30/devtools/client/debugger/src/utils/editor/source-documents.js#159-169

With the impact of the parser worker on performance, we could probably determine jsx / typescript editor modes based on the file extensions and avoid using the worker for these.

Assignee: nobody → hmanilla
Attachment #9371744 - Attachment description: WIP: Bug 1873657 - [devtools] Stop using the parser worker for determining JSX and typescript jsx → Bug 1873657 - [devtools] Stop using the parser worker for determining JSX and typescript jsx r=#devtools-reviewers
Status: NEW → ASSIGNED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: