microsoft / microsoft/monaco-editor

[Bug] there is a unexpect bracket

Open
#4,536 2 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
Reproducible in the monaco editor playground?
Monaco Editor Playground Link

https://microsoft.github.io/monaco-editor/playground.html?source=v0.49.0#XQAAAAI9AQAAAAAAAABBqQkHQ5NjdMjwa-jY7SIQ9S7DNlzs5W-mwj0fe1ZCDRFc9ws9XQE0SJE1jc2VKxhaLFIw9vEWSxW3yscrRIG9UcqL31As63aQy62VWhMDHT6IcUUnGGdK_1yrN_xlAwToPtHwWASnqo0pHyQu_gITish86Pp5B0Fw1Q7j_2KlSwLhjOnhRdGp6F4BgtjleFmVH0tJ8Iy3zQ02nnT4MoqKwtaS6_QF4EtEk4SIi7DIkgUEfPBy_8I0mzmj_5b_ECI4x04vlhLgRwgep0bRNi6Vnt8myG4U6CnlCwvWhkENLFaM1yqKhdLhtqL8fqRPW19ls-DMhVNEhx_0KDr-NMeJeP-36av9qo-R

Monaco Editor Playground Code
const value = /* set from `myEditor.getModel()`: */ `echo \$(hello | grep "no such file(s)")`;


const myEditor = monaco.editor.create(document.getElementById("container"), {
	value,
	language: "shell",
	
});


echo $(hello | grep "no such file(s)")
Reproduction Steps

No response

Actual (Problematic) Behavior
image
Expected Behavior

No response

Additional Context

No response

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 linked Monaco Editor Playground and the provided shell-language example, then inspect how the editor renders the bracket in echo $(hello | grep "no such file(s)"). The issue does not provide reproduction steps or expected behavior, so clarify the intended rendering before identifying the relevant syntax-highlighting entry point and adding a focused regression check.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell, typescript
Domain
frontend, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.