![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@codingame/monaco-editor-wrapper
Advanced tools
Enhanced Monaco editor with TextMate grammars and more
Monaco editor wrapper that adds some features and improvements to it:
editor.foldAllAutofoldRegions
actionWebpack is required and it should be able to import a .wasm file as a file, using either the file-loader
or Asset modules
npm install @codingame/monaco-editor-wrapper
:warning: You should NEVER import monaco-editor
directly in your code.
monaco-editor/esm/vs/editor/edcore.main
should be used instead or Monaco will load all languages/worker and break the loading.
There are 2 solutions:
{
resolve: {
alias: {
'monaco-editor$': require.resolve('monaco-editor/esm/vs/editor/edcore.main')
}
}
}
monaco
object exported from this libraryThe monaco-editor api should be used except for the editor creation.
Instead of using monaco.editor.create
, you should use the createEditor
exposed by this library.
By default, monaco-editor contains worker to achieve IntelliSense in CSS, SCSS, JavaScript, TypeScript, JSON and HTML.
To enable them, import the following files:
import '@codingame/monaco-editor-wrapper/dist/jsonContribution'
import '@codingame/monaco-editor-wrapper/dist/typescriptContribution'
import '@codingame/monaco-editor-wrapper/dist/cssContribution'
import '@codingame/monaco-editor-wrapper/dist/htmlContribution'
This library uses VS Code themes instead of Monaco theme.
To add your custom theme, use the addVSCodeTheme
method.
:warning: this method returns a promise, you need to wait for it before calling monaco.editor.setTheme
.
Default Monaco theme shouldn't be used.
This library exposed some functions to manage the user global configuration:
registerDefaultConfigurations
allows registering default values for some configuration keys which can be overriddenupdateUserConfiguration
Update the user configuration, overrides the default configuration, uses the same syntax as VS Code configurationgetConfiguration
allows to get a given configuration key in a given languageonConfigurationChanged
listen to configuration changeupdateEditorKeybindings
allows to update the editor keybindings with the same syntax as in VS Code, or enabled Emacs/Vim keybindingsFAQs
Configured monaco-vscode-api with tools and extensions
The npm package @codingame/monaco-editor-wrapper receives a total of 430 weekly downloads. As such, @codingame/monaco-editor-wrapper popularity was classified as not popular.
We found that @codingame/monaco-editor-wrapper demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.