Skip to content

Commit

Permalink
test(ocamllsp): add workspace symbol test to showcase issue with gene…
Browse files Browse the repository at this point in the history
…rated files
  • Loading branch information
tatchi committed May 10, 2023
1 parent 88333f9 commit ce21883
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ocaml-lsp-server/test/e2e/__tests__/workspace-symbol.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ describe("workspace/symbol", () => {
"lib_x 12 /workspace_symbol_A/lib/lib.ml 6:0 6:14",
"user 15 /workspace_symbol_A/lib/lib.ml 3:0 5:1",
"name 7 /workspace_symbol_A/lib/lib.ml 4:2 4:14",
"hello 12 /workspace_symbol_A/lib/gen.ml 0:0 0:19",
"t 15 /workspace_symbol_A/lib/LibTypes.mli 0:0 0:15",
"x 12 /workspace_symbol_A/vendor/vendored_lib.ml 0:0 0:9",
]
Expand Down Expand Up @@ -200,6 +201,7 @@ describe("workspace/symbol", () => {
"lib_x 12 /workspace_symbol_A/lib/lib.ml 6:0 6:14",
"user 15 /workspace_symbol_A/lib/lib.ml 3:0 5:1",
"name 7 /workspace_symbol_A/lib/lib.ml 4:2 4:14",
"hello 12 /workspace_symbol_A/lib/gen.ml 0:0 0:19",
"t 15 /workspace_symbol_A/lib/LibTypes.mli 0:0 0:15",
"x 12 /workspace_symbol_A/vendor/vendored_lib.ml 0:0 0:9",
"workspace_B 12 /workspace_symbol_B/main.ml 0:0 0:31",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,11 @@
(flags :standard -w -32-38-27-34)
(name lib))


(copy_files# ../vendor/*.ml{,i})

(rule
(target gen.ml)
(action
(with-stdout-to
%{target}
(echo "let hello = \"world\""))))

0 comments on commit ce21883

Please sign in to comment.