Add onInitializationFinish event handler to call JStoIdea.getCommandList()

This commit is contained in:
smallstone 2023-12-21 17:37:31 +08:00
parent 2fc6ecbafa
commit 957c31748d
2 changed files with 5 additions and 0 deletions

1
globals.d.ts vendored
View File

@ -2,4 +2,5 @@ interface Window {
JSJavaBridge: any; JSJavaBridge: any;
acquireVsCodeApi: any; acquireVsCodeApi: any;
IdeaToJSMessage: any; IdeaToJSMessage: any;
[key: string]: any;
} }

View File

@ -293,6 +293,10 @@ class IdeaBridge {
break; break;
} }
}; };
window.onInitializationFinish = () => {
// 初始化完成
JStoIdea.getCommandList();
};
} }
resviceDeleteMessage(res) { resviceDeleteMessage(res) {