Skip to content

Commit 0266825

Browse files
authored
Upgrade Sorbet (#606)
1 parent b1acdde commit 0266825

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

Gemfile.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -238,15 +238,15 @@ GEM
238238
ruby-progressbar (1.13.0)
239239
ruby2_keywords (0.0.5)
240240
securerandom (0.4.1)
241-
sorbet (0.5.12046)
242-
sorbet-static (= 0.5.12046)
243-
sorbet-runtime (0.5.12046)
244-
sorbet-static (0.5.12046-aarch64-linux)
245-
sorbet-static (0.5.12046-universal-darwin)
246-
sorbet-static (0.5.12046-x86_64-linux)
247-
sorbet-static-and-runtime (0.5.12046)
248-
sorbet (= 0.5.12046)
249-
sorbet-runtime (= 0.5.12046)
241+
sorbet (0.5.12079)
242+
sorbet-static (= 0.5.12079)
243+
sorbet-runtime (0.5.12079)
244+
sorbet-static (0.5.12079-aarch64-linux)
245+
sorbet-static (0.5.12079-universal-darwin)
246+
sorbet-static (0.5.12079-x86_64-linux)
247+
sorbet-static-and-runtime (0.5.12079)
248+
sorbet (= 0.5.12079)
249+
sorbet-runtime (= 0.5.12079)
250250
spoom (1.5.4)
251251
erubi (>= 1.10.0)
252252
prism (>= 0.28.0)

lib/ruby_lsp/ruby_lsp_rails/server.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def initialize(stderr, id, supports_progress)
1717
@supports_progress = supports_progress
1818
end
1919

20-
#: (percentage: Integer?, message: String?) -> void
20+
#: (?percentage: Integer?, ?message: String?) -> void
2121
def report(percentage: nil, message: nil)
2222
return unless @supports_progress
2323
return unless percentage || message
@@ -40,7 +40,7 @@ def report(percentage: nil, message: nil)
4040

4141
# Log a message to the editor's output panel. The type is the number of the message type, which can be found in
4242
# the specification https://microsoft.github.io/language-server-protocol/specification/#messageType
43-
#: (String, type: Integer) -> void
43+
#: (String, ?type: Integer) -> void
4444
def log_message(message, type: 4)
4545
send_notification({ method: "window/logMessage", params: { type: type, message: message } })
4646
end
@@ -86,7 +86,7 @@ def with_notification_error_handling(notification_name, &block)
8686
log_message("Request #{notification_name} failed:\n#{e.full_message(highlight: false)}")
8787
end
8888

89-
#: (String, String, percentage: Integer?, message: String?) -> void
89+
#: (String, String, ?percentage: Integer?, ?message: String?) -> void
9090
def begin_progress(id, title, percentage: nil, message: nil)
9191
return unless capabilities[:supports_progress]
9292

@@ -112,7 +112,7 @@ def begin_progress(id, title, percentage: nil, message: nil)
112112
})
113113
end
114114

115-
#: (String, percentage: Integer?, message: String?) -> void
115+
#: (String, ?percentage: Integer?, ?message: String?) -> void
116116
def report_progress(id, percentage: nil, message: nil)
117117
return unless capabilities[:supports_progress]
118118

@@ -142,7 +142,7 @@ def end_progress(id)
142142
})
143143
end
144144

145-
#: (String, String, percentage: Integer?, message: String?) { (Progress) -> void } -> void
145+
#: (String, String, ?percentage: Integer?, ?message: String?) { (Progress) -> void } -> void
146146
def with_progress(id, title, percentage: nil, message: nil, &block)
147147
progress_block = Progress.new(stderr, id, capabilities[:supports_progress])
148148
return block.call(progress_block) unless capabilities[:supports_progress]
@@ -231,12 +231,12 @@ def execute(request, params)
231231
end
232232

233233
class IOWrapper < SimpleDelegator
234-
#: (untyped) -> void
234+
#: (*untyped) -> void
235235
def puts(*args)
236236
args.each { |arg| log("#{arg}\n") }
237237
end
238238

239-
#: (untyped) -> void
239+
#: (*untyped) -> void
240240
def print(*args)
241241
args.each { |arg| log(arg.to_s) }
242242
end
@@ -255,7 +255,7 @@ def log(message)
255255
class Server < ServerComponent
256256
include Common
257257

258-
#: (IO | StringIO, IO | StringIO, bool, Hash[Symbol | String, untyped]) -> void
258+
#: (?stdout: IO | StringIO, ?stderr: IO | StringIO, ?override_default_output_device: bool, ?capabilities: Hash[Symbol | String, untyped]) -> void
259259
def initialize(stdout: $stdout, stderr: $stderr, override_default_output_device: true, capabilities: {})
260260
# Grab references to the original pipes so that we can change the default output device further down
261261

0 commit comments

Comments
 (0)