From 989be56f4b1da0a37b7b1565bab35b39df5f3371 Mon Sep 17 00:00:00 2001 From: Evan Date: Mon, 3 Feb 2025 13:56:04 -0800 Subject: [PATCH] fire n forget error handling --- .../llm-access-control/LLMFileAccessController.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/services/llm-access-control/LLMFileAccessController.ts b/src/services/llm-access-control/LLMFileAccessController.ts index 6499998613..40a2e46b55 100644 --- a/src/services/llm-access-control/LLMFileAccessController.ts +++ b/src/services/llm-access-control/LLMFileAccessController.ts @@ -48,10 +48,14 @@ export class LLMFileAccessController { // Watch for changes and updates this.disposables.push( this.fileWatcher.onDidChange(() => { - this.loadCustomPatterns() + this.loadCustomPatterns().catch((error) => { + console.error("Failed to load updated .clineignore patterns:", error) + }) }), this.fileWatcher.onDidCreate(() => { - this.loadCustomPatterns() + this.loadCustomPatterns().catch((error) => { + console.error("Failed to load new .clineignore patterns:", error) + }) }), this.fileWatcher.onDidDelete(() => { this.resetToDefaultPatterns()