forked from sidhant-sriv/visor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
232 lines (232 loc) · 6.9 KB
/
Copy pathpackage.json
File metadata and controls
232 lines (232 loc) · 6.9 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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
{
"name": "visor",
"displayName": "Visor",
"version": "1.0.3",
"publisher": "sidhantsriv",
"description": "Makes a flowchart on the side for your code for better visualization.",
"repository": {
"type": "git",
"url": "https://github.com/sidhant-sriv/visor.git"
},
"license": "MIT",
"engines": {
"vscode": "^1.102.0"
},
"icon": "media/icon.png",
"categories": [
"Visualization",
"Programming Languages"
],
"main": "./dist/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "visor-container",
"title": "Visor",
"icon": "media/icon.png"
}
]
},
"views": {
"visor-container": [
{
"id": "visor.flowchartView",
"name": "Flowchart",
"type": "webview",
"icon": "media/icon.png"
}
]
},
"commands": [
{
"command": "visor.generateFlowchart",
"title": "Generate Flowchart"
},
{
"command": "visor.openFlowchartInPanel",
"title": "Open Flowchart in New Window",
"icon": "$(open-preview)"
},
{
"command": "visor.openFlowchartToSide",
"title": "Open Flowchart to the Side",
"icon": "$(split-horizontal)"
},
{
"command": "visor.openFlowchartInNewColumn",
"title": "Open Flowchart in New Column",
"icon": "$(split-vertical)"
},
{
"command": "visor.maximizeFlowchartPanel",
"title": "Maximize Flowchart Panel",
"icon": "$(screen-full)"
}
],
"menus": {
"editor/context": [
{
"command": "visor.generateFlowchart",
"when": "editorTextFocus && editorHasSelection",
"group": "navigation"
},
{
"command": "visor.openFlowchartInPanel",
"when": "editorTextFocus",
"group": "navigation"
}
],
"view/title": [
{
"command": "visor.openFlowchartInPanel",
"when": "view == visor.flowchartView",
"group": "navigation"
}
],
"commandPalette": [
{
"command": "visor.openFlowchartInPanel",
"when": "editorTextFocus"
},
{
"command": "visor.openFlowchartToSide",
"when": "editorTextFocus"
},
{
"command": "visor.openFlowchartInNewColumn",
"when": "editorTextFocus"
},
{
"command": "visor.maximizeFlowchartPanel",
"when": "editorTextFocus"
}
]
},
"configuration": {
"title": "Visor",
"properties": {
"visor.nodeReadability.theme": {
"type": "string",
"enum": [
"monokai",
"catppuccin",
"github",
"solarized",
"one-dark-pro",
"dracula",
"material-theme",
"nord",
"tokyo-night"
],
"enumDescriptions": [
"Monokai - Classic dark theme with vibrant syntax highlighting",
"Catppuccin - Popular pastel theme with excellent readability",
"GitHub - Clean and modern theme matching GitHub's interface",
"Solarized - Precision colors for machines and people",
"One Dark Pro - Atom's iconic One Dark theme",
"Dracula - A dark theme for vampires and developers",
"Material Theme - Google's Material Design colors",
"Nord - An arctic, north-bluish color palette",
"Tokyo Night - A clean, dark theme inspired by Tokyo's neon nights"
],
"default": "monokai",
"description": "Choose the color theme for flowchart nodes"
},
"visor.complexity.enabled": {
"type": "boolean",
"default": true,
"description": "Enable cyclomatic complexity analysis and display"
},
"visor.complexity.displayInNodes": {
"type": "boolean",
"default": true,
"description": "Show complexity indicators directly on flowchart nodes"
},
"visor.complexity.displayInPanel": {
"type": "boolean",
"default": true,
"description": "Show complexity information in the dedicated panel"
},
"visor.complexity.thresholds.low": {
"type": "number",
"default": 5,
"minimum": 1,
"description": "Upper threshold for low complexity (1 to this value)"
},
"visor.complexity.thresholds.medium": {
"type": "number",
"default": 10,
"minimum": 2,
"description": "Upper threshold for medium complexity"
},
"visor.complexity.thresholds.high": {
"type": "number",
"default": 20,
"minimum": 3,
"description": "Upper threshold for high complexity (above this is very high)"
},
"visor.panel.defaultPosition": {
"type": "string",
"enum": [
"beside",
"two",
"three"
],
"enumDescriptions": [
"Open beside the current editor",
"Open in the second column",
"Open in the third column"
],
"default": "two",
"description": "Default position for new flowchart panels"
},
"visor.panel.retainWhenHidden": {
"type": "boolean",
"default": true,
"description": "Keep panel content when hidden to improve performance"
},
"visor.panel.enableFindWidget": {
"type": "boolean",
"default": true,
"description": "Enable find/search functionality in panel view"
}
}
}
},
"scripts": {
"vscode:prepublish": "yarn run package",
"clean": "rm -rf dist",
"compile": "yarn run clean && webpack",
"watch": "webpack --watch",
"package": "yarn run clean && webpack --mode production",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "yarn run compile-tests && yarn run compile && yarn run lint",
"lint": "eslint src",
"test": "vscode-test",
"publish:patch": "vsce publish patch",
"publish:minor": "vsce publish minor",
"publish:major": "vsce publish major",
"release": "yarn run pretest && vsce publish patch && git push --follow-tags"
},
"dependencies": {
"@vscode/tree-sitter-wasm": "^0.1.4",
"web-tree-sitter": "^0.22.2"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "20.x",
"@types/vscode": "^1.102.0",
"@typescript-eslint/eslint-plugin": "^8.31.1",
"@typescript-eslint/parser": "^8.31.1",
"@vscode/test-cli": "^0.0.11",
"@vscode/test-electron": "^2.5.2",
"copy-webpack-plugin": "^12.0.2",
"eslint": "^9.25.1",
"ts-loader": "^9.5.2",
"typescript": "^5.8.3",
"webpack": "^5.99.7",
"webpack-cli": "^6.0.1"
}
}