microsoft / monaco-editor

A browser based code editor
https://microsoft.github.io/monaco-editor/
MIT License
39.18k stars 3.52k forks source link

Ctrl+F is not showing the PopUp #3871

Closed LavanyaBurlagadda closed 1 year ago

LavanyaBurlagadda commented 1 year ago

Reproducible in vscode.dev or in VS Code Desktop?

Reproducible in the monaco editor playground?

Monaco Editor Playground Link

No response

Monaco Editor Playground Code

No response

Reproduction Steps

Currently Using React 18 monaco-editor: "^0.34.1", monaco-editor-webpack-plugin: "7.0.1", monaco-languageclient": "4.0.1", vscode": "npm:@codingame/monaco-vscode-api@1.69.12", vscode-ws-jsonrpc": "2.0.1", Craco: 7.0.0

Actual (Problematic) Behavior

When I click on CTRL+F Sometimes it is not showing the Popup Like This image

It is throwing error like image

It is throwing warning like image

When clicking on ALT + W it is showing the below error image

We are using monaco language client to integrate java language server, and added below line

loader.config({ monaco: monacoEditor });

When adding this ctrl+f is not working

` const MonacoWebpackPlugin = require("monaco-editor-webpack-plugin");

module.exports = { webpack: { configure: { experiments: { topLevelAwait: true, }, plugins: [new MonacoWebpackPlugin()], }, }, }; `

Expected Behavior

When Ctrl+F is clicked need to show like this. image

Additional Context

When we are running it locally without building the entire code then It is working fine.

When I do build it is throwing the above error and not showing the FindControllerPopup

LavanyaBurlagadda commented 1 year ago

https://github.com/LavanyaBurlagadda/MonacoEditor-POC

You can reproduce the issue with the above code.

In App.js fille we are importing monaco-languageclinet and also added loader.config({monaco}) .

If any of them is commented find controller is working fine.

@hediet Can you please look into the issue

hediet commented 1 year ago

I'm sorry it doesn't seem to be working, but with so many requests that we get here and in the VS Code issue tracker, we just cannot provide the support we would like to offer.

That said, if you can track down your issue to a specific problem of the Monaco editor, we are more than welcoming a PR by the community! Please use the bug-report issue template to report the issue.

Thanks for your understanding!