microsoft / microsoft/monaco-editor
[Bug] No syntax highlighting for JSDoc any longer
Open
Nobody has claimed this yet.
bug
confirmed
- 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
Reproducible in the monaco editor playground?
- Not reproducible in the monaco editor playground
Monaco Editor Playground Link
Monaco Editor Playground Code
/**
* @template {Record<string, string>} [FILES=Record<string, string>]
* @typedef {object} ExampleOptions
* @property {HTMLCanvasElement} canvas - The canvas.
* @property {string} deviceType - The device type.
* @property {string} assetPath - The asset path.
* @property {string} scriptsPath - The scripts path.
* @property {string} glslangPath - The glslang path.
* @property {string} twgslPath - The twgsl path.
* @property {string} dracoPath - The draco path.
* @property {string} ammoPath - The ammo path.
* @property {string} basisPath - The basis path.
* @property {any} pcx - The pcx.
* @property {FILES} files - The files.
*/
/**
* @typedef {{ 'shader.vert': string, 'shader.frag': string }} Files
* @typedef {ExampleOptions<Files>} Options
* @param {Options} options - The example options.
* @returns {Promise<pc.AppBase>} The example application.
*/
Reproduction Steps
- Just open
- See no colors
Actual (Problematic) Behavior
Missing colors:
Expected Behavior
Colored comments:
Additional Context
It always used to work, suddenly colors are gone (also on TS Playground).
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 with the linked Monaco Editor Playground reproduction and its embedded TypeScript/JSDoc sample, then compare the missing colors with the expected screenshot and the behavior in the TypeScript Playground. Trace the syntax-highlighting entry point used for JSDoc comments. Done means the documented tags and types render with syntax colors again in the playground and desktop editor.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- frontend, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100