-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathpackage.json
More file actions
262 lines (262 loc) · 8.83 KB
/
package.json
File metadata and controls
262 lines (262 loc) · 8.83 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
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
{
"name": "sl-vscode-plugin",
"displayName": "Second Life VSCode Plugin",
"description": "Binding extension for external LSL and SLua editing from the Second Life viewer.",
"version": "1.0.3",
"publisher": "lindenlab",
"icon": "sl-logo-vscode.png",
"extensionDependencies": [],
"engines": {
"vscode": "^1.85.0"
},
"license": "MIT",
"categories": [
"Programming Languages",
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"repository": {
"type": "git",
"url": "https://github.com/secondlife/sl-vscode-plugin.git"
},
"contributes": {
"commands": [
{
"command": "second-life-scripting.enable",
"title": "Enable Extension in workspace",
"category": "Second Life"
},
{
"command": "second-life-scripting.connectWebSocket",
"title": "Connect WebSocket Client",
"category": "Second Life"
},
{
"command": "second-life-scripting.disconnectWebSocket",
"title": "Disconnect WebSocket Client",
"category": "Second Life"
},
{
"command": "second-life-scripting.showWebSocketClientStatus",
"title": "Show WebSocket Client Status",
"category": "Second Life"
},
{
"command": "second-life-scripting.forceLanguageUpdate",
"title": "Force Language Update",
"category": "Second Life"
},
{
"command": "second-life-scripting.stopFileSync",
"shortTitle": "Stop File Sync",
"title": "Stop file sync with SL Viewer",
"category": "Second Life"
}
],
"menus": {
"explorer/context": [
{
"command": "second-life-scripting.stopFileSync",
"group": "navigation@99",
"when": "resourceScheme == file && slVscodeEdit:syncsActive"
}
],
"editor/title/context": [
{
"command": "second-life-scripting.stopFileSync",
"group": "1_close@99",
"when": "resourceScheme == file && slVscodeEdit:syncsActive"
}
]
},
"colors": [
{
"id": "secondlife.syncedfile",
"description": "Color for files that are being synced with the viewer",
"defaults": {
"dark": "tab.activeBorderTop",
"light": "tab.activeBorderTop",
"highContrast": "tab.activeBorderTop",
"highContrastLight": "tab.activeBorderTop"
}
}
],
"configuration": [
{
"title": "SL Scripting - UI",
"properties": {
"slVscodeEdit.enabled": {
"type": "boolean",
"default": true,
"description": "Whether the SL VS Code extension is enabled"
},
"slVscodeEdit.syntax.autoUpdate": {
"type": "boolean",
"default": true,
"description": "If false, do not update Luau-LSP and Selene configurations unless the Force Language Update is done"
},
"slVscodeEdit.ui.statusTimeoutSeconds": {
"type": "number",
"default": 3,
"minimum": 1,
"maximum": 30,
"description": "Number of seconds to display messages"
}
}
},
{
"title": "SL Scripting - Storage",
"properties": {
"slVscodeEdit.storage.useLocalConfig": {
"type": "boolean",
"default": true,
"description": "Store configuration files in local workspace instead of global settings"
}
}
},
{
"title": "SL Scripting - Sync",
"properties": {
"slVscodeEdit.sync.askIfViewerScriptMismatchesMaster": {
"type": "boolean",
"default": true,
"description": "Should the plugin ask what to do if viewer file and master file have differences? You probably want to disable this if you use the proprocessor or require()"
},
"slVscodeEdit.sync.compareHashBeforeSync": {
"type": "boolean",
"default": false,
"description": "Whether the plugin should first check if there have been any actual changes on save, or to just send it to viewer anyway"
},
"slVscodeEdit.sync.includeFileMetaInOutput": {
"type": "boolean",
"default": false,
"description": "Whether the output script should include some meta information about the file, this info is also used to match file on next edit"
},
"slVscodeEdit.sync.includeCreatorInFileMeta": {
"type": "boolean",
"default": false,
"description": "Whether the current sl user info should be included in the meta info"
},
"slVscodeEdit.sync.keepViewerFileOpen": {
"type": "boolean",
"default": true,
"description": "Should the viewers tempfile be kept open while editing"
},
"slVscodeEdit.sync.notecardComment": {
"type": "string",
"default" : null,
"description": "String to use as a comment for notecards to allow syncing to external files of notecards with a file comment"
}
}
},
{
"title": "SL Scripting - Preprocessor",
"properties": {
"slVscodeEdit.preprocessor.enable": {
"type": "boolean",
"default": true,
"description": "Enable preprocessor for script files"
},
"slVscodeEdit.preprocessor.options": {
"type": "string",
"description": "Preprocessor options"
},
"slVscodeEdit.preprocessor.includePaths": {
"type": "array",
"items": {
"type": "string"
},
"default": [
".",
"./include/",
"**/include/"
],
"description": "Paths to search for include files"
},
"slVscodeEdit.preprocessor.maxIncludeDepth": {
"type": "number",
"default": 5,
"minimum": 1,
"maximum": 50,
"description": "Maximum nesting depth for #include and require() directives"
},
"slVscodeEdit.preprocessor.constantsInSLua": {
"title": "Use constants in SLua",
"type": "boolean",
"default": false,
"description": "Enable predefined LSL style preproc macro constants in slua"
},
"slVscodeEdit.preprocessor.lsl.switchStatements": {
"title": "Enable LSL switch statements",
"type": "boolean",
"default": false,
"description": "Enable LSL switch statements in the preprocessor"
}
}
},
{
"title": "SL Scripting - Network",
"properties": {
"slVscodeEdit.network.websocketPort": {
"type": "number",
"default": 9020,
"minimum": 1,
"maximum": 65535,
"description": "WebSocket server port for script synchronization with viewer"
},
"slVscodeEdit.network.disconnectDelayMs": {
"type": "number",
"default": 100,
"description": "Delay in milliseconds before closing websocket after sending disconnect"
},
"slVscodeEdit.network.disposeDelayMs": {
"type": "number",
"default": 1000,
"description": "Delay in milliseconds before disposing resources after session disconnect"
}
}
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p . && npm run copy-test-data",
"copy-test-data": "node scripts/copy-test-data.js",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"test": "node ./out/test/runTest.js",
"test-basic": "npx mocha \"./out/test/suite/basic.test.js\" --ui tdd --timeout 5000",
"test-unit": "npx mocha \"./out/test/suite/{basic,preprocessor,include-disk-integration}.test.js\" --ui tdd --timeout 5000",
"test-compile": "tsc -p . --outDir out --skipLibCheck",
"precommit": "npm run lint && npm run test-compile && npm run test-unit"
},
"devDependencies": {
"@eslint/js": "^9.35.0",
"@types/js-yaml": "^4.0.9",
"@types/mocha": "^10.0.10",
"@types/node": "22.x",
"@types/vscode": "^1.85.0",
"@typescript-eslint/eslint-plugin": "^8.42.0",
"@typescript-eslint/parser": "^8.42.0",
"@vscode/test-cli": "^0.0.11",
"@vscode/test-electron": "^2.5.2",
"eslint": "^9.34.0",
"glob": "^11.1.0",
"mocha": "^10.0.0",
"pre-commit": "^1.2.2",
"typescript": "^5.9.2"
},
"dependencies": {
"@iarna/toml": "^2.2.5",
"@types/ws": "^8.18.1",
"js-sha256": "^0.11.1",
"js-yaml": "^4.1.1",
"vscode-languageclient": "^9.0.1",
"ws": "^8.18.3"
}
}