Package-level declarations

Types

Link copied to clipboard
data class CompletionPathResult(val path: List<String>, val name: String, val from: DocPos)

Result of completionPath.

Properties

Link copied to clipboard

A language provider based on the Lezer JavaScript parser, extended with highlighting and indentation information.

Link copied to clipboard

Language provider for JSX.

Link copied to clipboard

Completion source that walks the JavaScript/TypeScript syntax tree upward from the cursor, collecting locally declared names (variables, functions, classes, types, imports) within scope boundaries.

Link copied to clipboard

A collection of JavaScript-specific snippet completions.

Link copied to clipboard

Language provider for JSX + TypeScript.

Link copied to clipboard

A language provider for TypeScript.

Link copied to clipboard

A collection of snippet completions for TypeScript. Includes everything from snippets plus TypeScript-specific entries.

Functions

Link copied to clipboard

Extension that auto-closes JSX tags when typing > or completes closing tags when typing /.

Link copied to clipboard

Extract the completion path at the cursor. Reads backwards from the cursor, splitting on . to determine whether we're completing a property access (like console.l|) or a bare identifier.

Link copied to clipboard
fun javascript(jsx: Boolean = false, typescript: Boolean = false): LanguageSupport

JavaScript language support.

Link copied to clipboard

Create a completion source that provides property completions from a scope map. The map represents a global scope object where keys are property names and values are either nested maps (for object properties) or null (for leaf names).