Namespace coloring doesn't work anymore
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 641
- Avg merge
- 12h 4m
- Merged PRs (30d)
- 57
Description
Describe the bug
The feature of automatic namespace coloring in JavaScript Editor doesn't work anymore.
Screenshots

To Reproduce
- Download the pxt-microbit project (Version 2.3.25)
- Run pxt-microbit with local server setup
- Switch to JavaScript Editor and see error
The same issue can be also found from pxt-maker project
https://maker.makecode.com/#editor
Addtional Context
- OS: WIndows 10
- pxt-microbit version: 2.3.25
- pxt-core version: 5.37.38
Expected behavior
The Text Editor automatically colors each of function and its respective namespace to match the colors of the respective block in the Block Editor.

Can anyone help me out with this? Thank you guys.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the problem in the JavaScript Editor using the pxt-microbit project version 2.3.25 and the local server setup described in the issue. Compare namespace coloring with the Block Editor's colors and verify the behavior in the pxt-maker project; done means functions and their respective namespaces are automatically colored consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- developer-experience, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100