File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
packages/app/src/components/workbench Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ export class DevtoolsSource extends Element {
3030 connectedCallback ( ) : void {
3131 super . connectedCallback ( )
3232 window . addEventListener ( 'show-command' , async ( ev : CustomEvent ) => {
33- this . closest ( 'wdio-devtools-tabs' ) ?. activateTab ( 'Log' )
3433 const command = ev . detail . command
3534 this . elapsedTime = ev . detail . elapsedTime
3635
@@ -49,6 +48,11 @@ export class DevtoolsSource extends Element {
4948 } , { } as Record < string , CommandEndpoint > )
5049 this . #commandDefinition = endpoints [ command . command ]
5150 this . command = command
51+ console . log ( 'show-command' , command , this . #commandDefinition)
52+ window . dispatchEvent ( new CustomEvent ( 'app-source-highlight' , {
53+ detail : this . command ?. callSource
54+ } ) )
55+ this . closest ( 'wdio-devtools-tabs' ) ?. activateTab ( 'Log' )
5256 } )
5357 }
5458
You can’t perform that action at this time.
0 commit comments