kadircet created this revision. kadircet added a reviewer: sammccall. Herald added subscribers: usaxena95, arphaman. kadircet requested review of this revision. Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov. Herald added a project: clang-tools-extra.
This should improve the overall UX by making the labels less jumpy. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D117776 Files: clang-tools-extra/clangd/ClangdServer.cpp Index: clang-tools-extra/clangd/ClangdServer.cpp =================================================================== --- clang-tools-extra/clangd/ClangdServer.cpp +++ clang-tools-extra/clangd/ClangdServer.cpp @@ -775,7 +775,7 @@ return CB(InpAST.takeError()); CB(clangd::inlayHints(InpAST->AST, std::move(RestrictRange))); }; - WorkScheduler->runWithAST("InlayHints", File, std::move(Action)); + WorkScheduler->runWithAST("InlayHints", File, std::move(Action), Transient); } void ClangdServer::onFileEvent(const DidChangeWatchedFilesParams &Params) {
Index: clang-tools-extra/clangd/ClangdServer.cpp =================================================================== --- clang-tools-extra/clangd/ClangdServer.cpp +++ clang-tools-extra/clangd/ClangdServer.cpp @@ -775,7 +775,7 @@ return CB(InpAST.takeError()); CB(clangd::inlayHints(InpAST->AST, std::move(RestrictRange))); }; - WorkScheduler->runWithAST("InlayHints", File, std::move(Action)); + WorkScheduler->runWithAST("InlayHints", File, std::move(Action), Transient); } void ClangdServer::onFileEvent(const DidChangeWatchedFilesParams &Params) {
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits