Skip to content

Commit

Permalink
Ignore unknown tag in configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
voodoos committed Oct 20, 2022
1 parent 138e927 commit e7ea0cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ocaml-lsp-server/src/merlin_config.ml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ module Config = struct
| `STDLIB path -> ({ config with stdlib = Some path }, errors)
| `READER reader -> ({ config with reader }, errors)
| `EXCLUDE_QUERY_DIR -> ({ config with exclude_query_dir = true }, errors)
| `UNKNOWN_TAG s -> (config, sprintf "Unknown tag %S" s :: errors)
| `UNKNOWN_TAG _ ->
(* For easier forward compatibility we ignore unknown configuration tags
when they are provided by dune *)
(config, errors)
| `ERROR_MSG str -> (config, str :: errors))

let postprocess =
Expand Down

0 comments on commit e7ea0cc

Please sign in to comment.