Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
225 lines (225 loc) · 7.64 KB
/
Copy pathpackage.json
File metadata and controls
225 lines (225 loc) · 7.64 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
{
"name": "sharpdeps",
"displayName": "SharpDeps — .NET Dependency Map",
"description": "Explore .NET project, namespace, and type dependencies with source evidence and cycle detection.",
"version": "0.3.0",
"publisher": "htkym",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/Htkym/sharpdeps.git"
},
"bugs": {
"url": "https://github.com/Htkym/sharpdeps/issues"
},
"homepage": "https://github.com/Htkym/sharpdeps#readme",
"engines": {
"vscode": "^1.90.0"
},
"categories": [
"Visualization",
"Other"
],
"keywords": [
"dotnet",
"csharp",
"dependency",
"graph",
"mermaid",
"architecture",
"namespace",
"circular dependency"
],
"icon": "resources/icon.png",
"extensionDependencies": [
"ms-dotnettools.vscode-dotnet-runtime"
],
"activationEvents": [
"onWebviewPanel:sharpdeps.codeMap"
],
"capabilities": {
"untrustedWorkspaces": {
"supported": "limited",
"description": "Viewing data is available; analysis, project evaluation, generators and runtime execution require workspace trust.",
"restrictedConfigurations": [
"sharpdeps.dotnetPath",
"sharpdeps.savedIndexCliPath"
]
}
},
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "sharpdeps.updateSavedIndex",
"title": "Update Saved Index",
"category": "SharpDeps"
},
{
"command": "sharpdeps.showDependencyMap",
"title": "Show Dependency Map",
"category": "SharpDeps"
},
{
"command": "sharpdeps.refresh",
"title": "Refresh Dependency Map",
"category": "SharpDeps"
},
{
"command": "sharpdeps.showTypeDependencies",
"title": "Show Type Dependencies (cursor)",
"category": "SharpDeps"
},
{
"command": "sharpdeps.showTypeDependents",
"title": "Show Type Dependents (cursor)",
"category": "SharpDeps"
},
{
"command": "sharpdeps.copyMermaid",
"title": "Copy Mermaid Source",
"category": "SharpDeps"
},
{
"command": "sharpdeps.exportSvg",
"title": "Export Graph as SVG",
"category": "SharpDeps"
},
{
"command": "sharpdeps.exportPng",
"title": "Export Graph as PNG",
"category": "SharpDeps"
}
],
"menus": {
"explorer/context": [
{
"command": "sharpdeps.showDependencyMap",
"when": "resourceExtname == .sln || resourceExtname == .slnx || resourceExtname == .csproj || resourceExtname == .fsproj || resourceExtname == .vbproj || resourceExtname == .vcxproj",
"group": "navigation@9"
}
],
"commandPalette": [
{
"command": "sharpdeps.refresh",
"when": "sharpdeps.panelActive"
},
{
"command": "sharpdeps.copyMermaid",
"when": "sharpdeps.panelActive"
},
{
"command": "sharpdeps.exportSvg",
"when": "sharpdeps.panelActive"
},
{
"command": "sharpdeps.exportPng",
"when": "sharpdeps.panelActive"
}
]
},
"configuration": {
"title": "SharpDeps",
"properties": {
"sharpdeps.maxProjects": {
"type": "number",
"default": 60,
"minimum": 1,
"markdownDescription": "Maximum number of projects or namespaces displayed. Does not limit analysis."
},
"sharpdeps.maxEdges": {
"type": "number",
"default": 200,
"minimum": 1,
"markdownDescription": "Maximum number of displayed relations. Does not limit analysis or cycle detection."
},
"sharpdeps.analysisMode": {
"type": "string",
"enum": [
"quick",
"semantic"
],
"default": "quick",
"markdownDescription": "Analysis mode. Quick works without the .NET SDK; Semantic uses MSBuild and Roslyn and is only used when selected explicitly."
},
"sharpdeps.resultProvider": {
"type": "string",
"enum": [
"legacy",
"savedIndex"
],
"default": "legacy",
"markdownDescription": "Result provider for Show/Refresh Dependency Map. Legacy keeps Quick/Semantic analysis. SavedIndex reads an existing .sharpdeps index with the shared Query engine; it never analyzes or updates it. An absent index can display a retained legacy report from the same workspace, read-only."
},
"sharpdeps.savedIndexAutoRefresh": {
"type": "boolean",
"default": false,
"scope": "window",
"markdownDescription": "Automatically display committed saved-index generations from an explicitly started CLI watch. Requires one trusted workspace folder and a compatible savedIndexCliPath. Keeps the last view on failure; never starts analysis or a writer."
},
"sharpdeps.savedIndexVariant": {
"type": "string",
"default": "",
"markdownDescription": "Exact saved hvar_ ID for the savedIndex provider. Required when the saved index contains multiple variants. Blank selects a variant only when exactly one exists; variants are never combined implicitly."
},
"sharpdeps.analysisTimeoutSeconds": {
"type": "number",
"default": 180,
"minimum": 10,
"markdownDescription": "Time limit for one analysis run, in seconds. When exceeded, the run is stopped and the process tree it started is terminated."
},
"sharpdeps.savedIndexCliPath": {
"type": "string",
"default": "",
"markdownDescription": "Absolute path to a compatible installed SharpDeps.Cli.dll for the explicit Update Saved Index command. Requires workspace trust and a target SDK. Refresh remains read-only; no automatic restore is performed."
},
"sharpdeps.dotnetPath": {
"type": "string",
"default": "",
"markdownDescription": "Absolute path to a `dotnet` executable to use. When empty, SharpDeps resolves one via the .NET Install Tool (`dotnet.findPath`), then `PATH`, then acquires a private .NET runtime on demand."
},
"sharpdeps.maxVisibleTypes": {
"type": "number",
"default": 100,
"minimum": 1,
"markdownDescription": "Maximum number of types in the graph. Search and analysis still cover the full result."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run check:release && npm run build:analyzer && npm run build -- --production",
"build": "node esbuild.js",
"watch": "node esbuild.js --watch",
"build:analyzer": "node scripts/build-analyzer.js",
"compile": "tsc --noEmit",
"lint": "eslint .",
"format": "prettier --write .",
"format:check": "prettier --check .",
"test": "vitest run",
"test:watch": "vitest",
"package": "vsce package",
"test:e2e": "node scripts/e2e.js",
"test:browser": "playwright test",
"perf": "node scripts/perf.js",
"check:vsix": "node scripts/check-vsix.js",
"check:release": "node scripts/check-release.js"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@playwright/test": "1.63.0",
"@types/node": "^20.14.0",
"@types/vscode": "^1.90.0",
"@vscode/test-electron": "3.1.0",
"@vscode/vsce": "^3.9.2",
"ajv": "^8.20.0",
"elkjs": "^0.12.0",
"esbuild": "^0.28.1",
"eslint": "^10.6.0",
"eslint-config-prettier": "^10.1.8",
"prettier": "^3.9.4",
"typescript": "^5.4.5",
"typescript-eslint": "^8.62.1",
"vitest": "^4.1.11"
}
}