
Security News
US Government Forces Anthropic to Pull Claude Fable Days After Launch
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.
@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
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.