FindController is Not Working with Monaco Editor

111 Views Asked by At

In my custom IDE, I am using monaco editor.

We have added a lnaguge server using monaco-language client.

We used @monaco-editor/react package to integarte with react.

After integration when I click on CTRL + F find popup is not shown and warning is shown as enter image description here

When I Click on ALT + W, I am getting below error. enter image description here Can someone help me When I removed loader.config({monaco), lanaguge client is working suggestions are getting fine is working but find is not working. But when I remove Find is working but suggestions are missing

I am expecting both language clinet and find controller should work as expected

1

There are 1 best solutions below

0
On

I've found workaround for this problem. In the monaco-editor package, you need to find the RawContextKey class (in this file \esm\vs\platform\contextkey\common\contextkey.js), remove the inheritance copy and paste content of constructor and copy the methods from the parent class.