From 6d81120e3992aedd77cc1558d0006cd294a2d9dc Mon Sep 17 00:00:00 2001 From: Tyson Andre Date: Mon, 30 Jul 2018 20:04:59 -0700 Subject: [PATCH] Fix typos in contributing.md and protocol-*-x.md These were detected by the `misspell` tool --- contributing.md | 6 +++--- versions/protocol-1-x.md | 4 ++-- versions/protocol-2-x.md | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/contributing.md b/contributing.md index 9107320f4..36992095f 100644 --- a/contributing.md +++ b/contributing.md @@ -27,9 +27,9 @@ For a protocol extension the following files have to be created where ${name} is * the extensions to the client and server capabilities. * the actual requests and notifications. * **client/${name}.proposed.ts**: this file contains the actual implementation of the proposed protocol for the `vscode-languageclient`. Since version 3.4.0 the client supports implementing protocol in so called features that can be registered with a client. A static feature is responsible for: - * filling in the initalize properties (`fillInitializeParams` method) + * filling in the initialize properties (`fillInitializeParams` method) * filling in the client capabilities (`fillClientCapabilities` method) - * initalizing the feature (`initialize` method) + * initializing the feature (`initialize` method) The client also supports adding dynamic features. A dynamic feature supports capability registration requests sent from the server to the clients. See [`client/registerCapability`](https://github.com/Microsoft/language-server-protocol/blob/master/protocol.md#client_registerCapability) and [`client/unregisterCapability`](https://github.com/Microsoft/language-server-protocol/blob/master/protocol.md#client_unregisterCapability) in the protocol. * **server/${name}.proposed.ts**: the file contains the actual implementation of the proposed protocol for the `vscode-languageserver` node module. @@ -57,7 +57,7 @@ import { ..., ProposedFeatures } from 'vscode-languageserver'; let connection = createConnection(ProposedFeatures.all); ``` -If you decide to publish the protocol extension in its own repository it must contain that above files with it defined name and format. The repository also needs documentation on how to instanciate the client and server features. +If you decide to publish the protocol extension in its own repository it must contain that above files with it defined name and format. The repository also needs documentation on how to instantiate the client and server features. ## A Sample Protocol Extension diff --git a/versions/protocol-1-x.md b/versions/protocol-1-x.md index 8d7381b63..a022f9ad6 100644 --- a/versions/protocol-1-x.md +++ b/versions/protocol-1-x.md @@ -101,7 +101,7 @@ interface ResponseMessage extends Message { interface ResponseError { /** - * A number indicating the error type that occured. + * A number indicating the error type that occurred. */ code: number; @@ -1039,7 +1039,7 @@ interface DocumentHighlight { */ enum DocumentHighlightKind { /** - * A textual occurrance. + * A textual occurrence. */ Text = 1, diff --git a/versions/protocol-2-x.md b/versions/protocol-2-x.md index a058f6584..824634566 100644 --- a/versions/protocol-2-x.md +++ b/versions/protocol-2-x.md @@ -1177,7 +1177,7 @@ Where `MarkedString` is defined as follows: /** * The marked string is rendered: * - as markdown if it is represented as a string - * - as code block of the given langauge if it is represented as a pair of a language and a value + * - as code block of the given language if it is represented as a pair of a language and a value * * The pair of a language and a value is an equivalent to markdown: * ```${language} @@ -1349,7 +1349,7 @@ interface DocumentHighlight { */ enum DocumentHighlightKind { /** - * A textual occurrance. + * A textual occurrence. */ Text = 1,