Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions versions/protocol-1-x.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# VSCode Client / Server Language Protocol

This document descibes the 1.x version of the client server protocol. It defines the client server protocol used by VSCode to talk to process language servers.
This document describes the 1.x version of the client server protocol. It defines the client server protocol used by VSCode to talk to process language servers.
The repository contains a VSCode protocol definition so that others can implement the protocol in languages like C#, C++, Java, Python or Elixir.

## Base Protocol
Expand Down Expand Up @@ -106,7 +106,7 @@ interface ResponseError<D> {
code: number;

/**
* A string providing a short decription of the error.
* A string providing a short description of the error.
*/
message: string;

Expand Down Expand Up @@ -339,7 +339,7 @@ This section documents the actual language server protocol. It uses the followin

* a header describing the request
* a _Request_ section describing the format of the request send. The method is a string identifying the request and the params are documented using a TypeScript interface
* a _Response_ section describing the format of the response. The result item descibes the returned data in the case of a success. The error.data describes the returned data in the case of an error. Please remember that in the case of a failure the response already contains an error.code and an error.message field. These fields are only speced if the protocol forces the use of certain error codes or messages. The cases where the server can decide on these values freely are not listed here.
* a _Response_ section describing the format of the response. The result item describes the returned data in the case of a success. The error.data describes the returned data in the case of an error. Please remember that in the case of a failure the response already contains an error.code and an error.message field. These fields are only speced if the protocol forces the use of certain error codes or messages. The cases where the server can decide on these values freely are not listed here.

#### Initialize Request

Expand Down Expand Up @@ -690,7 +690,7 @@ _Notification_:

#### DidChangeWatchedFiles Notification

The watched files notification is sent from the client to the server when the client detects changes to file watched by the lanaguage client.
The watched files notification is sent from the client to the server when the client detects changes to file watched by the language client.

_Notification_:
* method: 'workspace/didChangeWatchedFiles'
Expand Down Expand Up @@ -793,7 +793,7 @@ interface CompletionItem {
*/
documentation?: string;
/**
* A string that shoud be used when comparing this item
* A string that should be used when comparing this item
* with other items. When `falsy` the label is used.
*/
sortText?: string;
Expand Down Expand Up @@ -872,7 +872,7 @@ _Response_
* result: `Hover` defined as follows:
```typescript
/**
* The result of a hove request.
* The result of a hover request.
*/
interface Hover {
/**
Expand Down
4 changes: 2 additions & 2 deletions versions/protocol-2-x.md
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ interface InitializeResult {
interface InitializeError {
/**
* Indicates whether the client should retry to send the
* initilize request after showing the message provided
* initialize request after showing the message provided
* in the ResponseError.
*/
retry: boolean;
Expand Down Expand Up @@ -1064,7 +1064,7 @@ interface CompletionItem {
*/
documentation?: string;
/**
* A string that shoud be used when comparing this item
* A string that should be used when comparing this item
* with other items. When `falsy` the label is used.
*/
sortText?: string;
Expand Down