Module Superbol_vscode_lib.Config

module WS = Vscode.Workspace
val section : string
val non_empy : string -> string option
val cobc_exe : ?scope:Vscode.ConfigurationScope.t -> unit -> string option
val bool : ?scope:Vscode.ConfigurationScope.t -> string -> bool
val string : ?scope:Vscode.ConfigurationScope.t -> string -> string
val strings : ?scope:Vscode.ConfigurationScope.t -> string -> string list
val positive_int : ?scope:Vscode.ConfigurationScope.t -> string -> default:int -> int
val any : ?scope:Vscode.ConfigurationScope.t -> string -> Interop.Js.Any.t
val any_list : ?scope:Vscode.ConfigurationScope.t -> string -> Ojs.t list

Encoding of COBOL files

val string_in : WS_CONF.t -> key:string -> string option
val cobol_files_encoding : scope:Vscode.ConfigurationScope.t -> string option

cobol_files_encoding ~scope is the encoding VS Code opens COBOL files in scope with: files.encoding, unless the [cobol] section overrides it. The LSP server follows the same rule (see `file_encoding_in_client_config' in `cobol_lsp/lsp_server.ml').

val guesses_encoding : scope:Vscode.ConfigurationScope.t -> bool

Whether VS Code guesses the encoding of files in scope (in which case the encoding of COBOL files may differ from cobol_files_encoding).

Caches

val is_size : string -> bool

Whether s is a size as the server accepts it (see `Arg_utils.size_of_string'): a number of bytes, with an optional k, M or G suffix.

val bytes_of_size : string -> float

bytes_of_size s is the number of bytes size s stands for.

val cache_size_limit : unit -> string option

Size under which the server keeps the cache of each project (setting cache.sizeLimit); None if empty or invalid.

val cache_max_age : unit -> int option

Number of days after which the server reclaims cache entries that have not been used (setting cache.maxAge); None for no limit.