microsoft / microsoft/monaco-editor

[Bug]

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

https://microsoft.github.io/monaco-editor/playground.html?source=v0.46.0#XQAAAAJuAwAAAAAAAABBqQkHQ5NjdMjwa-jY7SIQ9S7DNlzs5W-mwj0fe1ZCDRFc9ws9XQE0SJE1jc2VKxhaLFIw9vEWSxW3yscw4P1fu_1uhs0-3YGTBOsVJ4S4FwfCDQb5-2uUHXTVAefbVSd9IzaZ_vv9VR9KugsKis5RzDSgKs6AyjE0E6bd0LPjW0bdnDfeV1Y61a1FNzlpaU1WsdL6l7V0EXqxv7DSpMmkVn2RfR8TU6kk43I13KvKYctlOYO4JEgdVjwfVkJihYBDcWusQ00LxtIhTDFVjm40NqFxVoOKfAAAYiW_G5FNTtdZAl8MRBLj7ZwKJEdz82zNDWStVwRK_pOWHwu2vKEZoX5ujJtlBGrnABfkmWlcsseT-mu12FGWsx-OepZA04VcjOOSAM0K4LC6aWolHNLoxUkt8og3Efd4tq_fBrPx8puD-TkI6oNUitXDR9uwZ6oQcXUawzwPVKYBx9xisGIwHUhI6TllQWMzqv1uGxdqtdyWGAQ2LKJ7_Dz4lSnmNKZ74ZbzNDr9e5IMimT4Uj66mRhPbpRl1vsBucTygDPiQ6KNKqVIOO9MpUWD5M9OdkAER7nKGz73VNyTrm6xlXoCVLYYCqPj5uifFQIcctzORlIqd6EoLZRC5aXc_9Y7J9I

Monaco Editor Playground Code
const value = /* set from `myEditor.getModel()`: */ `version: "3"

networks:
  gitea:
      external: false

	  services:
	    server:
		    image: gitea/gitea:1.21.5
			    container_name: gitea
…
Reproduction Steps

When I paste text into the browser, the text is entered line by line with a tab stop.
example_monaco_firefox

Actual (Problematic) Behavior

When I paste text into the browser, the text is entered line by line with a tab stop.
example_monaco_firefox

After opening a case to Gitea's colleagues, I attach the case for you to see.
https://github.com/go-gitea/gitea/issues/29345

I tried in Chromium and it does not appear, it only appears in Firefox. I have opened firefox in troubleshooting mode and it
keeps popping up.
example_monaco

Thank you very much

Expected Behavior

No response

Additional Context

I tried in Chromium and it does not appear, it only appears in Firefox. I have opened firefox in troubleshooting mode and it
keeps popping up.
example_monaco

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 issue in the linked Monaco Editor Playground using the provided code, first in Firefox and then in Chromium. Investigate the paste behavior and compare the results; done means pasted text no longer produces the reported line-by-line tab stops in Firefox.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.