@@ -24,10 +24,24 @@ const {
2424} = require ( "./src/blockReader/blockchainExplorer.js" ) ;
2525const { log } = require ( "console" ) ;
2626let loadedConnectionProfile = null ;
27+ let factory ;
2728
2829function activate ( context ) {
30+ console . log ( "Activating Fabric Debugger extension..." ) ;
31+
32+ const factory = new DelveDebugAdapterDescriptorFactory ( ) ;
33+ context . subscriptions . push (
34+ vscode . debug . registerDebugAdapterDescriptorFactory ( "delve" , factory )
35+ ) ;
36+ context . subscriptions . push ( factory ) ;
37+ console . log ( "Fabric Debugger extension Registered" ) ;
38+
39+
40+ const fabricDebuggerPathNew = "C:\\Users\\chinm\\fabric-debugger" ;
41+ = === ===
2942 const fabricDebuggerPath = context . extensionPath ;
3043
44+
3145 let greenButton = vscode . commands . registerCommand ( "myview.button1" , ( ) => {
3246 const platform = process . platform ;
3347 let command ;
@@ -181,12 +195,7 @@ function activate(context) {
181195 } ) ;
182196 }
183197
184- factory = new DelveDebugAdapterDescriptorFactory ( ) ;
185- context . subscriptions . push (
186- vscode . debug . registerDebugAdapterDescriptorFactory ( "delve" , factory )
187- ) ;
188- console . log ( "Delve Debug Adapter Registered" ) ;
189-
198+
190199 const hyperledgerProvider = new fabricsamples ( ) ;
191200 const treeViewProviderFabric = new TreeViewProvider (
192201 "fabric-network" ,
@@ -1324,12 +1333,10 @@ function extractWalletDetails(walletData) {
13241333 }
13251334 }
13261335
1327- return null ;
1336+ function deactivate ( ) {
1337+ console . log ( "Deactivating Fabric Debugger extension..." ) ;
13281338}
13291339
1330- function deactivate ( ) { }
1331-
1332-
13331340module . exports = {
13341341 activate,
13351342 deactivate,
0 commit comments