-
Notifications
You must be signed in to change notification settings - Fork 10
/
package.json
201 lines (201 loc) · 5.64 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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
{
"name": "shadered",
"displayName": "SHADERed",
"version": "0.0.5",
"publisher": "dfranx",
"description": "Extension for debugging (and prototyping) GLSL & HLSL shaders",
"author": {
"name": "dfranx",
"email": "dfranx@shadered.org"
},
"license": "MIT",
"keywords": [
"multi-root ready"
],
"engines": {
"vscode": "^1.55.0"
},
"icon": "images/logo.png",
"categories": [
"Debuggers"
],
"private": true,
"homepage": "https://shadered.org",
"repository": {
"type": "git",
"url": "https://github.com/dfranx/vscode-shadered.git"
},
"bugs": {
"url": "https://github.com/dfranx/vscode-shadered/issues"
},
"scripts": {
"vscode:prepublish": "yarn run package-ext",
"compile": "tsc -p ./",
"lint": "eslint src --ext ts",
"watch": "webpack --watch --devtool nosources-source-map --info-verbosity verbose --config ./build/extension.webpack.config.js",
"watch2": "tsc -watch -p ./",
"pretest": "yarn run compile && yarn run lint",
"test": "node ./out/test/runTest.js",
"package": "vsce package",
"publish": "vsce publish",
"package-ext": "webpack --mode production --config ./build/extension.webpack.config.js"
},
"dependencies": {
"await-notify": "1.0.1",
"vscode-debugadapter": "^1.46.0"
},
"devDependencies": {
"@types/vscode": "^1.55.0",
"@types/glob": "^7.1.3",
"@types/mocha": "^8.2.2",
"@types/node": "^14.14.37",
"eslint": "^7.23.0",
"@typescript-eslint/eslint-plugin": "^4.21.0",
"@typescript-eslint/parser": "^4.21.0",
"glob": "^7.1.6",
"mocha": "^8.3.2",
"typescript": "^4.2.3",
"vscode-debugadapter-testsupport": "^1.46.0",
"vsce": "^1.87.1",
"ts-loader": "^8.1.0",
"webpack": "^4.46.0",
"webpack-cli": "^3.3.12"
},
"main": "./dist/ext/extension.js",
"browser": "./dist/web/extension.js",
"activationEvents": [
"onDebugResolve:shadered",
"onDebugDynamicConfigurations:shadered",
"onCommand:extension.shadered.getProgramName",
"onCommand:extension.shadered.runEditorContents",
"onCommand:extension.shadered.debugEditorContents"
],
"workspaceTrust": {
"request": "never"
},
"contributes": {
"menus": {
"editor/title/run": [
{
"command": "extension.shadered.runEditorContents",
"when": "resourceExtname == .sprj"
},
{
"command": "extension.shadered.debugEditorContents",
"when": "resourceExtname == .sprj"
}
],
"commandPalette": [
{
"command": "extension.shadered.debugEditorContents",
"when": "resourceExtname == .sprj"
},
{
"command": "extension.shadered.runEditorContents",
"when": "resourceExtname == .sprj"
}
],
"debug/variables/context": [
{
"command": "extension.shadered.toggleFormatting",
"when": "debugType == 'shadered' && debugProtocolVariableMenuContext == 'simple'"
}
]
},
"commands": [
{
"command": "extension.shadered.debugEditorContents",
"title": "Debug File",
"category": "SHADERed Debug",
"enablement": "!inDebugMode",
"icon": "$(debug-alt)"
},
{
"command": "extension.shadered.runEditorContents",
"title": "Run File",
"category": "SHADERed Debug",
"enablement": "!inDebugMode",
"icon": "$(play)"
},
{
"command": "extension.shadered.toggleFormatting",
"title": "Toggle between decimal and hex formatting"
}
],
"breakpoints": [
{
"language": "glsl"
},
{
"language": "hlsl"
}
],
"debuggers": [
{
"type": "shadered",
"label": "SHADERed",
"configurationAttributes": {
"launch": {
"required": [
"program"
],
"properties": {
"program": {
"type": "string",
"description": "Absolute path to a .sprj file",
"default": "${workspaceFolder}/${command:AskForProgramName}"
},
"stopOnEntry": {
"type": "boolean",
"description": "Automatically stop after launch.",
"default": true
},
"trace": {
"type": "boolean",
"description": "Enable logging of the Debug Adapter Protocol.",
"default": true
}
}
}
},
"initialConfigurations": [
{
"type": "shadered",
"request": "launch",
"name": "Ask for file name",
"program": "${workspaceFolder}/${command:AskForProgramName}",
"stopOnEntry": true
}
],
"configurationSnippets": [
{
"label": "SHADERed Debug: Launch",
"description": "A new configuration for 'debugging' a user selected shader file.",
"body": {
"type": "shadered",
"request": "launch",
"name": "Ask for file name",
"program": "^\"\\${workspaceFolder}/\\${command:AskForProgramName}\"",
"stopOnEntry": true
}
}
],
"variables": {
"AskForProgramName": "extension.shadered.getProgramName"
}
}
],
"configuration": [
{
"title": "SHADERed",
"properties": {
"shadered.executablePath": {
"type": "string",
"default": "",
"description": "Specifies the path to your SHADERed executable"
}
}
}
]
}
}