Replies: 2 comments 11 replies
-
Hello! It just seems you use an old version of monaco-vscode-api that was not using the extHost stuff see #399 Btw, you can still probably force a newer version of monaco-vscode-api (be careful, the last versions are the 1.67.x, not the 1.68.x, and we can't unpublish npm packages...)
It gathers code from vscode, the extHost classes are the "thing" vscode use between its api and the services
Because of the wrong version
You are right!
The rollup config is here because there is some complexity to make it work and optimize the bundle:
What surprises you in the rollup config? what else? |
Beta Was this translation helpful? Give feedback.
-
Regaring the
I understand you created this for "impersonating" a vscode extension. registerHoverProvider(extension, selector, provider, extensionId) {
const handle = this._addNewAdapter(new HoverAdapter(this._documents, provider), extension);
this._proxy.$registerHoverProvider(handle, this._transformDocumentSelector(selector));
return this._createDisposable(handle);
} How does this reach monaco in the end? |
Beta Was this translation helpful? Give feedback.
-
Hi!
I'm trying to understand how
monaco-languageclient
uses monaco-vscode-api.Following the code, I'm not sure I understand.
My main gap is around the role of the
extHost
file inmonaco-vscode-api
.What I'm seeing in the bundled code differs from what's inside languages.ts
If I put a
debugger;
statement I can see the stack trace as follows:The code looks like this:
registerProvider
(invscode-languageclient
):registerHoverProvider
(inmonaco-vscode-api
):So, my questions are:
extHost.ts
file?monaco.languages
api like in the actual stack trace.vscode
import withmonaco-vscode-api
but I'm seeing a lot of code in therollup
config etc. How does that work?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions