@@ -24,10 +24,24 @@ const {
24
24
} = require ( "./src/blockReader/blockchainExplorer.js" ) ;
25
25
const { log } = require ( "console" ) ;
26
26
let loadedConnectionProfile = null ;
27
+ let factory ;
27
28
28
29
function 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
+ = === ===
29
42
const fabricDebuggerPath = context . extensionPath ;
30
43
44
+
31
45
let greenButton = vscode . commands . registerCommand ( "myview.button1" , ( ) => {
32
46
const platform = process . platform ;
33
47
let command ;
@@ -181,12 +195,7 @@ function activate(context) {
181
195
} ) ;
182
196
}
183
197
184
- factory = new DelveDebugAdapterDescriptorFactory ( ) ;
185
- context . subscriptions . push (
186
- vscode . debug . registerDebugAdapterDescriptorFactory ( "delve" , factory )
187
- ) ;
188
- console . log ( "Delve Debug Adapter Registered" ) ;
189
-
198
+
190
199
const hyperledgerProvider = new fabricsamples ( ) ;
191
200
const treeViewProviderFabric = new TreeViewProvider (
192
201
"fabric-network" ,
@@ -1324,12 +1333,10 @@ function extractWalletDetails(walletData) {
1324
1333
}
1325
1334
}
1326
1335
1327
- return null ;
1336
+ function deactivate ( ) {
1337
+ console . log ( "Deactivating Fabric Debugger extension..." ) ;
1328
1338
}
1329
1339
1330
- function deactivate ( ) { }
1331
-
1332
-
1333
1340
module . exports = {
1334
1341
activate,
1335
1342
deactivate,
0 commit comments