Refactor bridge.md and ideaBridge.ts

This commit is contained in:
bobo 2024-06-17 21:34:39 +08:00
parent ed5b3ce84e
commit 0232d4bc37
3 changed files with 0 additions and 12 deletions

View File

@ -16,7 +16,6 @@
- historyMessages // 页面的历史消息
- contextDetail // 获取 appendContext 响应之后,发送次请求获取文件的内容
- addContext // 点击 context 菜单(比如 git diff之后发送到消息
- code_file_apply // 代码应用到 editor替换 current file
- code_apply // 代码应用到 editor 光标位置
- sendMessage // 发送消息

View File

@ -320,9 +320,6 @@ class IdeaBridge {
case "listCommands/response":
this.resviceCommandList(res);
break;
case "addContext/notify":
this.resviesContext(res);
break;
case "getSetting/response":
this.resviceSettings(res);
break;

View File

@ -110,14 +110,6 @@ const InputMessage = observer((props: any) => {
}
};
const handleContextClick = (contextName: string) => {
// Process and send the message to the extension
messageUtil.sendMessage({
command: "addContext",
selected: contextName,
});
};
const handleKeyDown = (event: React.KeyboardEvent<HTMLTextAreaElement>) => {
if (menuOpend) {
if (event.key === "Escape") {