Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
algonell committed Sep 9, 2024
1 parent f3953aa commit c1db600
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public CompletionItem setInsertText(String insertText) {

/**
* The format of the insert text. The format applies to both the `insertText` property and the
* `newText` property of a provided `textEdit`. If ommitted defaults to
* `newText` property of a provided `textEdit`. If omitted defaults to
* `InsertTextFormat.PlainText`.
*/
public InsertTextFormat getInsertTextFormat() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public CompletionOptions setTriggerCharacters(List<String> triggerCharacters) {

/**
* The list of all possible characters that commit a completion. This field can be used if
* clients don't support individual commmit characters per completion item. See
* clients don't support individual commit characters per completion item. See
* `ClientCapabilities.textDocument.completion.completionItem.commitCharactersSupport`
*
* If a server provides both `allCommitCharacters` and commit characters on an individual
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ public enum FailureHandlingKind {
/**
* If the workspace edit contains only textual file changes they are executed transactional. If
* resource changes (create, rename or delete file) are part of the change the failure handling
* startegy is abort.
* strategy is abort.
*/
TextOnlyTransactional("textOnlyTransactional"),
/**
* The client tries to undo the operations already executed. But there is no guaruntee that this
* The client tries to undo the operations already executed. But there is no guarantee that this
* is succeeding.
*/
Undo("undo");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ private static byte[] readMessageBytes(InputStream in, LoggerProxy logger) throw
} else {
// Two consecutive newlines start the message content
if (contentLength < 0) {
logger.log(Level.SEVERE, "Error while processing an incomming message: Missing header " + CONTENT_LENGTH_HEADER + " in input.");
logger.log(Level.SEVERE, "Error while processing an incoming message: Missing header " + CONTENT_LENGTH_HEADER + " in input.");
} else {
// Read the message
byte[] buffer = new byte[contentLength];
Expand Down Expand Up @@ -516,7 +516,7 @@ private void processMessage(byte[] messageBytes) {
processNotification(message, messageBytes);
}
} catch (Exception e) {
server.getLogger().log(Level.SEVERE, "Error while processing an incomming message: " + e.getMessage());
server.getLogger().log(Level.SEVERE, "Error while processing an incoming message: " + e.getMessage());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public ResponseErrorLiteral setCode(int code) {
}

/**
* A string providing a short decription of the error.
* A string providing a short description of the error.
*/
public String getMessage() {
return jsonData.getString("message");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ public WorkspaceFoldersCapabilities setSupported(Boolean supported) {
* Whether the server wants to receive workspace folder change notifications.
*
* If a strings is provided the string is treated as a ID under which the notification
* is registed on the client side. The ID can be used to unregister for these events
* is registered on the client side. The ID can be used to unregister for these events
* using the `client/unregisterCapability` request.
*/
public Object getChangeNotifications() {
Expand Down

0 comments on commit c1db600

Please sign in to comment.