Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: ocaml/setup-ocaml@v3
Expand Down
3 changes: 3 additions & 0 deletions bin/httui-lsp/schema_store.ml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ let rec shape_of_json : Yojson.Safe.t -> Httui_lang.Shape.t = function
absolute path ends in "/" + the stored relative path. The filter runs
client-side: the table holds one small row per executed alias. *)
let row_matches ~file_path stored =
(* document URIs yield backslash paths on Windows *)
let normalize p = String.map (fun c -> if c = '\\' then '/' else c) p in
let file_path = normalize file_path and stored = normalize stored in
stored = file_path || String.ends_with ~suffix:("/" ^ stored) file_path

(** [(alias, shape)] pairs inferred for the document at absolute path
Expand Down
3 changes: 2 additions & 1 deletion test/test_lsp.ml
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,7 @@ let () =
send_to c3 (req 9 "shutdown");
let _ = recv_from c3 in
send_to c3 (notif "exit");
Sys.remove db_path;
(* best effort: on Windows the server may still hold the file *)
(try Sys.remove db_path with Sys_error _ -> ());

if !failures > 0 then exit 1
Loading