sig/steep/drivers/utils/driver_helper.rbs in steep-1.4.0 vs sig/steep/drivers/utils/driver_helper.rbs in steep-1.5.0.pre.1
- old
+ new
@@ -1,23 +1,25 @@
+use LanguageServer::Protocol::Transport::Io::*
+
module Steep
module Drivers
module Utils
module DriverHelper
attr_accessor steepfile: Pathname?
def load_config: (?path: Pathname) -> Project
- def type_check: (Project project) -> void
-
def request_id: () -> String
- def wait_for_response_id: (reader: untyped, id: untyped, ?unknown_responses: ::Symbol) -> untyped
+ def wait_for_response_id: (reader: Reader, id: String, ?unknown_responses: unknown_message_action) -> untyped
- def shutdown_exit: (writer: untyped, reader: untyped) -> untyped
+ def shutdown_exit: (writer: Writer, reader: Reader) -> void
- def wait_for_message: (reader: untyped, ?unknown_messages: ::Symbol) { (untyped) -> untyped } -> untyped
+ type unknown_message_action = :ignore | :log | :raise
- def keep_diagnostic?: (untyped diagnostic) -> bool
+ def wait_for_message: (reader: Reader, ?unknown_messages: unknown_message_action) { (untyped) -> bool } -> untyped
+
+ def keep_diagnostic?: (untyped diagnostic, severity_level: Diagnostic::LSPFormatter::severity) -> bool
end
end
end
end