Skip to content

Commit

Permalink
Remove deadcode for RubyLsp::Rails::Common::Progress::report
Browse files Browse the repository at this point in the history
  • Loading branch information
shopify-codedb[bot] committed Jan 30, 2025
1 parent 92795ff commit 5759ea7
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions lib/ruby_lsp/ruby_lsp_rails/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,6 @@ def initialize(stderr, id, supports_progress)
@id = id
@supports_progress = supports_progress
end

def report(percentage: nil, message: nil)
return unless @supports_progress
return unless percentage || message

json_message = {
method: "$/progress",
params: {
token: @id,
value: {
kind: "report",
percentage: percentage,
message: message,
},
},
}.to_json

@stderr.write("Content-Length: #{json_message.bytesize}\r\n\r\n#{json_message}")
end
end

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

0 comments on commit 5759ea7

Please sign in to comment.