@@ -6,7 +6,10 @@ import BlockchainIdentifier from "./blockchainIdentifier";
6
6
import BlockchainMonitorPool from "./blockchainMonitor/blockchainMonitorPool" ;
7
7
import BlockchainsTreeDataProvider from "./vscodeProviders/blockchainsTreeDataProvider" ;
8
8
import CheckpointDetector from "./fileDetectors/checkpointDetector" ;
9
- import { CommandArguments , sanitizeCommandArguments } from "./commandArguments" ;
9
+ import {
10
+ CommandArguments ,
11
+ sanitizeCommandArguments ,
12
+ } from "./commands/commandArguments" ;
10
13
import ContractDetector from "./fileDetectors/contractDetector" ;
11
14
import ContractsTreeDataProvider from "./vscodeProviders/contractsTreeDataProvider" ;
12
15
import Log from "../shared/log" ;
@@ -21,6 +24,7 @@ import ServerListDetector from "./fileDetectors/serverListDetector";
21
24
import Templates from "./templates/templates" ;
22
25
import TrackerCommands from "./commands/trackerCommands" ;
23
26
import WalletDetector from "./fileDetectors/walletDetector" ;
27
+ import WalletsTreeDataProvider from "./vscodeProviders/walletsTreeDataProvider" ;
24
28
25
29
const LOG_PREFIX = "index" ;
26
30
@@ -65,6 +69,11 @@ export async function activate(context: vscode.ExtensionContext) {
65
69
blockchainsTreeDataProvider ,
66
70
blockchainMonitorPool
67
71
) ;
72
+ const walletsTreeDataProvider = new WalletsTreeDataProvider (
73
+ context . extensionPath ,
74
+ activeConnection ,
75
+ walletDetector
76
+ ) ;
68
77
const contractDetector = new ContractDetector ( activeConnection ) ;
69
78
const neoExpressInstanceManager = new NeoExpressInstanceManager (
70
79
neoExpress ,
@@ -113,6 +122,13 @@ export async function activate(context: vscode.ExtensionContext) {
113
122
)
114
123
) ;
115
124
125
+ context . subscriptions . push (
126
+ vscode . window . registerTreeDataProvider (
127
+ "neo3-visual-devtracker.views.wallets" ,
128
+ walletsTreeDataProvider
129
+ )
130
+ ) ;
131
+
116
132
context . subscriptions . push (
117
133
vscode . window . registerCustomEditorProvider (
118
134
"neo3-visual-devtracker.neo.neo-invoke-json" ,
@@ -331,6 +347,18 @@ export async function activate(context: vscode.ExtensionContext) {
331
347
( commandArguments ) =>
332
348
TrackerCommands . openContract ( context , autoComplete , commandArguments )
333
349
) ;
350
+
351
+ registerCommand (
352
+ context ,
353
+ "neo3-visual-devtracker.tracker.openWallet" ,
354
+ ( commandArguments ) =>
355
+ TrackerCommands . openWallet (
356
+ context ,
357
+ autoComplete ,
358
+ commandArguments ,
359
+ activeConnection
360
+ )
361
+ ) ;
334
362
}
335
363
336
364
export function deactivate ( ) {
0 commit comments