-
Notifications
You must be signed in to change notification settings - Fork 4
Restore diagnostics and formatting #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
3d50f46
ef82842
da20609
643adeb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -68,7 +68,7 @@ let default = | |
| ; hint_let_syntax_ppx = false | ||
| } | ||
| ; syntax_documentation = Some { enable = false } | ||
| ; merlin_diagnostics = Some { enable = false } | ||
| ; merlin_diagnostics = Some { enable = true } | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Configuration of this setting isn't possible in many LSP clients (e.g. the ocaml-platform VS Code extension), and defaulting to |
||
| ; shorten_merlin_diagnostics = Some { enable = false } | ||
| ; ppx_css_colors = Some { enable = true } | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -140,7 +140,7 @@ let initialize_info (client_capabilities : ClientCapabilities.t) : InitializeRes | |
| ~codeLensProvider | ||
| ~referencesProvider:(`Bool true) | ||
| ~documentHighlightProvider:(`Bool true) | ||
| ~documentFormattingProvider:(`Bool false) | ||
| ~documentFormattingProvider:(`Bool true) | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As above, this probably makes sense in the JS internal toolchain but isn't configurable by clients. Editor formatting (via the LSP) does work as expected (with version unset in |
||
| ~selectionRangeProvider:(`Bool true) | ||
| ~documentSymbolProvider:(`Bool true) | ||
| ~workspaceSymbolProvider:(`Bool true) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -137,7 +137,7 @@ let formatter doc = | |
| ;; | ||
|
|
||
| let exec cancel bin args stdin = | ||
| let refmt = Fpath.to_string bin in | ||
| let refmt = Stdune.Path.to_string bin in | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change might not strictly be needed |
||
| let+ res, cancel = run_command cancel refmt stdin args in | ||
| match cancel with | ||
| | Cancelled () -> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This corresponds to the published version on the OxCaml opam-repository, but there might be some broader changes needed to support that