Class: Solargraph::LanguageServer::Message::Extended::Environment

Inherits:
Base
  • Object
show all
Defined in:
lib/solargraph/language_server/message/extended/environment.rb

Overview

Update YARD documentation for installed gems. If the `rebuild` parameter is true, rebuild existing yardocs.

Instance Attribute Summary

Attributes inherited from Base

#error, #host, #id, #method, #params, #request, #result

Instance Method Summary collapse

Methods inherited from Base

#initialize, #post_initialize, #send_response, #set_error, #set_result

Constructor Details

This class inherits a constructor from Solargraph::LanguageServer::Message::Base

Instance Method Details

#processObject


9
10
11
12
13
14
15
# File 'lib/solargraph/language_server/message/extended/environment.rb', line 9

def process
  page = Solargraph::Page.new(host.options['viewsPath'])
  content = page.render('environment', layout: true, locals: { config: host.options, folders: host.folders })
  set_result(
    content: content
  )
end