
Security News
Risky Biz Podcast: AI Agents Are Raising the Stakes for Software Supply Chain Security
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.
@isl-lang/lsp-core
Advanced tools
Core language intelligence for ISL LSP - shared analysis and diagnostics
Core language intelligence for ISL LSP - shared analysis and diagnostics.
npm install @isl-lang/lsp-core
This package provides the core language intelligence features used by the ISL language server. It's designed to be editor-agnostic and can be used to build custom language tooling.
import {
LanguageService,
createLanguageService,
DocumentManager,
} from '@isl-lang/lsp-core';
// Create a language service
const service = createLanguageService();
// Add documents
service.openDocument('file:///specs/user.isl', `
domain UserManagement {
type User { id: uuid, name: string }
}
`);
// Get diagnostics
const diagnostics = service.getDiagnostics('file:///specs/user.isl');
// Get completions
const completions = service.getCompletions(
'file:///specs/user.isl',
{ line: 2, character: 10 }
);
// Get hover information
const hover = service.getHover(
'file:///specs/user.isl',
{ line: 2, character: 15 }
);
createLanguageService(): LanguageServiceCreate a new language service instance.
LanguageServiceinterface LanguageService {
// Document management
openDocument(uri: string, content: string): void;
updateDocument(uri: string, content: string): void;
closeDocument(uri: string): void;
// Diagnostics
getDiagnostics(uri: string): Diagnostic[];
getAllDiagnostics(): Map<string, Diagnostic[]>;
// Completions
getCompletions(uri: string, position: Position): CompletionItem[];
// Hover
getHover(uri: string, position: Position): Hover | null;
// Go to definition
getDefinition(uri: string, position: Position): Location | null;
// Find references
getReferences(uri: string, position: Position): Location[];
// Document symbols
getDocumentSymbols(uri: string): DocumentSymbol[];
// Formatting
formatDocument(uri: string): TextEdit[];
formatRange(uri: string, range: Range): TextEdit[];
// Rename
prepareRename(uri: string, position: Position): Range | null;
rename(uri: string, position: Position, newName: string): WorkspaceEdit;
// Code actions
getCodeActions(uri: string, range: Range): CodeAction[];
}
Full documentation: https://isl-lang.dev/docs/lsp-core
MIT
FAQs
Core language intelligence for ISL LSP - shared analysis and diagnostics
We found that @isl-lang/lsp-core 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
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.

Research
/Security News
Malicious Chrome and Firefox extensions posed as free VPNs while stealing clipboard data through later extension updates.

Research
/Security News
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.