-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
169 lines (169 loc) · 5.45 KB
/
package.json
File metadata and controls
169 lines (169 loc) · 5.45 KB
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
{
"name": "go-allocations-vsix",
"displayName": "Go Allocations Explorer",
"description": "An extension that helps locate Go allocations, using your benchmarks.",
"icon": "images/memory.goblue.png",
"version": "0.5.0",
"publisher": "Clipperhouse",
"engines": {
"vscode": "^1.90.0"
},
"extensionDependencies": [
"golang.go"
],
"categories": [
"Debuggers",
"Testing"
],
"keywords": [
"go",
"golang",
"benchmark",
"allocation",
"performance",
"profiling",
"testing"
],
"repository": {
"type": "git",
"url": "https://github.com/clipperhouse/go-allocations-vsix.git"
},
"homepage": "https://github.com/clipperhouse/go-allocations-vsix#readme",
"bugs": {
"url": "https://github.com/clipperhouse/go-allocations-vsix/issues"
},
"license": "MIT",
"files": [
"out",
"images",
"README.md",
"LICENSE"
],
"author": {
"name": "Matt Sherman",
"email": "mwsherman@gmail.com"
},
"activationEvents": [
"workspaceContains:**/*_test.go",
"onLanguage:go"
],
"main": "./out/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "goAllocations",
"title": "Go Allocations Explorer",
"icon": "images/memory.sidebar.png"
}
]
},
"views": {
"goAllocations": [
{
"id": "goAllocationsExplorer",
"name": "Go Allocations Explorer",
"icon": "images/memory.goblue.64.png"
}
]
},
"configuration": {
"type": "object",
"title": "Go Allocations Explorer",
"properties": {
"goAllocations.showCodeLens": {
"type": "boolean",
"default": true,
"description": "Show 'find allocations' code lens on benchmark functions"
},
"goAllocations.concurrency": {
"type": "number",
"default": 2,
"minimum": 1,
"description": "Maximum number of benchmarks to run concurrently when using 'Run all benchmarks'"
}
}
},
"commands": [
{
"command": "goAllocations.runAllBenchmarks",
"title": "Run all benchmarks and discover allocations",
"icon": "$(run-all)"
},
{
"command": "goAllocations.stopAllBenchmarks",
"title": "Stop all benchmarks",
"icon": "$(debug-stop)"
},
{
"command": "goAllocations.refresh",
"title": "Refresh",
"icon": "$(refresh)"
},
{
"command": "goAllocations.runSingleBenchmark",
"title": "Run benchmark to discover allocations",
"icon": "$(play)"
},
{
"command": "goAllocations.runBenchmarkFromEditor",
"title": "Run Benchmark from Editor"
},
{
"command": "goAllocations.navigateToBenchmark",
"title": "Navigate to Benchmark"
}
],
"menus": {
"view/title": [
{
"command": "goAllocations.refresh",
"when": "view == goAllocationsExplorer",
"group": "navigation"
},
{
"command": "goAllocations.runAllBenchmarks",
"when": "view == goAllocationsExplorer",
"group": "navigation"
},
{
"command": "goAllocations.stopAllBenchmarks",
"when": "view == goAllocationsExplorer",
"group": "navigation"
}
],
"view/item/context": [
{
"command": "goAllocations.runSingleBenchmark",
"when": "view == goAllocationsExplorer && viewItem == benchmarkItem",
"group": "inline"
},
{
"command": "goAllocations.navigateToBenchmark",
"when": "view == goAllocationsExplorer && viewItem == benchmarkItem"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run clean && npm run esbuild-prod",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node",
"esbuild-prod": "npm run esbuild-base -- --minify",
"build": "npm run clean && npm run esbuild-base -- --sourcemap",
"clean": "rm -rf out && mkdir -p out",
"watch": "npm run clean && npm run esbuild-base -- --sourcemap --watch",
"typecheck": "tsc --noEmit",
"typecheck:watch": "tsc --noEmit --watch"
},
"devDependencies": {
"@types/node": "20.x",
"@types/shell-quote": "^1.7.5",
"@types/vscode": "^1.90.0",
"esbuild": "^0.25.10",
"typescript": "^4.9.4"
},
"dependencies": {
"async-sema": "^3.1.1",
"shell-quote": "^1.8.3"
}
}