-
Notifications
You must be signed in to change notification settings - Fork 7
/
extension.json
303 lines (303 loc) · 8.85 KB
/
extension.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
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
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
{
"identifier": "com.tommasonegri.Rails",
"name": "Ruby on Rails",
"organization": "Tommaso Negri",
"description": "Ruby on Rails and Ruby support for Nova editor.",
"version": "8.0",
"main": "main.js",
"license": "MIT",
"keywords": [
"ruby",
"rails",
"nova",
"syntax",
"ruby on rails",
"migrations",
"documentation",
"stimulus"
],
"repository": "https://github.com/nova-ruby/rails",
"homepage": "https://tommasonegri.com/?ref=nova-rails",
"funding": "https://www.paypal.com/paypalme/tommasonegri/25EUR",
"bugs": "https://github.com/nova-ruby/rails/issues",
"categories": [
"clips",
"commands",
"completions",
"sidebars",
"tasks"
],
"entitlements": {
"filesystem": "readwrite",
"process": true
},
"activationEvents": [
"onLanguage:html+erb",
"onLanguage:ruby",
"onWorkspaceContains:*.rb",
"onWorkspaceContains:*.erb"
],
"taskTemplates": {
"railsDev": {
"name": "Rails Dev",
"description": "Runs the Rails development environment (bin/dev).",
"persistent": true,
"image": "task-rails",
"tasks": {
"run": {
"shell": true,
"command": "bin/dev"
}
}
},
"railsServer": {
"name": "Rails Server",
"description": "Runs the Rails development server.",
"persistent": true,
"image": "task-rails",
"tasks": {
"run": {
"shell": true,
"command": "bin/rails",
"args": [
"server",
"--environment=$(Config:railsServer.env)",
"--port=$(Config:railsServer.port)",
"--config=$(Config:railsServer.config)",
"--using=$(Config:railsServer.rackServer)",
"--pid=$(Config:railsServer.pid)"
]
}
},
"config": [
{
"key": "railsServer.env",
"title": "Environment",
"description": "Specifies the environment to run this server under",
"type": "enum",
"values": ["test", "development", "production"],
"default": "development",
"allowsCustom": true,
"required": true
},
{
"key": "railsServer.port",
"title": "Port",
"description": "Runs Rails on the specified port",
"type": "number",
"placeholder": "3000",
"default": 3000,
"min": 1,
"max": 65535,
"required": true
},
{
"title": "Advanced",
"type": "section",
"children": [
{
"key": "railsServer.config",
"title": "Config File",
"description": "Uses a custom rackup configuration",
"type": "path",
"default": "config.ru",
"required": true
},
{
"key": "railsServer.pid",
"title": "PID File",
"description": "Specifies the PID file",
"type": "path",
"default": "tmp/pids/server.pid",
"required": true
},
{
"key": "railsServer.rackServer",
"title": "Rack Server",
"description": "Specifies the Rack server used to run the application",
"type": "enum",
"values": ["puma", "thin", "webrick"],
"default": "puma",
"required": true
}
]
}
]
}
},
"commands": {
"extensions": [
{
"title": "Open Alternate File",
"command": "tommasonegri.rails.commands.openAlternateFile"
},
{ "separator": true },
{
"title": "Open Latest Migration",
"command": "tommasonegri.rails.commands.migrations.openLatest"
},
{
"title": "List Migrations",
"command": "tommasonegri.rails.commands.migrations.list"
},
{
"title": "Migrate",
"command": "tommasonegri.rails.commands.migrations.migrate"
},
{
"title": "Rollback",
"command": "tommasonegri.rails.commands.migrations.rollback"
},
{ "separator": true },
{
"title": "Search Documentation",
"command": "tommasonegri.rails.commands.documentation.search"
},
{ "separator": true },
{
"title": "Routes",
"command": "tommasonegri.rails.commands.info.routes"
},
{
"title": "Project properties",
"command": "tommasonegri.rails.commands.info.properties"
},
{ "separator": true },
{
"title": "Rails Guides",
"command": "tommasonegri.rails.commands.documentation.openRailsGuides"
},
{
"title": "Rails API",
"command": "tommasonegri.rails.commands.documentation.openRailsAPI"
},
{
"title": "Rails Forum",
"command": "tommasonegri.rails.commands.documentation.openRailsForum"
},
{
"title": "Turbo Reference",
"command": "tommasonegri.rails.commands.documentation.openTurboReference"
},
{
"title": "Stimulus Reference",
"command": "tommasonegri.rails.commands.documentation.openStimulusReference"
},
{ "separator": true },
{
"title": "Extension Wiki",
"command": "tommasonegri.rails.commands.documentation.openExtensionWiki"
}
],
"editor": [
{
"title": "Show related files",
"command": "tommasonegri.rails.commands.showRelatedFiles",
"shortcut": "ctrl-opt-p"
},
{
"title": "ERB Tag Switcher",
"command": "tommasonegri.rails.commands.erb.tagSwitcher",
"shortcut": "cmd-shift->",
"when": "editorHasFocus",
"filters": {
"syntaxes": ["erb", "html+erb"]
}
},
{ "separator": true },
{
"title": "Preview mailer",
"command": "tommasonegri.rails.commands.previewMailer"
}
],
"command-palette": [
{
"title": "Reload Extension",
"command": "tommasonegri.rails.commands.reload"
},
{
"title": "Reload About Rails Sidebar",
"command": "tommasonegri.rails.commands.sidebar.aboutRails.reload"
},
{
"title": "Reload Rails Notes Sidebar",
"command": "tommasonegri.rails.commands.sidebar.notes.reload"
},
{
"title": "Kill Puma Server",
"command": "tommasonegri.rails.commands.pumaServer.kill"
},
{
"title": "Update Stimulus manifest",
"command": "tommasonegri.rails.commands.stimulus.manifest.update"
},
{
"title": "Pin package to importmap",
"command": "tommasonegri.rails.commands.importmap.pin"
},
{
"title": "Unpin package from importmap",
"command": "tommasonegri.rails.commands.importmap.unpin"
}
]
},
"sidebars": [
{
"id": "tommasonegri.rails.sidebar",
"name": "Rails",
"smallImage": "RailsSidebarSmall",
"smallSelectedImage": "RailsSidebarSmallSelected",
"largeImage": "RailsSidebarLarge",
"largeSelectedImage": "RailsSidebarLargeSelected",
"sections": [
{
"id": "tommasonegri.rails.sidebar.notes",
"name": "Notes",
"placeholderImage": "RailsLogo",
"placeholderText": "There are no Rails Notes in the current workspace",
"allowMultiple": false,
"headerCommands": [
{
"title": "Refresh",
"image": "__builtin.refresh",
"command": "tommasonegri.rails.commands.sidebar.notes.reload"
}
]
},
{
"id": "tommasonegri.rails.sidebar.about",
"name": "About",
"placeholderImage": "RailsLogo",
"placeholderText": "Ruby on Rails not detected in the current workspace",
"headerCommands": [
{
"title": "Refresh",
"image": "__builtin.refresh",
"command": "tommasonegri.rails.commands.sidebar.aboutRails.reload"
}
]
}
]
}
],
"config": [
{
"key": "tommasonegri.rails.config.general.statusNotifications",
"title": "Status Notifications",
"description": "Show a notification when the server changes status. For example on realod, stop and start. If disabled you will only be notified on crashes or errors.",
"type": "boolean",
"default": true
}
],
"configWorkspace": [
{
"key": "tommasonegri.rails.config.general.statusNotifications",
"title": "Status Notifications",
"description": "Show a notification when the server changes status. For example on realod, stop and start. If disabled you will only be notified on crashes or errors.",
"type": "enum",
"values": ["Global Default", "Enabled", "Disabled"],
"radio": false,
"default": "Global Default"
}
]
}