Skip to content

Commit 27dbcf6

Browse files
authored
fix: Clear chat locally before remotely (#202)
1 parent aa7051b commit 27dbcf6

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/extension.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -255,11 +255,8 @@ function registerCommands(
255255
command: "sourcery/chat/clear",
256256
arguments: [],
257257
};
258-
languageClient
259-
.sendRequest(ExecuteCommandRequest.type, request)
260-
.then(() => {
261-
chatProvider.clearChat();
262-
});
258+
chatProvider.clearChat();
259+
languageClient.sendRequest(ExecuteCommandRequest.type, request);
263260
})
264261
);
265262

0 commit comments

Comments
 (0)