
Security News
Cline CLI npm Package Compromised via Suspected Cache Poisoning Attack
A compromised npm publish token was used to push a malicious postinstall script in cline@2.3.0, affecting the popular AI coding agent CLI with 90k weekly downloads.
codemirror-languageserver
Advanced tools
This plugin enables code completion, hover tooltips, and linter functionality by connecting a CodeMirror 6 editor with a language server over WebSocket.
https://user-images.githubusercontent.com/348107/120141150-c6bb9180-c1fd-11eb-8ada-9b7b7a1e4ade.mp4
npm i codemirror-languageserver
import { languageServer } from 'codemirror-languageserver';
const transport = new WebSocketTransport(serverUri);
var ls = languageServer({
// WebSocket server uri and other client options.
serverUri,
rootUri: 'file:///',
// Alternatively, to share the same client across multiple instances of this plugin.
client: new LanguageServerClient({
serverUri,
rootUri: 'file:///',
}),
documentUri: `file:///${filename}`,
languageId: 'cpp', // As defined at https://microsoft.github.io/language-server-protocol/specification#textDocumentItem.
});
var view = new EditorView({
state: EditorState.create({
extensions: [
// ...
ls,
// ...
],
}),
});
The plugin includes built-in TypeScript definitions for popular language servers:
PyrightInitializationOptions - Python (Pyright)RustAnalyzerInitializationOptions - Rust (rust-analyzer)TypeScriptInitializationOptions - TypeScript/JavaScriptESLintInitializationOptions - ESLintClangdInitializationOptions - C/C++ (Clangd)GoplsInitializationOptions - Go (Gopls)Contributions are welcome.
The library is available under the BSD (3-Clause) License.
FAQs
Language Server Plugin for CodeMirror 6
The npm package codemirror-languageserver receives a total of 798 weekly downloads. As such, codemirror-languageserver popularity was classified as not popular.
We found that codemirror-languageserver demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Security News
A compromised npm publish token was used to push a malicious postinstall script in cline@2.3.0, affecting the popular AI coding agent CLI with 90k weekly downloads.

Product
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.

Product
Socket now supports PHP with full Composer and Packagist integration, enabling developers to search packages, generate SBOMs, and protect their PHP dependencies from supply chain threats.