Skip to content

Commit

Permalink
Disable spammy logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Nimaoth committed Jul 21, 2024
1 parent 0f04f5e commit 916504f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/text/completion.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/text/text_editor.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 916504f

Please sign in to comment.