From 916504f0849b157651aa76b6041e4e74c5a4934e Mon Sep 17 00:00:00 2001 From: Nimaoth Date: Sun, 21 Jul 2024 17:10:18 +0200 Subject: [PATCH] Disable spammy logs --- src/text/completion.nim | 2 +- src/text/text_editor.nim | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/text/completion.nim b/src/text/completion.nim index 13d1fba1..f43ff43a 100644 --- a/src/text/completion.nim +++ b/src/text/completion.nim @@ -83,7 +83,7 @@ proc updateCombinedCompletions(self: CompletionEngine) = self.combinedCompletions.sort(cmp, Descending) self.combinedDirty = false - log lvlInfo, &"[Comp] Combine completions took {timer.elapsed.ms}. {self.combinedCompletions.len} completions." + # log lvlInfo, &"[Comp] Combine completions took {timer.elapsed.ms}. {self.combinedCompletions.len} completions." proc handleProviderCompletionsUpdated(self: CompletionEngine, provider: CompletionProvider) = self.combinedDirty = true diff --git a/src/text/text_editor.nim b/src/text/text_editor.nim index 9e0a917f..bdeea20b 100644 --- a/src/text/text_editor.nim +++ b/src/text/text_editor.nim @@ -466,8 +466,8 @@ proc preRender*(self: TextDocumentEditor) = self.updateSearchResults() if self.showCompletions and self.completionsDirty: - measureBlock "refilter completions": - self.refilterCompletions() + # measureBlock "refilter completions": + self.refilterCompletions() iterator splitSelectionIntoLines(self: TextDocumentEditor, selection: Selection, includeAfter: bool = true): Selection =