hokein added a comment. thanks for fixing that! Played around it locally, it seems work, found an issue where the global code completion is not triggered, see my comment.
================ Comment at: clang-tools-extra/clangd/clients/clangd-vscode/src/extension.ts:116 + // Get the incomplete identifier before the cursor. + let word = document.getWordRangeAtPosition(position); + let prefix = document.getText(new vscode.Range(word.start, position)); ---------------- the word is `undefined` if we trigger the global code completion, e.g. `^`, `std::^`. ================ Comment at: clang-tools-extra/clangd/clients/clangd-vscode/src/extension.ts:124 + }) + return new vscode.CompletionList(items, true); + } ---------------- nit: /*isInComplete=*/true Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D75623/new/ https://reviews.llvm.org/D75623 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits