-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:ocaml/ocaml-lsp into polarity_search
- Loading branch information
Showing
27 changed files
with
441 additions
and
53 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
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
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 |
---|---|---|
|
@@ -10,4 +10,4 @@ | |
|
||
(env | ||
(_ | ||
(flags :standard -alert -unstable))) | ||
(flags :standard -alert -unstable -w -58))) |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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,49 @@ | ||
# Construct Request | ||
|
||
## Description | ||
|
||
Provides commands to fill typed holes (`_`). Such holes sometimes | ||
appear in the result of other commands like `destruct` and can also be inserted | ||
manually in the source. The command is already accessible via a completion hook, | ||
however, in certain situations, invoking `construct` on a hole via a request | ||
allows more control. | ||
|
||
## Client Capability | ||
|
||
There is no client capability relative to this request. | ||
|
||
## Server capability | ||
|
||
- property name: `handleConstruct` | ||
- property type: `boolean` | ||
|
||
## Request | ||
|
||
- method: `ocamllsp/construct` | ||
- params: | ||
|
||
```json | ||
{ | ||
"uri": TextDocumentIdentifier, | ||
"position": Position | ||
"depth?": uinteger (default value: 0) | ||
"withValues?": <"local" | "none">, | ||
} | ||
``` | ||
|
||
The `depth` parameter allows to recursively construct terms. Note that | ||
when `depth > 1` partial results of inferior depth will not be | ||
returned. The `withValues` parameter enables the use of values from | ||
the environment (`local`) or not (`none`), It defaults to `none`. | ||
|
||
## Response | ||
|
||
```json | ||
{ | ||
"position": Range, | ||
"result": string[] | ||
} | ||
``` | ||
|
||
The result contains the range (`position`) to be replaced (describing the hole) | ||
and the list of possible substitution values (`result`). |
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.