-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
207 lines (207 loc) · 6.42 KB
/
package.json
File metadata and controls
207 lines (207 loc) · 6.42 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
{
"name": "roseline",
"displayName": "Roseline",
"description": "Component navigator for JSX/TSX projects — see parent/child relationships and jump instantly",
"version": "1.0.0",
"publisher": "nsnet",
"engines": { "vscode": "^1.90.0" },
"categories": ["Other", "Visualization"],
"keywords": ["jsx", "tsx", "react", "component", "navigation", "monorepo", "barrel", "component-graph"],
"galleryBanner": {
"color": "#1a0a14",
"theme": "dark"
},
"repository": {
"type": "git",
"url": "https://github.com/NSNet21/roseline.git"
},
"bugs": {
"url": "https://github.com/NSNet21/roseline/issues"
},
"homepage": "https://github.com/NSNet21/roseline#readme",
"activationEvents": ["onStartupFinished"],
"icon": "assets/icon.png",
"main": "./dist/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "roseline-sidebar",
"title": "Roseline",
"icon": "assets/icon-activity.png"
}
]
},
"views": {
"roseline-sidebar": [
{
"id": "roseline.componentGraph",
"name": "Component Graph"
}
]
},
"commands": [
{
"command": "roseline.showGraph",
"title": "Roseline: Show Component Graph"
},
{
"command": "roseline.clearCache",
"title": "Roseline: Clear Cache"
},
{
"command": "roseline.showProjectTree",
"title": "Roseline: Switch to Project Tree",
"icon": "$(list-tree)"
},
{
"command": "roseline.showActiveFile",
"title": "Roseline: Switch to Active File",
"icon": "$(file-code)"
},
{
"command": "roseline.refreshProjectTree",
"title": "Roseline: Refresh Project Tree",
"icon": "$(refresh)"
},
{
"command": "roseline.expandAll",
"title": "Roseline: Expand All",
"icon": "$(expand-all)"
},
{
"command": "roseline.revealInExplorer",
"title": "Roseline: Reveal in Explorer"
},
{
"command": "roseline.copyPath",
"title": "Roseline: Copy Path"
},
{
"command": "roseline.findReferences",
"title": "Roseline: Find All References"
},
{
"command": "roseline.showOutput",
"title": "Roseline: Show Output Log"
},
{
"command": "roseline.diagnose",
"title": "Roseline: Diagnose (dump detection state to Output)"
}
],
"menus": {
"view/title": [
{
"command": "roseline.showProjectTree",
"when": "view == roseline.componentGraph && roseline.treeMode != 'project'",
"group": "navigation@1"
},
{
"command": "roseline.showActiveFile",
"when": "view == roseline.componentGraph && roseline.treeMode == 'project'",
"group": "navigation@1"
},
{
"command": "roseline.refreshProjectTree",
"when": "view == roseline.componentGraph && roseline.treeMode == 'project'",
"group": "navigation@2"
},
{
"command": "roseline.expandAll",
"when": "view == roseline.componentGraph",
"group": "navigation@3"
}
],
"explorer/context": [
{
"command": "roseline.showGraph",
"when": "resourceExtname =~ /\\.(jsx|tsx|js|ts)$/",
"group": "navigation@10"
}
],
"editor/context": [
{
"command": "roseline.showGraph",
"when": "editorTextFocus && resourceExtname =~ /\\.(jsx|tsx|js|ts)$/",
"group": "navigation@10"
}
],
"view/item/context": [
{
"command": "roseline.revealInExplorer",
"when": "view == roseline.componentGraph && (viewItem == component || viewItem == cycle)",
"group": "navigation@1"
},
{
"command": "roseline.copyPath",
"when": "view == roseline.componentGraph && (viewItem == component || viewItem == cycle || viewItem == project)",
"group": "navigation@2"
},
{
"command": "roseline.findReferences",
"when": "view == roseline.componentGraph && viewItem == component",
"group": "navigation@3"
}
]
},
"keybindings": [
{
"command": "roseline.showGraph",
"key": "ctrl+shift+.",
"when": "editorTextFocus && resourceExtname =~ /\\.(jsx|tsx|js|ts)$/"
}
],
"configuration": {
"title": "Roseline",
"properties": {
"roseline.searchScope": {
"type": "string",
"enum": ["project", "workspace"],
"default": "project",
"description": "Scope for parent component search. 'project' = nearest tsconfig boundary, 'workspace' = entire workspace."
},
"roseline.cacheMode": {
"type": "string",
"enum": ["memory", "custom"],
"default": "memory",
"description": "memory = in-RAM only (cleared on restart), custom = persist to disk at cachePath."
},
"roseline.cachePath": {
"type": "string",
"default": "E:\\roseline-cache",
"description": "Folder path for cache file when cacheMode = custom."
},
"roseline.cacheMaxAgeDays": {
"type": "number",
"default": 7,
"description": "Auto-delete cache after N days on startup. 0 = never auto-delete."
},
"roseline.cacheMaxEntries": {
"type": "number",
"default": 5000,
"description": "Maximum number of files held in the children cache. LRU eviction once exceeded. 0 = unbounded."
},
"roseline.projectScope": {
"type": "string",
"enum": ["auto", "all", "active"],
"default": "auto",
"description": "Project Tree mode: which projects to display. 'auto' = show only the active file's project when the workspace has many sub-projects, otherwise all. 'all' = always show every detected project. 'active' = always show only the project that contains the active editor's file."
}
}
}
},
"scripts": {
"build": "node esbuild.js",
"watch": "node esbuild.js --watch",
"package": "vsce package",
"publish": "vsce publish"
},
"devDependencies": {
"@types/vscode": "^1.90.0",
"@types/node": "^20.0.0",
"typescript": "^5.4.0",
"esbuild": "^0.21.0",
"@vscode/vsce": "^2.26.0"
}
}