Skip to content

Commit 5759ea7

Browse files
Remove deadcode for RubyLsp::Rails::Common::Progress::report
1 parent 92795ff commit 5759ea7

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

lib/ruby_lsp/ruby_lsp_rails/server.rb

-19
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,6 @@ def initialize(stderr, id, supports_progress)
1313
@id = id
1414
@supports_progress = supports_progress
1515
end
16-
17-
def report(percentage: nil, message: nil)
18-
return unless @supports_progress
19-
return unless percentage || message
20-
21-
json_message = {
22-
method: "$/progress",
23-
params: {
24-
token: @id,
25-
value: {
26-
kind: "report",
27-
percentage: percentage,
28-
message: message,
29-
},
30-
},
31-
}.to_json
32-
33-
@stderr.write("Content-Length: #{json_message.bytesize}\r\n\r\n#{json_message}")
34-
end
3516
end
3617

3718
# Log a message to the editor's output panel. The type is the number of the message type, which can be found in

0 commit comments

Comments
 (0)