[Mlir-commits] [mlir] 362c4e6 - [mlir:LSP] Remove several more annoying completion commit characters

River Riddle llvmlistbot at llvm.org
Wed Jul 20 12:11:07 PDT 2022


Author: River Riddle
Date: 2022-07-20T12:02:13-07:00
New Revision: 362c4e68c975bcfcf63222535c13a2f3f1e2eb84

URL: https://github.com/llvm/llvm-project/commit/362c4e68c975bcfcf63222535c13a2f3f1e2eb84
DIFF: https://github.com/llvm/llvm-project/commit/362c4e68c975bcfcf63222535c13a2f3f1e2eb84.diff

LOG: [mlir:LSP] Remove several more annoying completion commit characters

These characters are annoying in that they accept completions
that weren't intended, causing user frustration.

Added: 
    

Modified: 
    mlir/lib/Tools/mlir-lsp-server/LSPServer.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Tools/mlir-lsp-server/LSPServer.cpp b/mlir/lib/Tools/mlir-lsp-server/LSPServer.cpp
index 7f0727f237be..3e9a66a42882 100644
--- a/mlir/lib/Tools/mlir-lsp-server/LSPServer.cpp
+++ b/mlir/lib/Tools/mlir-lsp-server/LSPServer.cpp
@@ -100,7 +100,13 @@ void LSPServer::onInitialize(const InitializeParams &params,
       {"completionProvider",
        llvm::json::Object{
            {"allCommitCharacters",
-            {"\t", ";", ",", "+", "-", "/", "*", "&", "?", ".", "=", "|"}},
+            {
+                "\t",
+                ";",
+                ",",
+                ".",
+                "=",
+            }},
            {"resolveProvider", false},
            {"triggerCharacters",
             {".", "%", "^", "!", "#", "(", ",", "<", ":", "[", " ", "\"", "/"}},


        


More information about the Mlir-commits mailing list