Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
235 lines (235 loc) · 7.18 KB
/
Copy pathpackage.json
File metadata and controls
235 lines (235 loc) · 7.18 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
{
"name": "cbs-editor",
"displayName": "RisuAI CBS Editor",
"description": "Provides syntax highlighting and language support for Curly Braced Syntax (CBS) In RisuAI",
"version": "1.5.0",
"publisher": "mollu",
"license": "GPL-3.0-only",
"homepage": "https://github.com/sub-hub/cbs-extension",
"repository": {
"type": "git",
"url": "https://github.com/sub-hub/cbs-extension.git"
},
"bugs": {
"url": "https://github.com/sub-hub/cbs-extension/issues"
},
"icon": "images/icon.png",
"engines": {
"vscode": "^1.80.0"
},
"activationEvents": [
"onLanguage:cbs"
],
"capabilities": {
"documentFormattingProvider": true,
"documentRangeFormattingProvider": true
},
"categories": [
"Programming Languages",
"Snippets",
"Linters",
"Formatters"
],
"keywords": [
"cbs",
"curly braced syntax",
"syntax highlighting",
"formatter",
"linter",
"intellisense",
"prettier"
],
"main": "./dist/extension.js",
"contributes": {
"languages": [{
"id": "cbs",
"aliases": ["Curly Braced Syntax", "cbs"],
"extensions": [".cbs", ".txt"],
"configuration": "./language-configuration.json"
}],
"grammars": [{
"language": "cbs",
"scopeName": "source.cbs",
"path": "./syntaxes/cbs.tmLanguage.json"
}],
"snippets": [{
"language": "cbs",
"path": "./snippets/cbs.json"
}],
"commands": [
{
"command": "cbs.showFormattedPreview",
"title": "CBS: Show Formatted Preview",
"category": "CBS"
},
{
"command": "cbs.goToOriginalLocation",
"title": "CBS: Go To Original Location (Sentence/Selection)",
"category": "CBS"
},
{
"command": "cbs.goToOriginalLocationLine",
"title": "CBS: Go To Original Location (Line)",
"category": "CBS"
}
],
"menus": {
"commandPalette": [
{
"command": "cbs.showFormattedPreview",
"when": "editorLangId == cbs"
},
{
"command": "cbs.goToOriginalLocation",
"when": "cbs.isPreviewActive"
},
{
"command": "cbs.goToOriginalLocationLine",
"when": "cbs.isPreviewActive"
}
],
"editor/context": [
{
"command": "cbs.showFormattedPreview",
"when": "editorLangId == cbs",
"group": "navigation@1"
},
{
"command": "cbs.goToOriginalLocation",
"when": "cbs.isPreviewActive",
"group": "navigation@1"
},
{
"command": "cbs.goToOriginalLocationLine",
"when": "cbs.isPreviewActive",
"group": "navigation@2"
}
]
},
"context": [
{
"name": "cbs.isPreviewActive",
"description": "True when the active editor is a CBS formatted preview window.",
"type": "boolean",
"default": false
}
],
"configuration": {
"title": "CBS Editor",
"properties": {
"cbs.preview.realtimeUpdate.enabled": {
"type": "boolean",
"default": true,
"description": "Enable real-time updates for the CBS Formatted Preview window when the original file changes."
},
"cbs.preview.realtimeUpdate.debounceDelay": {
"type": "number",
"default": 0,
"description": "Delay in milliseconds before updating the preview after a change (debounce). Higher values reduce lag during typing."
},
"cbs.completion.useOriginalNameForAlias": {
"type": "boolean",
"default": true,
"description": "If true, completing an alias will insert the original command name. If false, it will insert the alias itself."
},
"cbs.inlayHints.parameterNames.enabled": {
"type": "boolean",
"default": true,
"description": "Show parameter name hints for CBS commands (e.g., 'variable name', 'value' for settempvar)."
},
"cbs.inlayHints.blockEnd.enabled": {
"type": "boolean",
"default": true,
"description": "Show closing block hints at {{/}} tags to indicate which block is being closed."
},
"cbs.inlayHints.mathSymbols.enabled": {
"type": "boolean",
"default": true,
"description": "Show mathematical/logical operator symbols for comparison commands (e.g., '==' for equal, '>' for greater)."
},
"cbs.inlayHints.dataPreview.enabled": {
"type": "boolean",
"default": true,
"description": "Show preview of data transformations (e.g., emoji preview for unicode commands, hex conversions)."
}
}
},
"colors": [
{
"id": "editorInlayHint.foreground",
"description": "Foreground color of inlay hints",
"defaults": {
"dark": "#969696",
"light": "#969696",
"highContrast": "#ffffff"
}
},
{
"id": "editorInlayHint.background",
"description": "Background color of inlay hints",
"defaults": {
"dark": "#4d4d4d33",
"light": "#d3d3d333",
"highContrast": "#00000066"
}
},
{
"id": "editorInlayHint.parameterForeground",
"description": "Foreground color of parameter inlay hints",
"defaults": {
"dark": "#c586c0",
"light": "#af00db",
"highContrast": "#c586c0"
}
},
{
"id": "editorInlayHint.parameterBackground",
"description": "Background color of parameter inlay hints",
"defaults": {
"dark": "#c586c020",
"light": "#af00db20",
"highContrast": "#c586c040"
}
},
{
"id": "editorInlayHint.typeForeground",
"description": "Foreground color of type inlay hints",
"defaults": {
"dark": "#4fc1ff",
"light": "#0070c1",
"highContrast": "#4fc1ff"
}
},
{
"id": "editorInlayHint.typeBackground",
"description": "Background color of type inlay hints",
"defaults": {
"dark": "#4fc1ff20",
"light": "#0070c120",
"highContrast": "#4fc1ff40"
}
}
],
"keybindings": [
{
"command": "cbs.goToOriginalLocation",
"key": "alt+q",
"when": "cbs.isPreviewActive && editorTextFocus"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"lint": "eslint src --ext ts"
},
"devDependencies": {
"@types/vscode": "^1.80.0",
"@types/node": "18.x",
"@typescript-eslint/eslint-plugin": "^7.11.0",
"@typescript-eslint/parser": "^7.11.0",
"eslint": "^8.57.0",
"typescript": "^5.4.5"
}
}