forked from ocaml/dune
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Communicate READER to merlin for configured dialects (ocaml#8567)
* refactor: best effort to track orig module sources This is going to be useful for more granular merlin configs. Signed-off-by: Andrey Popp <8mayday@gmail.com> * refactor: per file merlin configs, communicate merlin reader Signed-off-by: Andrey Popp <8mayday@gmail.com> * test: promote merlin tests Signed-off-by: Andrey Popp <8mayday@gmail.com> * test: add merlin/dialect.t tests Signed-off-by: Andrey Popp <8mayday@gmail.com> * test: add a test focusing on merlin's configuration various granularity levels Signed-off-by: Ulysse Gérard <thevoodoos@gmail.com> Signed-off-by: Andrey Popp <8mayday@gmail.com> Signed-off-by: Antonio Nuno Monteiro <anmonteiro@gmail.com> * test: tweak the prev commit (to be squashed) Signed-off-by: Andrey Popp <8mayday@gmail.com> * wip: Module.File.t not to encode orig_path Signed-off-by: Andrey Popp <8mayday@gmail.com> * merlin: lookup fallback with extensionless filename Relying on `.ml` extension present is not something we can do, instead store same config with and without extension and on lookup do a fallback with no extension. Signed-off-by: Andrey Popp <8mayday@gmail.com> * Apply suggestions from code review Co-authored-by: Antonio Nuno Monteiro <anmonteiro@gmail.com> Signed-off-by: Andrey Popp <8mayday@gmail.com> * Extract `handle_ml_kind` to the outside scope. Co-authored-by: Antonio Nuno Monteiro <anmonteiro@gmail.com> Signed-off-by: Andrey Popp <8mayday@gmail.com> * Use Filename.Extension.t for file extensions Co-authored-by: Antonio Nuno Monteiro <anmonteiro@gmail.com> Signed-off-by: Andrey Popp <8mayday@gmail.com> * tests: update merlin/dialect tests Signed-off-by: Andrey Popp <8mayday@gmail.com> * More descriptive naming in Module Signed-off-by: Andrey Popp <8mayday@gmail.com> * promote tests due to dune 3.16 Signed-off-by: Andrey Popp <8mayday@gmail.com> * merlin: test merlin config for promoted modules Signed-off-by: Andrey Popp <8mayday@gmail.com> * doc: describe changes Signed-off-by: Andrey Popp <8mayday@gmail.com> --------- Signed-off-by: Andrey Popp <8mayday@gmail.com> Signed-off-by: Ulysse Gérard <thevoodoos@gmail.com> Signed-off-by: Antonio Nuno Monteiro <anmonteiro@gmail.com> Co-authored-by: Ulysse Gérard <thevoodoos@gmail.com> Co-authored-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>
- Loading branch information
1 parent
91772ec
commit c46ace9
Showing
31 changed files
with
1,148 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- merlin: add optional `(merlin_reader CMD)` construct to `(dialect)` stanza to | ||
configure a merlin reader (#8567, @andreypopp) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.