-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
147 lines (147 loc) · 5 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
{
"name": "flint-debug",
"displayName": "Flint Debug",
"version": "0.1.1",
"publisher": "noellee-doc",
"description": "Flint debugger",
"author": {
"name": "Noel Lee",
"email": "[email protected]"
},
"license": "MIT",
"keywords": [
"flint",
"flintlang",
"smart contracts"
],
"engines": {
"vscode": "^1.44.0"
},
"categories": [
"Debuggers"
],
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/noellee/vscode-flint-debug.git"
},
"bugs": {
"url": "https://github.com/noellee/vscode-flint-debug/issues"
},
"scripts": {
"prepublish": "tsc -p ./src",
"compile": "tsc -p ./src",
"lint": "eslint . --ext .ts",
"watch": "tsc -w -p ./src",
"package": "vsce package",
"publish": "vsce publish"
},
"dependencies": {
"vscode-debugadapter": "1.40.0"
},
"devDependencies": {
"@types/node": "10.12.12",
"@types/vscode": "^1.44.0",
"@typescript-eslint/eslint-plugin": "^3.1.0",
"@typescript-eslint/parser": "^3.1.0",
"eslint": "^7.1.0",
"tslint": "5.18.0",
"typescript": "3.5.3",
"vsce": "1.74.0"
},
"main": "./out/extension",
"activationEvents": [
"onDebug",
"onCommand:extension.flint-debug.getTransactionHash"
],
"contributes": {
"configuration": {
"title": "Flint Debug",
"properties": {
"flint-debug.executable": {
"type": "string",
"format": "file",
"description": "Location of the flint-da executable."
},
"flint-debug.logging.enable": {
"type": "boolean",
"default": false,
"description": "Enables Flint debug adapter logs."
},
"flint-debug.logging.logFilePath": {
"type": "string",
"description": "Path to log file."
},
"flint-debug.logging.logLevel": {
"type": "string",
"default": "info",
"enum": ["error", "warning", "info", "debug"],
"description": "Verbosity of logging."
}
}
},
"breakpoints": [
{
"language": "flint"
}
],
"debuggers": [
{
"type": "flint",
"label": "Flint Debug",
"configurationAttributes": {
"launch": {
"required": [
"txHash",
"artifactDirectory",
"rpcUrl"
],
"properties": {
"txHash": {
"type": "string",
"description": "Transaction hash to debug",
"default": "${command:AskForTransactionHash}"
},
"artifactDirectory": {
"type": "string",
"description": "Directory containing Flint compiler artifacts"
},
"rpcUrl": {
"type": "string",
"description": "Ethereum client RPC URL",
"default": "http://localhost:8545"
}
}
}
},
"initialConfigurations": [
{
"type": "flint",
"request": "launch",
"name": "Ask for transaction hash",
"txHash": "${command:AskForTransactionHash}",
"artifactDirectory": "${workspaceFolder}/bin",
"rpcUrl": "http://localhost:8545"
}
],
"configurationSnippets": [
{
"label": "Flint Debug: Launch",
"description": "A new configuration for debugging a Flint transaction",
"body": {
"type": "flint",
"request": "launch",
"name": "Ask for transaction hash",
"txHash": "^\"\\${command:AskForTransactionHash}\"",
"artifactDirectory": "^\"\\${workspaceFolder}/bin\"",
"rpcUrl": "http://localhost:8545"
}
}
],
"variables": {
"AskForTransactionHash": "extension.flint-debug.getTransactionHash"
}
}
]
}
}