@@ -260,15 +260,9 @@ function activate(context) {
260260 if ( descItem ) {
261261 treeViewProviderDesc . setActiveNetwork ( descItem ) ;
262262 }
263- if ( fabricItem ) {
264- treeViewProviderFabric . setActiveNetwork ( fabricItem ) ;
265- }
266263 if ( descItem ) {
267264 treeViewProviderDesc . setActiveNetwork ( descItem ) ;
268265 }
269- if ( fabricItem ) {
270- treeViewProviderFabric . setActiveNetwork ( fabricItem ) ;
271- }
272266
273267 const activeNetwork = fabricItem || descItem ;
274268 if ( ! activeNetwork ) {
@@ -620,7 +614,6 @@ function activate(context) {
620614 )
621615 ) ;
622616
623-
624617 context . subscriptions . push (
625618 vscode . commands . registerCommand ( "fabric-network.queryBlocks" , async ( ) => {
626619 if ( ! loadedConnectionProfile || ! loadedConnectionProfile . name ) {
@@ -689,8 +682,8 @@ function activate(context) {
689682 if ( rawBlockData ) {
690683 try {
691684 const decodedBlock = await decodeBlock ( rawBlockData ) ;
692-
693- decodedBlocks . push ( decodedBlock ) ;
685+
686+ decodedBlocks . push ( decodedBlock ) ;
694687 } catch ( decodeError ) {
695688 vscode . window . showErrorMessage (
696689 `Error decoding block ${ blockNumber } : ${ decodeError . message } `
@@ -702,7 +695,7 @@ function activate(context) {
702695 }
703696 }
704697
705- BlockchainProvider . refresh ( decodedBlocks ) ;
698+ BlockchainProvider . refresh ( decodedBlocks ) ;
706699 } catch ( error ) {
707700 vscode . window . showErrorMessage ( `Error: ${ error . message } ` ) ;
708701 console . error ( "Error during block query:" , error ) ;
@@ -739,7 +732,6 @@ function activate(context) {
739732 ) ;
740733 console . log ( "Delve Debug Adapter Registered" ) ;
741734
742-
743735 context . subscriptions . push (
744736 vscode . debug . onDidStartDebugSession ( ( session ) => {
745737 console . log ( `Debugging started: ${ session . name } ` ) ;
0 commit comments