Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
178 lines (178 loc) · 6.14 KB
/
Copy pathpackage.json
File metadata and controls
178 lines (178 loc) · 6.14 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
{
"name": "vscode-rhai",
"private": true,
"displayName": "Rhai Language Support",
"description": "Syntax highlighting for Rhai scripts",
"publisher": "rhaiscript",
"version": "0.7.5",
"icon": "assets/icon.png",
"homepage": "https://rhai.rs",
"bugs": {
"url": "https://github.com/rhaiscript/vscode-rhai/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/rhaiscript/vscode-rhai.git"
},
"categories": [
"Programming Languages",
"Formatters"
],
"capabilities": {
"untrustedWorkspaces": {
"supported": true
}
},
"scripts": {
"lint": "eslint extension",
"build:ts": "tsc -b",
"build": "npm run build:wasm && npm run build:ts",
"build:wasm:cargo": "cargo build --release --target wasm32-unknown-unknown --manifest-path rhai-wasm/Cargo.toml",
"build:wasm:bindgen": "wasm-bindgen --target nodejs --out-dir dist/rhai rhai-wasm/target/wasm32-unknown-unknown/release/rhai_wasm.wasm",
"build:wasm": "npm run build:wasm:cargo && npm run build:wasm:bindgen",
"compile-tests": "tsc -p extension/test",
"test:integration": "npm run compile-tests && vscode-test",
"pack": "npm run build && vsce package"
},
"main": "./dist/extension.js",
"engines": {
"vscode": "^1.79.0"
},
"activationEvents": [
"onLanguage:rhai"
],
"contributes": {
"languages": [
{
"id": "rhai",
"aliases": [
"Rhai"
],
"extensions": [
".rhai"
],
"filenames": [],
"filenamePatterns": [],
"mimetypes": [],
"icon": {
"light": "./icons/rhai.png",
"dark": "./icons/rhai.png"
},
"configuration": "./syntax/rhai.configuration.json"
}
],
"grammars": [
{
"language": "rhai",
"scopeName": "source.rhai",
"path": "./syntax/rhai.tmLanguage.json"
},
{
"scopeName": "markdown.rhai.codeblock",
"path": "./syntax/rhai.markdown.json",
"injectTo": [
"text.html.markdown"
],
"embeddedLanguages": {
"meta.embedded.block.rhai": "rhai"
}
}
],
"configurationDefaults": {
"explorer.fileNesting.patterns": {
"*.rhai": "${capture}.rgrn"
}
},
"commands": [
{
"command": "rhai.format",
"title": "Rhai: Format File"
},
{
"command": "rhai.compileGrain",
"title": "Rhai: Compile to Grain bytecode"
},
{
"command": "rhai.syntaxCheckRhai",
"title": "Rhai: Syntax Check"
}
],
"configuration": {
"title": "Rhai",
"properties": {
"rhai.useLanguageServer": {
"type": "boolean",
"default": true,
"description": "Use Rhai Language Server"
},
"rhai.trace.server": {
"type": "string",
"default": "off",
"enum": [
"off",
"messages",
"verbose"
],
"description": "Traces the communication between VS Code and the language server.",
"scope": "window"
},
"rhai.compileGrainOnSave": {
"type": "string",
"enum": [
"off",
"currentFile"
],
"markdownEnumDescriptions": [
"Do not compile Rhai files to Grain bytecode on save",
"Compile only the current Rhai file to Grain bytecode on save"
],
"default": "off",
"scope": "resource",
"description": "Compile Rhai files to Grain bytecode on save"
},
"rhai.promptFileNesting": {
"type": "boolean",
"default": true,
"markdownDescription": "Prompt to ask if the Rhai file nesting should be enabled, so compiled `.rgrn` files can nest under their `.rhai` source."
},
"rhai.syntaxCheckRhaiOnChange": {
"type": "string",
"enum": [
"off",
"currentFile"
],
"markdownEnumDescriptions": [
"Do not check Rhai file syntax on change",
"Check only the current Rhai file on change"
],
"default": "currentFile",
"scope": "resource",
"description": "Syntax check for Rhai file after typing stops"
},
"rhai.syntaxCheckRhaiDelaySeconds": {
"type": "number",
"default": 3,
"scope": "resource",
"description": "Seconds to wait after typing stops before checking for Rhai parse errors. Temporary until `rhai-lsp` lands."
}
}
}
},
"dependencies": {
"vscode-languageclient": "~10.1.2"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/mocha": "^10.0.10",
"@types/node": "~26.6.0",
"@types/sinon": "^22.0.0",
"@types/vscode": "~1.79.0",
"@vscode/test-cli": "^0.0.15",
"@vscode/test-electron": "^3.1.0",
"@vscode/vsce": "^4.0.0",
"eslint": "^10.12.0",
"sinon": "^22.1.0",
"typescript": "^6.0.3",
"typescript-eslint": "^8.71.1"
}
}