-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
178 lines (178 loc) · 6.49 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
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
{
"name": "net-compiler-developer-sdk",
"displayName": ".NET Compiler Developer SDK",
"publisher": "333fred",
"description": "VS Code extension for working with and on the Roslyn compiler.",
"version": "0.4.4",
"icon": "images/roslyn_icon_color.png",
"repository": {
"type": "git",
"url": "https://github.com/333fred/compiler-developer-sdk"
},
"engines": {
"vscode": "^1.93.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:csharp"
],
"extensionDependencies": [
"ms-dotnettools.csharp"
],
"main": "./dist/extension.js",
"contributes": {
"csharpExtensionLoadPaths": [
"Microsoft.CodeAnalysis.CompilerDeveloperSdk.dll"
],
"viewsContainers": {
"activitybar": [
{
"id": "csharp-syntax-visualizer",
"title": "CSharp Visualizers",
"icon": "images/roslyn_icon_grayscale.svg"
}
]
},
"views": {
"csharp-syntax-visualizer": [
{
"id": "syntaxTree",
"name": "Syntax Tree",
"type": "tree",
"when": "config.compilerDeveloperSdk.enableSyntaxVisualizer && compilerDeveloperSdk.loaded"
},
{
"id": "operationTree",
"name": "IOperation Tree",
"type": "tree",
"when": "config.compilerDeveloperSdk.enableIOperationVisualizer && compilerDeveloperSdk.loaded"
}
]
},
"viewsWelcome": [
{
"view": "syntaxTree",
"contents": "No C# file opened."
},
{
"view": "operationTree",
"contents": "No C# file opened."
}
],
"commands": [
{
"command": "compilerDeveloperSdk.highlightOnClickSyntax",
"title": "Highlight file location on clicking syntax tree nodes",
"icon": "$(arrow-swap)"
},
{
"command": "compilerDeveloperSdk.highlightOnClickIOperation",
"title": "Highlight file location on clicking IOperation tree nodes",
"icon": "$(arrow-swap)"
},
{
"command": "compilerDeveloperSdk.collapseSyntaxVisualizer",
"title": "Collapse Syntax Visualizer",
"icon": "$(collapse-all)"
},
{
"command": "compilerDeveloperSdk.collapseIOperationVisualizer",
"title": "Collapse IOperation Visualizer",
"icon": "$(collapse-all)"
},
{
"command": "compilerDeveloperSdk.decompileContainingContext",
"title": "Decompile Containing C# Context"
}
],
"menus": {
"view/title": [
{
"command": "compilerDeveloperSdk.collapseSyntaxVisualizer",
"when": "view == syntaxTree",
"group": "navigation"
},
{
"command": "compilerDeveloperSdk.collapseIOperationVisualizer",
"when": "view == operationTree",
"group": "navigation"
},
{
"command": "compilerDeveloperSdk.highlightOnClickSyntax",
"when": "view == syntaxTree",
"group": "navigation"
},
{
"command": "compilerDeveloperSdk.highlightOnClickIOperation",
"when": "view == operationTree",
"group": "navigation"
}
],
"editor/context": [
{
"command": "compilerDeveloperSdk.decompileContainingContext",
"when": "editorLangId == csharp && compilerDeveloperSdk.loaded",
"group": "compilerDeveloperSdk"
}
]
},
"configuration": {
"title": ".NET Compiler Developer SDK",
"properties": {
"compilerDeveloperSdk.enableSyntaxVisualizer": {
"type": "boolean",
"default": true,
"title": "C# Syntax Visualizer",
"description": "Enable the C# Syntax Visualizer"
},
"compilerDeveloperSdk.enableIOperationVisualizer": {
"type": "boolean",
"default": true,
"title": "C# IOperation Visualizer",
"description": "Enable the C# IOperation Visualizer"
},
"compilerDeveloperSdk.syncCursorWithTree": {
"type": "boolean",
"default": true,
"title": "Sync Cursor Position in File with Tree",
"description": "When clicking a tree element, sync the cursor position in the file with the tree element"
},
"compilerDeveloperSdk.verboseLogging": {
"type": "boolean",
"default": false,
"title": "Verbose Logging",
"description": "Enable verbose logging for the .NET Compiler Developer SDK"
}
}
}
},
"dependencies": {
"vscode-languageclient": "8.2.0-next.1"
},
"scripts": {
"vscode:prepublish": "npm run package:csharp && npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"package:csharp": "dotnet msbuild src/Microsoft.CodeAnalysis.CompilerDeveloperSdk /t:VscePrepublish /p:Configuration=Release",
"lint": "eslint src --ext ts"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.8",
"@types/node": "^16.18.108",
"@types/vscode": "^1.93.0",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@vscode/test-electron": "^2.4.1",
"eslint": "^8.57.1",
"glob": "^8.1.0",
"mocha": "^10.7.3",
"ts-loader": "^9.5.1",
"typescript": "^4.9.5",
"webpack": "^5.94.0",
"webpack-cli": "^5.1.4"
}
}