From c0b6d8f1c4a6c103f0a5ff4af2fad246f8d035b6 Mon Sep 17 00:00:00 2001 From: AutumnVN Date: Thu, 7 Dec 2023 04:27:06 +0700 Subject: [PATCH] devCompanion: add findComponentByCode (#2026) --- src/plugins/devCompanion.dev/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/devCompanion.dev/index.tsx b/src/plugins/devCompanion.dev/index.tsx index 2fa01f25..25fd563e 100644 --- a/src/plugins/devCompanion.dev/index.tsx +++ b/src/plugins/devCompanion.dev/index.tsx @@ -215,6 +215,9 @@ function initWs(isManual = false) { case "ModuleId": results = Object.keys(search(parsedArgs[0])); break; + case "ComponentByCode": + results = findAll(filters.componentByCode(...parsedArgs)); + break; default: return reply("Unknown Find Type " + type); }