microsoft / microsoft/monaco-editor
[Bug] $0 with drag in drop
Open
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?
- Not reproducible in the monaco editor playground
Monaco Editor Playground Link
Monaco Editor Playground Code
const value = /* set from `myEditor.getModel()`: */ `function hello() {
alert('Hello world!');
}update package to 4.7.0 version\$0`;
// Hover on each property to see its docs!
const myEditor = monaco.editor.create(document.getElementById("container"), {
value,
language: "javascript",
// automaticLayout: true,
});
Reproduction Steps
Select a text of other page\browser\component and drop in the editor
Actual (Problematic) Behavior
every i drag and drop in the final of word appear "$0" word
Expected Behavior
when i drop not show the word "$0"
Additional Context
https://github.com/user-attachments/assets/d0067c47-a84a-40b2-8bf6-53adc6b09de2
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 the provided TypeScript snippet, then reproduce the drag-and-drop behavior described in the issue. Done means dropping selected text into the editor no longer inserts an unexpected "$0" at the end of the word.
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
- 25/100