Replies: 2 comments 4 replies
-
Hello
Not at all, you can even import it dynamically at any time
In VSCode there is a notion of Those extension points are only available if the corresponding service override is registered:
Never seen that error before! Are you using the last version?
A minimal reproduction repo would probably help :)
Keep in mind that this library bundles the part of VSCode designed for its web version so it may be not optimal or adapted to an electron app |
Beta Was this translation helpful? Give feedback.
-
@CGNonofr Hello, I have added the suggestions from the previous response but was still unsuccessful in seeing any of the manually added default extensions. The packages have been upgraded to the latest as of today (resulted in v^2.0.3) Update to "contributes": {
"languages": [
{
"id": "python",
"extensions": [
".py"
],
"aliases": [
"Python",
"python"
],
"configuration": "./node_modules/@codingame/monaco-vscode-python-default-extension/resources/language-configuration.json"
}
],
"grammars": [
{
"language": "python",
"scopeName": "source.python",
"path": "./node_modules/@codingame/monaco-vscode-python-default-extension/resources/MagicPython.tmLanguage.json"
}
]
} I've created a minimal reproduction of the repo found here:
Indeed, there have been things I've had to "hack" to accommodate the application configuration. Thanks |
Beta Was this translation helpful? Give feedback.
-
Hello, I have a couple of questions regarding the default language extensions.
Since
monaco-editor-core
doesn't offer the languages out of the box, I've opted to manually add the language support in, butmonaco.languages.getLanguages()
still only seems to detect PlainText.This is the import I am using:
Further, this import seems to give me a bunch of console warnings:
Please let me know if I'm missing anything, I've read through the documentation multiple times and couldn't find a solution.
I've also seen similar discussions here, which were able to get me further, but still didn't resolve my issue.
I'm using Vite in an Electron application and setup seems to be working fine. Any help is appreciated!
Beta Was this translation helpful? Give feedback.
All reactions