@@ -25,9 +25,9 @@ import {
2525 getComponentInstance
2626} from './component'
2727import { addQueuedPlugins , addPlugin , sendPluginList , addPreviouslyRegisteredPlugins } from './plugin'
28- import { PluginDescriptor , SetupFunction , TimelineLayerOptions , App , TimelineEventOptions , CustomInspectorOptions } from '@vue/devtools-api'
29- import { registerApp , selectApp , mapAppRecord , getAppRecordId , waitForAppsRegistration } from './app'
30- import { sendInspectorTree , getInspector , getInspectorWithAppId , sendInspectorState , editInspectorState } from './inspector'
28+ import { PluginDescriptor , SetupFunction , TimelineLayerOptions , TimelineEventOptions , CustomInspectorOptions } from '@vue/devtools-api'
29+ import { registerApp , selectApp , mapAppRecord , waitForAppsRegistration } from './app'
30+ import { sendInspectorTree , getInspector , getInspectorWithAppId , sendInspectorState , editInspectorState , sendCustomInspectors } from './inspector'
3131import { showScreenshot } from './timeline-screenshot'
3232
3333let ctx : BackendContext
@@ -257,17 +257,7 @@ async function connect () {
257257 // Custom inspectors
258258
259259 ctx . bridge . on ( BridgeEvents . TO_BACK_CUSTOM_INSPECTOR_LIST , ( ) => {
260- ctx . bridge . send ( BridgeEvents . TO_FRONT_CUSTOM_INSPECTOR_LIST , {
261- inspectors : ctx . customInspectors . map ( i => ( {
262- id : i . id ,
263- appId : getAppRecordId ( i . app ) ,
264- pluginId : i . plugin . descriptor . id ,
265- label : i . label ,
266- icon : i . icon ,
267- treeFilterPlaceholder : i . treeFilterPlaceholder ,
268- stateFilterPlaceholder : i . stateFilterPlaceholder
269- } ) )
270- } )
260+ sendCustomInspectors ( ctx )
271261 } )
272262
273263 ctx . bridge . on ( BridgeEvents . TO_BACK_CUSTOM_INSPECTOR_TREE , ( { inspectorId, appId, treeFilter } ) => {
0 commit comments