extension/panel.ts
Function _messageHandler
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private async _messageHandler(message: MessageType, memento: Memento, webview: Webview) {
const { action, data, text } = message;
switch (action) {
case "load":
webview.postMessage({ action: "load", data: await loadData(memento, this._scope) } as MessageType);