class Lapis::CrystalLSP

Overview

Guarded, fail-safe LSP worker for Crystalline. Strictly sandboxed: failures, crashes, or unresponsiveness in Crystalline will NEVER freeze Godot or degrade the in-editor editing experience.

Defined in:

libgodot/script/lsp.cr

Constructors

Instance Method Summary

Constructor Detail

def self.instance : CrystalLSP #

def self.new #

Instance Method Detail

def available? : Bool #

def enabled? : Bool #

def ensure_started_async(workspace_root : String | Nil = nil) : Void #

Non-blocking background startup so editor never stalls on main thread


def request_completion(code : String, path : String, line : Int32, column : Int32, timeout_ms : Int32 = 60) : Array(CompletionItem) | Nil #

Requests code completion from Crystalline LSP with timeout


def request_definition(code : String, path : String, line : Int32, column : Int32, timeout_ms : Int32 = 100) : Tuple(String, Int32) | Nil #

Requests definition jump target from Crystalline LSP with timeout


def running? : Bool #

def server_path : String #

def start(workspace_root : String | Nil = nil) : Bool #

Safely starts the Crystalline LSP server in background with stdio


def stop : Void #

Gracefully stops the Crystalline process


def sync_document(path : String, code : String) : Void #

Synchronize open document state to LSP