It defaults to utf-8, which is the only encoding supported right now. The content part is encoded using the charset provided in the Content-Type field. The content part of a message uses JSON-RPC to describe requests, responses and notifications. Content PartĬontains the actual content of the message. This includes the ‘\r\n’ separating the header and content part. The header part is encoded using the ‘ascii’ encoding. Defaults to application/vscode-jsonrpc charset=utf-8 Considering the last header field and the overall header itself are each terminated with ‘\r\n’, and that at least one header is mandatory, this means that two ‘\r\n’ sequences always immediately precede the content part of a message.Ĭurrently the following header fields are supported: Header Field Name Each header field is terminated by ‘\r\n’. The structure of header fields conform to the HTTP semantic. Each header field is comprised of a name and a value, separated by ‘: ‘ (a colon and a space). The header part consists of header fields. The base protocol consists of a header and a content part (comparable to HTTP). Features in the spec are kept compatible using so called capability flags which are exchanged between the client and the server during initialization. The version of the specification is used to group features into a new specification release and to refer to their first appearance. Major new feature are: type hierarchy, inline values, inlay hints, notebook document support and a meta model that describes the 3.17 LSP version.Ī detailed list of the changes can be found in the change log What’s new in 3.17Īll new 3.17 features are tagged with a corresponding since version 3.17 text or in JSDoc using 3.17.0 annotation. Note: edits to this specification can be made via a pull request against this markdown document. An implementation for node of the 3.17.x version of the protocol can be found here. This document describes the 3.17.x version of the language server protocol.
0 Comments
Leave a Reply. |