-
Notifications
You must be signed in to change notification settings - Fork 72
Conversation
@tomv564 could you give this a review? |
Codecov Report
@@ Coverage Diff @@
## master #251 +/- ##
==========================================
+ Coverage 57.83% 58.16% +0.33%
==========================================
Files 13 13
Lines 2056 2087 +31
Branches 340 345 +5
==========================================
+ Hits 1189 1214 +25
- Misses 731 734 +3
- Partials 136 139 +3
Continue to review full report at Codecov.
|
Can you explain what function the JSONPTR serves? I am guessing something to do with streaming unrequested payloads to the client? |
If you mean streaming (which works with JSON Patches) in general, see microsoft/language-server-protocol#182 |
Does this work for you otherwise? |
Can you explain what json pointers mean in the context of the changes being sent to the client? This is the first place that uses them, so I am curious what they point to and why! The rest looks OK! |
Streaming works through JSON Patches, which contain a
https://tools.ietf.org/html/rfc6902#section-4 They are already used in every method as the |
Awesome, thanks for educating :)
…On Mon, May 15, 2017 at 6:12 PM Felix Becker ***@***.***> wrote:
Streaming works through JSON Patches, which contain a path property that
is a JSON Pointer to point to the property in the JSON document to change:
Additionally, operation objects MUST have exactly one "path" member.
That member's value is a string containing a JSON-Pointer value
[RFC6901] that references a location within the target document (the
"target location") where the operation is performed.
https://tools.ietf.org/html/rfc6902#section-4
They are already used in every method as the path property, but rename is
the first method where the path is dynamic because it's a URI -> change
dictionary. Since URIs contain slashes, and slashes are reserved in JSON
Pointers, they need to be escaped.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#251 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEMTODOZDXkp0Bjfwpxv9uBq7EG2kCuOks5r6HlwgaJpZM4NaM8X>
.
|
@tomv564 I split out the rename feature in a separate PR