Sha256: f421a2cdbf7a9099235ee35b89c8533725857475feb285ae3180141e18c30152

Contents?: true

Size: 405 Bytes

Versions: 4

Compression:

Stored size: 405 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.store_source(uri: uri, source: text)

          NO_RESPONSE
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
yoda-language-server-0.10.1 lib/yoda/server/providers/text_document_did_open.rb
yoda-language-server-0.10.0 lib/yoda/server/providers/text_document_did_open.rb
yoda-language-server-0.9.0 lib/yoda/server/providers/text_document_did_open.rb
yoda-language-server-0.8.0 lib/yoda/server/providers/text_document_did_open.rb