Class: Solargraph::LanguageServer::Message::Extended::Environment
- 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
#process ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/solargraph/language_server/message/extended/environment.rb', line 11 def process # Make sure the environment page can report RuboCop's version require 'rubocop' page = Solargraph::Page.new(host.['viewsPath']) content = page.render('environment', layout: true, locals: { config: host., folders: host.folders }) set_result( content: content ) end |