@@ -148,6 +148,7 @@ module RubyLsp
148
148
# pre-computed information in the addon. These factory methods are invoked on every request
149
149
Hover .new (client, response_builder, @config , dispatcher)
150
150
end
151
+ end
151
152
152
153
class Hover
153
154
# The Requests::Support::Common module provides some helper methods you may find helpful.
@@ -175,9 +176,10 @@ module RubyLsp
175
176
# Listeners must define methods for each event they registered with the dispatcher. In this case, we have to
176
177
# define `on_constant_read_node_enter` to specify what this listener should do every time we find a constant
177
178
def on_constant_read_node_enter (node )
178
- # Certain builders are made available to listeners to build LSP responses. The classes under `RubyLsp::ResponseBuilders`
179
- # are used to build responses conforming to the LSP Specification.
180
- # ResponseBuilders::Hover itself also requires a content category to be specified (title, links, or documentation).
179
+ # Certain builders are made available to listeners to build LSP responses. The classes under
180
+ # `RubyLsp::ResponseBuilders` are used to build responses conforming to the LSP Specification.
181
+ # ResponseBuilders::Hover itself also requires a content category to be specified (title, links,
182
+ # or documentation).
181
183
@response_builder .push(" Hello!" , category: :documentation )
182
184
end
183
185
end
@@ -271,7 +273,7 @@ module RubyLsp
271
273
params: Interface ::ProgressParams .new (
272
274
token: " progress-token-id" ,
273
275
value: Interface ::WorkDoneProgressBegin .new (kind: " begin" , title: " Starting slow work!" ),
274
- )
276
+ ),
275
277
)
276
278
end
277
279
end
@@ -324,7 +326,6 @@ module RubyLsp
324
326
)
325
327
end
326
328
327
-
328
329
def workspace_did_change_watched_files (changes )
329
330
if changes.any? { |change | change[:uri ].end_with?(" .my-config.yml" ) }
330
331
# Do something to reload the config here
@@ -348,7 +349,7 @@ require "ruby_lsp/check_docs"
348
349
# The second argument is the file list of GIF files with the demos of all listeners
349
350
RubyLsp ::CheckDocs .new (
350
351
FileList [" #{ __dir__ } /lib/ruby_lsp/ruby_lsp_rails/**/*.rb" ],
351
- FileList .new (" #{ __dir__ } /misc/**/*.gif" )
352
+ FileList .new (" #{ __dir__ } /misc/**/*.gif" ),
352
353
)
353
354
```
354
355
0 commit comments