microsoft / microsoft/monaco-editor

[Bug] vscode-dark - typescript function calls and varaibles are colored differently (and have no tokens)

Open
#4,380 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
46.8k
Forks
4.1k
Avg merge
17h 58m
Merged PRs (30d)
1

Description

Reproducible in vscode.dev or in VS Code Desktop?
  • Not reproducible in vscode.dev or VS Code Desktop
Monaco Editor Playground Link

https://microsoft.github.io/monaco-editor/playground.html?source=v0.46.0#example-creating-the-editor-hello-world

Monaco Editor Playground Code

No response

Reproduction Steps

(about typescript/javascript theme)

1 have a function call with parameters and notie they are colored differently
2 f1 -> insepct tokens -> notice they dont have any usable tokens
3 dispair

Actual (Problematic) Behavior

no way to differentiate the tokens

Expected Behavior

there should be a default way to differentiate the tokens

Additional Context

maybe you can use this file here in some way , from the officail vscode repo

https://github.com/microsoft/vscode-typescript-next/blob/d13b7c9b5469e84270111aa88c377ca587a79b02/syntaxes/JavaScript.tmLanguage.json#L3080

also promising https://raw.githubusercontent.com/Microsoft/TypeScript-TmLanguage/master/TypeScript.YAML-tmLanguage

(PS: maybe formulate the "tasks" in a way where they are actually compeltable )

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 with the Monaco Editor Playground link in the reproduction steps, then compare the reported token behavior with the referenced JavaScript.tmLanguage.json and TypeScript.YAML-tmLanguage files. The work is done when TypeScript and JavaScript function calls and variables have distinguishable, usable tokens and the expected coloring is reproducible.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.