Permalink
Browse files

Merge pull request #414 from IISResetMe/master

Fixed error msg misspellings of "received"
  • Loading branch information...
dbaeumer committed Sep 12, 2018
2 parents 29407c9 + 8bf5147 commit d168533600cafd64023cade9f2b5e6dee74134d4
Showing with 7 additions and 7 deletions.
  1. +2 −2 client/src/main.ts
  2. +3 −3 jsonrpc/src/messageReader.ts
  3. +1 −1 jsonrpc/src/messageWriter.ts
  4. +1 −1 server/src/main.ts
View
@@ -191,7 +191,7 @@ export class LanguageClient extends BaseLanguageClient {
codeVersion.prerelease = [];
}
if (!SemVer.satisfies(codeVersion, REQUIRED_VSCODE_VERSION)) {
throw new Error(`The language client requires VS Code version ${REQUIRED_VSCODE_VERSION} but recevied version ${VSCodeVersion}`);
throw new Error(`The language client requires VS Code version ${REQUIRED_VSCODE_VERSION} but received version ${VSCodeVersion}`);
}
}
@@ -509,4 +509,4 @@ export namespace ProposedFeatures {
let result: (StaticFeature | DynamicFeature<any>)[] = [];
return result;
}
}
}
@@ -165,7 +165,7 @@ export abstract class AbstractMessageReader {
if (error instanceof Error) {
return error;
} else {
return new Error(`Reader recevied error. Reason: ${Is.string(error.message) ? error.message : 'unknown'}`);
return new Error(`Reader received error. Reason: ${Is.string(error.message) ? error.message : 'unknown'}`);
}
}
}
@@ -229,7 +229,7 @@ export class StreamMessageReader extends AbstractMessageReader implements Messag
}
var msg = this.buffer.tryReadContent(this.nextMessageLength);
if (msg === null) {
/** We haven't recevied the full message yet. */
/** We haven't received the full message yet. */
this.setPartialMessageTimer();
return;
}
@@ -284,4 +284,4 @@ export class SocketMessageReader extends StreamMessageReader {
public constructor(socket: Socket, encoding: string = 'utf-8') {
super(socket as NodeJS.ReadableStream, encoding);
}
}
}
@@ -64,7 +64,7 @@ export abstract class AbstractMessageWriter {
if (error instanceof Error) {
return error;
} else {
return new Error(`Writer recevied error. Reason: ${Is.string(error.message) ? error.message : 'unknown'}`);
return new Error(`Writer received error. Reason: ${Is.string(error.message) ? error.message : 'unknown'}`);
}
}
}
View
@@ -262,7 +262,7 @@ export class TextDocuments {
let document = this._documents[td.uri];
if (document && isUpdateableDocument(document)) {
if (td.version === null || td.version === void 0) {
throw new Error(`Recevied document change event for ${td.uri} without valid version identifier`);
throw new Error(`Received document change event for ${td.uri} without valid version identifier`);
}
document.update(last, td.version);
this._onDidChangeContent.fire(Object.freeze({ document }));

0 comments on commit d168533

Please sign in to comment.