From 9f6160ac02107c535f3d68cd63cef5d7195bd10c Mon Sep 17 00:00:00 2001 From: Jakub Blach Date: Mon, 12 Feb 2024 15:51:48 +0100 Subject: [PATCH] wip --- vscode/src/search/SearchViewProvider.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/vscode/src/search/SearchViewProvider.ts b/vscode/src/search/SearchViewProvider.ts index 9be51277c4d..c4220ca2554 100644 --- a/vscode/src/search/SearchViewProvider.ts +++ b/vscode/src/search/SearchViewProvider.ts @@ -153,12 +153,13 @@ export class SearchViewProvider implements vscode.WebviewViewProvider, vscode.Di public initialize(): void { this.disposables.push( vscode.commands.registerCommand('cody.search.index-update', async () => { - const scopeDirs = getScopeDirs() - if (scopeDirs.length === 0) { - void vscode.window.showWarningMessage('Open a workspace folder to index') - return - } - await this.indexManager.refreshIndex(scopeDirs[0]) + // const scopeDirs = getScopeDirs() + throw new Error('symf faked error') + // if (scopeDirs.length === 0) { + // void vscode.window.showWarningMessage('Open a workspace folder to index') + // return + // } + // await this.indexManager.refreshIndex(scopeDirs[0]) }), vscode.commands.registerCommand('cody.search.index-update-all', async () => { const folders = vscode.workspace.workspaceFolders