lib/solargraph/language_server/message/extended/document.rb



# frozen_string_literal: true


module Solargraph
  module LanguageServer
    module Message
      module Extended
        class Document < Base
          def process
            objects = host.document(params['query'])
            page = Solargraph::Page.new(host.options['viewsPath'])
            content = page.render('document', layout: true, locals: {objects: objects})
            set_result(
              content: content
            )
          end
        end
      end
    end
  end
end