Module: Requests::TextDocument::DidOpen
- Extended by:
- DidOpen
- Included in:
- DidOpen
- Defined in:
- lib/holistic/language_server/requests/text_document/did_open.rb
Instance Method Summary collapse
Instance Method Details
#call(request) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/holistic/language_server/requests/text_document/did_open.rb', line 7 def call(request) path = Format::FileUri.extract_path(request..param("textDocument", "uri")) content = request..param("textDocument", "text") request.application.unsaved_documents.add(path:, content:) ::Holistic::Document::File::Store.call(database: request.application.database, file_path: path) request.respond_with(nil) end |