From c1db600b478a4e6b39f8f7e94043bdb4f8cea0fe Mon Sep 17 00:00:00 2001 From: Andrew Kreimer Date: Mon, 9 Sep 2024 15:37:13 +0300 Subject: [PATCH] Fix typos --- .../org/graalvm/tools/lsp/server/types/CompletionItem.java | 2 +- .../org/graalvm/tools/lsp/server/types/CompletionOptions.java | 2 +- .../graalvm/tools/lsp/server/types/FailureHandlingKind.java | 4 ++-- .../org/graalvm/tools/lsp/server/types/LanguageServer.java | 4 ++-- .../graalvm/tools/lsp/server/types/ResponseErrorLiteral.java | 2 +- .../graalvm/tools/lsp/server/types/ServerCapabilities.java | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/CompletionItem.java b/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/CompletionItem.java index 8e5d43648ed03..b6822ebdf5a0e 100644 --- a/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/CompletionItem.java +++ b/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/CompletionItem.java @@ -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() { diff --git a/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/CompletionOptions.java b/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/CompletionOptions.java index 755ff9bb8b646..0d32e33de0d7a 100644 --- a/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/CompletionOptions.java +++ b/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/CompletionOptions.java @@ -76,7 +76,7 @@ public CompletionOptions setTriggerCharacters(List 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 diff --git a/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/FailureHandlingKind.java b/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/FailureHandlingKind.java index 2cf0e2f3c369d..76b61ec36795e 100644 --- a/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/FailureHandlingKind.java +++ b/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/FailureHandlingKind.java @@ -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"); diff --git a/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/LanguageServer.java b/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/LanguageServer.java index ffcadbca69ba4..885f000a35cb3 100644 --- a/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/LanguageServer.java +++ b/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/LanguageServer.java @@ -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]; @@ -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()); } } diff --git a/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/ResponseErrorLiteral.java b/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/ResponseErrorLiteral.java index a09cfc499d176..e92a33d284e1b 100644 --- a/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/ResponseErrorLiteral.java +++ b/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/ResponseErrorLiteral.java @@ -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"); diff --git a/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/ServerCapabilities.java b/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/ServerCapabilities.java index 1a89d269b9803..abd0e6ba32bb5 100644 --- a/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/ServerCapabilities.java +++ b/tools/src/org.graalvm.tools.lsp/src/org/graalvm/tools/lsp/server/types/ServerCapabilities.java @@ -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() {