This revision was automatically updated to reflect the committed changes. Closed by commit rG7d3f8b1e2dcd: [clangd] Debounce rebuilds responsively to rebuild times. (authored by sammccall).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D73949/new/ https://reviews.llvm.org/D73949 Files: clang-tools-extra/clangd/ClangdServer.h Index: clang-tools-extra/clangd/ClangdServer.h =================================================================== --- clang-tools-extra/clangd/ClangdServer.h +++ clang-tools-extra/clangd/ClangdServer.h @@ -130,8 +130,11 @@ llvm::Optional<std::string> ResourceDir = llvm::None; /// Time to wait after a new file version before computing diagnostics. - DebouncePolicy UpdateDebounce = - DebouncePolicy::fixed(std::chrono::milliseconds(500)); + DebouncePolicy UpdateDebounce = DebouncePolicy{ + /*Min=*/std::chrono::milliseconds(50), + /*Max=*/std::chrono::milliseconds(500), + /*RebuildRatio=*/1, + }; bool SuggestMissingIncludes = false;
Index: clang-tools-extra/clangd/ClangdServer.h =================================================================== --- clang-tools-extra/clangd/ClangdServer.h +++ clang-tools-extra/clangd/ClangdServer.h @@ -130,8 +130,11 @@ llvm::Optional<std::string> ResourceDir = llvm::None; /// Time to wait after a new file version before computing diagnostics. - DebouncePolicy UpdateDebounce = - DebouncePolicy::fixed(std::chrono::milliseconds(500)); + DebouncePolicy UpdateDebounce = DebouncePolicy{ + /*Min=*/std::chrono::milliseconds(50), + /*Max=*/std::chrono::milliseconds(500), + /*RebuildRatio=*/1, + }; bool SuggestMissingIncludes = false;
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits