.continue/rules/new-protocol-message.md
Create a new protocol message by taking the following steps:
Add your new message type definition to the appropriate file in the protocol/ directory with correct TypeScript typing.
Verify that no existing message type already provides the same functionality.
If your message is between webview and core, add it to core/protocol/passThrough.ts.
If your message is between webview and core, add it to extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/constants/MessageTypes.kt.
Implement the message in the appropriate location:
core/core.tsuseWebviewListener hookVsCodeMessenger.tsIdeProtocolClient.ktVerify that your message works correctly in both VS Code and JetBrains IDEs if applicable.