From c87eb52cbe92188f4fb3c19dfd5de12e81c69aaf Mon Sep 17 00:00:00 2001 From: Ben Date: Fri, 6 Oct 2023 17:18:23 +0100 Subject: [PATCH] style: prettier --- src/chat.ts | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/chat.ts b/src/chat.ts index 8e51251c..8a70f2e5 100644 --- a/src/chat.ts +++ b/src/chat.ts @@ -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) + ); } } }