microsoft / monaco-editor

A browser based code editor

Home Page:https://microsoft.github.io/monaco-editor/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] Paste in editor context menu broken on monaco-editor 0.47

bytemain opened this issue · comments

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://stackblitz.com/edit/github-f3sm97?file=src%2Findex.js

Monaco Editor Playground Code

need webpack, so I share it on stackblitz

Reproduction Steps

  1. enable webpack process polyfill
  2. build and open monaco-editor
  3. right click the editor menu and click paste, it paste nothing

Actual (Problematic) Behavior

right click the editor menu and click paste, it paste nothing

Expected Behavior

right click the editor menu and click paste, it paste code

Additional Context

this is because: microsoft/vscode#200935

this pr will make platform.isWeb to false

image

so it cannot enter the right logic

CleanShot 2024-03-20 at 17 15 26@2x

microsoft/vscode has fixed this problem: microsoft/vscode#207693.
Has there been any progress on this issue?