microsoft / microsoft/pxt

Namespace coloring doesn't work anymore

Open
#6,934 1 comment 0 reactions 0 assignees View on GitHub

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
screenshot1

To Reproduce

  1. Download the pxt-microbit project (Version 2.3.25)
  2. Run pxt-microbit with local server setup
  3. 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

  1. OS: WIndows 10
  2. pxt-microbit version: 2.3.25
  3. 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.
screenshot2

Can anyone help me out with this? Thank you guys.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.