class RubyLsp::Notification

def publish_diagnostics(uri, diagnostics, version: nil)

: (String uri, Array[Interface::Diagnostic] diagnostics, ?version: Integer?) -> Notification
def publish_diagnostics(uri, diagnostics, version: nil)
  new(
    method: "textDocument/publishDiagnostics",
    params: Interface::PublishDiagnosticsParams.new(uri: uri, diagnostics: diagnostics, version: version),
  )
end