DidOpenTextDocumentParams does not extend TextDocumentIdentifier#36
DidOpenTextDocumentParams does not extend TextDocumentIdentifier#36dbaeumer merged 1 commit intomicrosoft:masterfrom
Conversation
See https://github.com/Microsoft/vscode-languageserver-node/blob/032c12a09cf19ad7fb6af997beca1d5f6a7f34b2/server/src/protocol.ts#L411-L416. The `uri` field is present in the `TextDocumentItem` in any case.
|
Hi @Marwes, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution! TTYL, MSBOT; |
|
@Marwes it does not in the 2.0 version of the protocol anymore. It instead has a property |
|
Sorry, now you got me confused. Is DidOpenTextDocumentParams supposed to extend TextDocumentIdentifier (which gives it an |
|
@Marwes no, it was that way in the 1.0 version of the protocol (which is available here: https://github.com/Microsoft/language-server-protocol/blob/master/versions/protocol-1-x.md). In the 2.0 version we cleaned this up and steps away from 'inlining' parameters. |
|
In that case, should my PR not be a fix since it removes |
|
@Marwes I apologoize a lot. I misread the diff. Makes perfect sense. And thank you for not giving up :-). |
|
Hi @Marwes, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution! TTYL, MSBOT; |
|
No problem. Just happy to be of some help, the protocol made it really simple to provide completion for my own little language :). |
See https://github.com/Microsoft/vscode-languageserver-node/blob/032c12a09cf19ad7fb6af997beca1d5f6a7f34b2/server/src/protocol.ts#L411-L416.
The
urifield is present in theTextDocumentItemin any case.