class

Adamantine::Lsp::Client

Inherits Reference < Object

Constants

MAX_JSON_BUFFER = 4194304
MAX_LSP_HEADERS = 50
MAX_NOISE_LINES = 100
PROCESS_GRACE_PERIOD = 250.milliseconds
READ_TIMEOUT_SECONDS = 8
SEMANTIC_TOKENS_TIMEOUT_SECONDS = 15
SHUTDOWN_TIMEOUT_SECONDS = 1

Constructors

new(command : String, root : Path, args : Array(String) = [] of String)
Source

Class methods

client_capabilities
Source

Instance methods

close_text_document(uri : String) : Nil
Source
code_action(uri : String, line : Int32, character : Int32) : Array(JSON::Any)
Source
completion(uri : String, line : Int32, character : Int32, max_items : Int32 = 30) : Array(CompletionItem)
Source
connected=(connected : Bool)
Source
connected?
Source
declaration(uri : String, line : Int32, character : Int32) : Array(Location)
Source
document_highlight(uri : String, line : Int32, character : Int32) : Array(Location)
Source
document_symbol(uri : String) : Array(JSON::Any)
Source
execute_command(command : String, args : Array(JSON::Any) = [] of JSON::Any) : JSON::Any | Nil
Source
folding_ranges(uri : String) : Array(Tui::TextEditor::FoldRange) | Nil
Source
folding_ranges_supported?
Source
formatting(uri : String) : Array(JSON::Any)
Source
goto_definition(uri : String, line : Int32, character : Int32) : Array(Location)
Source
hover(uri : String, line : Int32, character : Int32) : Hover | Nil
Source
implementation(uri : String, line : Int32, character : Int32) : Array(Location)
Source
on_diagnostics
Source
on_diagnostics=(on_diagnostics : Proc(String, Array(Diagnostic), Nil) | Nil)
Source
on_semantic_tokens_refresh
Source
on_semantic_tokens_refresh=(on_semantic_tokens_refresh : Proc(Nil) | Nil)
Source
open_text_document(uri : String, language_id : String, version : Int32, text : String) : Nil
Source
prepare_rename(uri : String, line : Int32, character : Int32) : JSON::Any | Nil
Source
range_formatting(uri : String, start_line : Int32, start_character : Int32, end_line : Int32, end_character : Int32) : Array(JSON::Any)
Source
references(uri : String, line : Int32, character : Int32, include_declaration : Bool = true) : Array(Location)
Source
rename(uri : String, line : Int32, character : Int32, new_name : String) : JSON::Any | Nil
Source
request_notification(method : String, params : Hash(String, JSONValueLike) = {} of String => JSONValueLike) : Nil
Source
request_raw(method : String, params : Hash(String, JSONValueLike) = {} of String => JSONValueLike) : JSON::Any
Source
save_text_document(uri : String) : Nil
Source
semantic_token_legend
Source
semantic_tokens_full(uri : String) : Array(Int32) | Nil
Source
semantic_tokens_supported?
Source
server_capabilities
Source
server_capabilities=(server_capabilities : JSON::Any | Nil)
Source
signature_help(uri : String, line : Int32, character : Int32) : SignatureHelp | Nil
Source
start
Source
stop
Source
text_change(uri : String, version : Int32, text : String) : Nil
Source
type_definition(uri : String, line : Int32, character : Int32) : Array(Location)
Source
workspace_symbol(query : String) : Array(JSON::Any)
Source

Nested types