Module Cobol_lsp.Diagnostics

module TYPES : sig ... end
include module type of TYPES with type diagnostics = TYPES.diagnostics
type diagnostics = TYPES.diagnostics
type t = diagnostics
val normalize_uri : Lsp.Uri.t -> Lsp.Uri.t

normalize_uri uri designates the same file as uri, spelled as the keys of the diagnostics that the functions below give. URIs of a same file may differ (e.g. in the case of a Windows drive letter): those of documents should be normalized before being looked up in such maps.

val translate_one : ?focus_on_main_doc:bool -> rootdir:string -> uri:Lsp.Uri.t -> Cobol_common.Diagnostics.t -> diagnostics
val translate : ?focus_on_main_doc:bool -> rootdir:string -> uri:Lsp.Uri.t -> Cobol_common.Diagnostics.Set.t -> diagnostics
val publish : diagnostics -> unit
val as_notification : ?log:bool -> Cobol_common.Diagnostics.t -> Lsp.Server_notification.t
val as_notifications : ?log:bool -> Cobol_common.Diagnostics.Set.t -> Lsp.Server_notification.t list