Fix issue with setting new topic in VSCode
This commit is contained in:
parent
2af2f079c1
commit
4520dc307e
@ -9,15 +9,16 @@ export default function Topic({ buttonStyles, disabled }) {
|
||||
const isVscode = process.env.platform === "vscode";
|
||||
|
||||
const setNewTopic = () => {
|
||||
messageUtil.sendMessage({
|
||||
command: "setNewTopic",
|
||||
});
|
||||
if (isVscode) {
|
||||
chat.reloadMessage({
|
||||
entries: [],
|
||||
pageIndex: 0,
|
||||
reset: true,
|
||||
});
|
||||
} else {
|
||||
messageUtil.sendMessage({
|
||||
command: "setNewTopic",
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user