Refactor bridge.md and ideaBridge.ts
This commit is contained in:
parent
ed5b3ce84e
commit
0232d4bc37
@ -16,7 +16,6 @@
|
||||
|
||||
- historyMessages // 页面的历史消息
|
||||
- contextDetail // 获取 appendContext 响应之后,发送次请求获取文件的内容
|
||||
- addContext // 点击 context 菜单(比如 git diff)之后发送到消息
|
||||
- code_file_apply // 代码应用到 editor,替换 current file
|
||||
- code_apply // 代码应用到 editor 光标位置
|
||||
- sendMessage // 发送消息
|
||||
|
@ -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;
|
||||
|
@ -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") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user