
Product
Introducing Webhook Events for Pull Request Scans
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
monaco-editor-comp
Advanced tools
This packages provides a wrapped monaco-editor
. The monaco-languageclient
can be activated to connect to a configurable languages server.
The component can be fully configured with embedded JavaScript. It can be configured as regular or diff editor.
''
);javascript
)vs-light
)getMonacoEditorOptions
in inner script tag. You can directly pass monaco-editor options. See examples below. Attach the id directly to the name if you use more than one editor (e.g. getMonacoEditorOptions42
).getMonacoDiffEditorOptions
. It can only be used if enableInlineConfig
is passed. See examples below. Attach the id directly to the name if you use more than one editor (e.g. getMonacoDiffEditorOptions42
).javascript
)''
)getLanguageClientOptions
if enableInlineConfig
is set):
true
), if false
implementation tries to use a web worker instead (need to set workerURL)false
)localhost
)8080
)''
)''
)true
) or a worker with classical syntax (false
) (default: false
)''
)Proper styling of at least the Diff Editor requires that the codicon font is loaded outside the web component. Due to limitations of the Shadow DOM this can unfortunately not be transparently handled by the web component and requires user code adjustments shown here and monaco-editor sample).
If you have node.js LTS available, then from the root of the project run:
npm i
npm run build
Afterwards launch the Vite.js development mode:
npm run dev
You find examples (manual human testing) in the root of the repository index.html. They can be used once Vite is running.
This project was inspired by:
FAQs
Lit Component for Monaco-Editor and Monaco Languageclient Wrapper
The npm package monaco-editor-comp receives a total of 439 weekly downloads. As such, monaco-editor-comp popularity was classified as not popular.
We found that monaco-editor-comp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.
Product
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.