diff options
author | River Riddle <riddleriver@gmail.com> | 2022-05-18 04:32:46 +0300 |
---|---|---|
committer | River Riddle <riddleriver@gmail.com> | 2022-05-18 10:23:47 +0300 |
commit | 17e2e7b7885c0afe688bcd4d6b198aab6ea8f58a (patch) | |
tree | 0173861c1a2c617d7a243a08d1f8b89cd72f03f4 /mlir | |
parent | 6d4471efb0b94c066e5e93c99278397691869dbc (diff) |
[mlir:PDLL] Don't append / for directory code completion
This allows for properly using / as a trigger character, i.e.
more easily allows chaining include directory completions.
Diffstat (limited to 'mlir')
-rw-r--r-- | mlir/lib/Tools/mlir-pdll-lsp-server/PDLLServer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Tools/mlir-pdll-lsp-server/PDLLServer.cpp b/mlir/lib/Tools/mlir-pdll-lsp-server/PDLLServer.cpp index 18aa91fb9bf8..7ff7f8d8264d 100644 --- a/mlir/lib/Tools/mlir-pdll-lsp-server/PDLLServer.cpp +++ b/mlir/lib/Tools/mlir-pdll-lsp-server/PDLLServer.cpp @@ -916,7 +916,7 @@ public: // Functor used to add a single include completion item. auto addIncludeCompletion = [&](StringRef path, bool isDirectory) { lsp::CompletionItem item; - item.label = (path + (isDirectory ? "/" : "")).str(); + item.label = path.str(); item.kind = isDirectory ? lsp::CompletionItemKind::Folder : lsp::CompletionItemKind::File; if (seenResults.insert(item.label).second) |