Sha256: 8717fec301bb032c448c48209490c741b5ed700a53feac2e94a2a9ff0154b421

Contents?: true

Size: 396 Bytes

Versions: 3

Compression:

Stored size: 396 Bytes

Contents

module Yoda
  class Server
    module Providers
      class TextDocumentDidOpen < Base
        def self.provider_method
          :'textDocument/didOpen'
        end

        def provide(params)
          uri = params[:text_document][:uri]
          text = params[:text_document][:text]
          session.file_store.store(uri, text)

          NO_RESPONSE
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
yoda-language-server-0.7.2 lib/yoda/server/providers/text_document_did_open.rb
yoda-language-server-0.7.1 lib/yoda/server/providers/text_document_did_open.rb
yoda-language-server-0.7.0 lib/yoda/server/providers/text_document_did_open.rb