Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
exigow committed Feb 12, 2024
1 parent 70e927c commit 9f6160a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions vscode/src/search/SearchViewProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9f6160a

Please sign in to comment.