| 1 | package lspext |
| 2 | |
| 3 | import "github.com/sourcegraph/go-lsp" |
| 4 | |
| 5 | // PartialResultParams is the input for "$/partialResult", a notification. |
| 6 | type PartialResultParams struct { |
| 7 | // ID is the jsonrpc2 ID of the request we are returning partial |
| 8 | // results for. |
| 9 | ID lsp.ID `json:"id"` |
| 10 | |
| 11 | // Patch is a JSON patch as specified at http://jsonpatch.com/ |
| 12 | // |
| 13 | // It is an interface{}, since our only requirement is that it JSON |
| 14 | // marshals to a valid list of JSON Patch operations. |
| 15 | Patch interface{} `json:"patch"` |
| 16 | } |