fix unit test

This commit is contained in:
duanfuxiang
2025-04-08 14:53:05 +08:00
parent 5118b3e3a7
commit 520fe80d11
16 changed files with 79 additions and 462 deletions

View File

@@ -578,6 +578,7 @@ const Chat = forwardRef<ChatRef, ChatProps>((props, ref) => {
}
}
} else if (toolArgs.type === 'regex_search_files') {
// @ts-expect-error Obsidian API type mismatch
const baseVaultPath = app.vault.adapter.getBasePath()
const ripgrepPath = settings.ripgrepPath
const absolutePath = path.join(baseVaultPath, toolArgs.filepath)