Skip to content

Commit

Permalink
style: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
bm424 committed Oct 6, 2023
1 parent c701799 commit c87eb52
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions src/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,17 +170,15 @@ export class ChatProvider implements vscode.WebviewViewProvider {
});
} else {
// Reveal the directory in the explorer
vscode.commands
.executeCommand("revealInExplorer", filePath)
.then(() =>
// This is a little hack.
//
// There's some issue with the revealInExplorer command which means when the panel changes
// (e.g. from sourcery to the explorer) the instruction to actually focus the file path
// seems to get dropped. By calling it again (after the first command succeeds) we can
// make sure the file actually gets navigated to.
vscode.commands.executeCommand("revealInExplorer", filePath)
);
vscode.commands.executeCommand("revealInExplorer", filePath).then(() =>
// This is a little hack.
//
// There's some issue with the revealInExplorer command which means when the panel changes
// (e.g. from sourcery to the explorer) the instruction to actually focus the file path
// seems to get dropped. By calling it again (after the first command succeeds) we can
// make sure the file actually gets navigated to.
vscode.commands.executeCommand("revealInExplorer", filePath)
);
}
}
}
Expand Down

0 comments on commit c87eb52

Please sign in to comment.