class Savi::Server
- Savi::Server
- Reference
- Object
Defined in:
savi/server.crConstructors
Instance Method Summary
-
#handle(msg : LSP::Message::Initialize)
When told to initialize, respond with info about our capabilities.
-
#handle(msg : LSP::Message::Initialized)
When told that we're free to be initialized, do so.
-
#handle(msg : LSP::Message::DidChangeConfiguration)
When told that we're free to be initialized, do so.
-
#handle(msg : LSP::Message::Shutdown)
When asked to shut down, respond in the affirmative immediately.
-
#handle(msg : LSP::Message::Exit)
When told that we're free to exit gracefully, do so.
-
#handle(msg : LSP::Message::DidOpen)
When a text document is opened, store it in our source overrides.
-
#handle(msg : LSP::Message::DidChange)
When a text document is changed, update it in our source overrides.
-
#handle(msg : LSP::Message::DidClose)
When a text document is closed, remove it from our source overrides.
-
#handle(msg : LSP::Message::DidSave)
When a text document is saved, do nothing.
-
#handle(msg : LSP::Message::Hover)
TODO Get Hover working again, in the presence of package manifests.
- #handle(req : LSP::Message::Formatting)
- #handle(req : LSP::Message::RangeFormatting)
- #handle(req : LSP::Message::OnTypeFormatting)
-
#handle(req : LSP::Message::Completion)
TODO Proper completion support.
-
#handle(msg)
All other messages are unhandled - just print them for debugging purposes.
- #run
- #send_diagnostics(filename : String, content : String | Nil = nil)
- #setup
Constructor Detail
Instance Method Detail
When told to initialize, respond with info about our capabilities.
When told that we're free to be initialized, do so.
When asked to shut down, respond in the affirmative immediately.
When a text document is opened, store it in our source overrides.
When a text document is changed, update it in our source overrides.
When a text document is closed, remove it from our source overrides.
TODO Get Hover working again, in the presence of package manifests.