-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextension.js
343 lines (326 loc) Β· 12.2 KB
/
extension.js
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
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
const vscode = require('vscode');
function activate(context) {
let disposable = vscode.commands.registerCommand('marwen-labidi-commit-messages.message', function () {
const options = [{
label: 'π This is where it all begins... π',
description: '',
command: 'marwen-labidi-commit-messages.begins'
},
{
label: 'π Writing markdown file : i wrote ....',
description: '',
command: 'marwen-labidi-commit-messages.Writing'
},
{
label: 'π Adding or updating a .gitignore file',
description: '',
command: 'marwen-labidi-commit-messages.gitignore'
},
{
label: 'π§ Work in progress : im working on the ....',
description: '',
command: 'marwen-labidi-commit-messages.Work'
},
{
label: 'β Adding : i added .... ',
description: '',
command: 'marwen-labidi-commit-messages.Adding'
},
{
label: 'π Moving or renaming files',
description: '',
command: 'marwen-labidi-commit-messages.Moving'
},
{
label: 'π₯ Removing : i removed ....',
description: '',
command: 'marwen-labidi-commit-messages.Removing'
},
{
label: 'π Updating style files : i updated the ....',
description: '',
command: 'marwen-labidi-commit-messages.Updating'
},
{
label: 'π± Working on responsive design',
description: '',
command: 'marwen-labidi-commit-messages.responsive'
},
{
label: 'β¨ Introducing a new feature : start implementing the ... feature ... ',
description: '',
command: 'marwen-labidi-commit-messages.Introducing'
},
{
label: 'β Experiementing with new things : i experimented with ....',
description: '',
command: 'marwen-labidi-commit-messages.Experiementing'
},
{
label: 'π Fixing a bug : i fix the .... bug ... in',
description: '',
command: 'marwen-labidi-commit-messages.Fixing'
},
{
label: 'β» Refactoring code : i refactor the .... code ...',
description: '',
command: 'marwen-labidi-commit-messages.Refactoring'
},
{
label: 'π§ Changing configuration files: i changed the .... config file ...',
description: '',
command: 'marwen-labidi-commit-messages.configuration'
},
{
label: 'π Merging branches : i merged the .... branch ... into',
description: '',
command: 'marwen-labidi-commit-messages.Merging'
},
{
label: 'β
Adding tests : i added .... tests ...',
description: '',
command: 'marwen-labidi-commit-messages.tests'
},
{
label: 'π₯ Adding contributors : i added .... to the project',
description: '',
command: 'marwen-labidi-commit-messages.contributors'
},
{
label: 'π¨ Improving_structure_of_code',
description: '',
command: 'marwen-labidi-commit-messages.structure'
},
{
label: 'β‘ Improving_performance',
description: '',
command: 'marwen-labidi-commit-messages.performance'
},
{
label: 'βΏ Improving accessibility',
description: '',
command: 'marwen-labidi-commit-messages.accessibility'
},
{
label: 'π Improving SEO',
description: '',
command: 'marwen-labidi-commit-messages.SEO'
},
{
label: 'π· Adding or updating types (Flow, Typescript',
description: '',
command: 'marwen-labidi-commit-messages.types'
},
{
label: 'π¨ Removing linter warnings',
description: '',
command: 'marwen-labidi-commit-messages.linter'
},
{
label: 'β¬ Downgrading dependencies',
description: '',
command: 'marwen-labidi-commit-messages.Downgrading'
},
{
label: 'β¬ Upgrading dependencies',
description: '',
command: 'marwen-labidi-commit-messages.Upgrading'
},
{
label: 'π·β Add CI build system',
description: '',
command: 'marwen-labidi-commit-messages.CI'
},
{
label: 'π³ Work about Docker',
description: '',
command: 'marwen-labidi-commit-messages.Docker'
},
{
label: 'βΈ Work about Kubernetes',
description: '',
command: 'marwen-labidi-commit-messages.Kubernetes'
}
];
vscode.window.showQuickPick(options).then(option => {
if (!option || !option.command || option.command.length === 0) {
return;
}
vscode.commands.executeCommand(option.command);
});
});
let begins = vscode.commands.registerCommand('marwen-labidi-commit-messages.begins', function () {
const terminal = vscode.window.activeTerminal
terminal.show()
terminal.sendText('"π This is where it all begins... π"', false)
});
let Writing = vscode.commands.registerCommand('marwen-labidi-commit-messages.Writing', function () {
const terminal = vscode.window.activeTerminal
terminal.show()
terminal.sendText('"π Writing markdown file : i wrote ...."', false)
});
let gitignore = vscode.commands.registerCommand('marwen-labidi-commit-messages.gitignore', function () {
const terminal = vscode.window.activeTerminal
terminal.show()
terminal.sendText('"π Adding or updating a .gitignore file"', false)
});
let Work = vscode.commands.registerCommand('marwen-labidi-commit-messages.Work', function () {
const terminal = vscode.window.activeTerminal
terminal.show()
terminal.sendText('"π§ Work in progress : im working on the ...."', false)
});
let Adding = vscode.commands.registerCommand('marwen-labidi-commit-messages.Adding', function () {
const terminal = vscode.window.activeTerminal
terminal.show()
terminal.sendText('"β Adding : i added .... "', false)
});
let Moving = vscode.commands.registerCommand('marwen-labidi-commit-messages.Moving', function () {
const terminal = vscode.window.activeTerminal
terminal.show()
terminal.sendText('"π Moving or renaming files"', false)
});
let Removing = vscode.commands.registerCommand('marwen-labidi-commit-messages.Removing', function () {
const terminal = vscode.window.activeTerminal
terminal.show()
terminal.sendText('"π₯ Removing : i removed ...."', false)
});
let Updating = vscode.commands.registerCommand('marwen-labidi-commit-messages.Updating', function () {
const terminal = vscode.window.activeTerminal
terminal.show()
terminal.sendText('"π Updating style files : i updated the ...."', false)
});
let responsive = vscode.commands.registerCommand('marwen-labidi-commit-messages.responsive', function () {
const terminal = vscode.window.activeTerminal
terminal.show()
terminal.sendText('"π± Working on responsive design"', false)
});
let Introducing = vscode.commands.registerCommand('marwen-labidi-commit-messages.Introducing', function () {
const terminal = vscode.window.activeTerminal
terminal.show()
terminal.sendText('"β¨ Introducing a new feature : start implementing the ... feature ... "', false)
});
let Experiementing = vscode.commands.registerCommand('marwen-labidi-commit-messages.Experiementing', function () {
const terminal = vscode.window.activeTerminal
terminal.show()
terminal.sendText('"β Experiementing with new things : i experimented with ...."', false)
});
let Fixing = vscode.commands.registerCommand('marwen-labidi-commit-messages.Fixing', function () {
const terminal = vscode.window.activeTerminal
terminal.show()
terminal.sendText('"π Fixing a bug : i fix the .... bug ... in"', false)
});
let Refactoring = vscode.commands.registerCommand('marwen-labidi-commit-messages.Refactoring', function () {
const terminal = vscode.window.activeTerminal
terminal.show()
terminal.sendText('"β» Refactoring code : i refactor the .... code ..."', false)
});
let configuration = vscode.commands.registerCommand('marwen-labidi-commit-messages.configuration', function () {
const terminal = vscode.window.activeTerminal
terminal.show()
terminal.sendText('"π§ Changing configuration files: i changed the .... config file ..."', false)
});
let Merging = vscode.commands.registerCommand('marwen-labidi-commit-messages.Merging', function () {
const terminal = vscode.window.activeTerminal
terminal.show()
terminal.sendText('"π Merging branches : i merged the .... branch ... into"', false)
});
let tests = vscode.commands.registerCommand('marwen-labidi-commit-messages.tests', function () {
const terminal = vscode.window.activeTerminal
terminal.show()
terminal.sendText('"β
Adding tests : i added .... tests ..."', false)
});
let contributors = vscode.commands.registerCommand('marwen-labidi-commit-messages.contributors', function () {
const terminal = vscode.window.activeTerminal
terminal.show()
terminal.sendText('"π₯ Adding contributors : i added .... to the project"', false)
});
let structure = vscode.commands.registerCommand('marwen-labidi-commit-messages.structure', function () {
const terminal = vscode.window.activeTerminal
terminal.show()
terminal.sendText('"π¨ Improving_structure_of_code"', false)
});
let performance = vscode.commands.registerCommand('marwen-labidi-commit-messages.performance', function () {
const terminal = vscode.window.activeTerminal
terminal.show()
terminal.sendText('"β‘ Improving_performance"', false)
});
let accessibility = vscode.commands.registerCommand('marwen-labidi-commit-messages.accessibility', function () {
const terminal = vscode.window.activeTerminal
terminal.show()
terminal.sendText('"βΏ Improving accessibility"', false)
});
let SEO = vscode.commands.registerCommand('marwen-labidi-commit-messages.SEO', function () {
const terminal = vscode.window.activeTerminal
terminal.show()
terminal.sendText('"π Improving SEO"', false)
});
let types = vscode.commands.registerCommand('marwen-labidi-commit-messages.types', function () {
const terminal = vscode.window.activeTerminal
terminal.show()
terminal.sendText('"π· Adding or updating types (Flow, Typescript"', false)
});
let linter = vscode.commands.registerCommand('marwen-labidi-commit-messages.linter', function () {
const terminal = vscode.window.activeTerminal
terminal.show()
terminal.sendText('"π¨ Removing linter warnings"', false)
});
let Downgrading = vscode.commands.registerCommand('marwen-labidi-commit-messages.Downgrading', function () {
const terminal = vscode.window.activeTerminal
terminal.show()
terminal.sendText('"β¬ Downgrading dependencies"', false)
});
let Upgrading = vscode.commands.registerCommand('marwen-labidi-commit-messages.Upgrading', function () {
const terminal = vscode.window.activeTerminal
terminal.show()
terminal.sendText('"β¬ Upgrading dependencies"', false)
});
let CI = vscode.commands.registerCommand('marwen-labidi-commit-messages.CI', function () {
const terminal = vscode.window.activeTerminal
terminal.show()
terminal.sendText('"π·β Add CI build system"', false)
});
let Docker = vscode.commands.registerCommand('marwen-labidi-commit-messages.Docker', function () {
const terminal = vscode.window.activeTerminal
terminal.show()
terminal.sendText('"π³ Work about Docker"', false)
});
let Kubernetes = vscode.commands.registerCommand('marwen-labidi-commit-messages.Kubernetes', function () {
const terminal = vscode.window.activeTerminal
terminal.show()
terminal.sendText('"βΈ Work about Kubernetes"', false)
});
context.subscriptions.push(disposable);
context.subscriptions.push(begins);
context.subscriptions.push(Writing);
context.subscriptions.push(gitignore);
context.subscriptions.push(Work);
context.subscriptions.push(Adding);
context.subscriptions.push(Moving);
context.subscriptions.push(Removing);
context.subscriptions.push(Updating);
context.subscriptions.push(responsive);
context.subscriptions.push(Introducing);
context.subscriptions.push(Experiementing);
context.subscriptions.push(Fixing);
context.subscriptions.push(Refactoring);
context.subscriptions.push(configuration);
context.subscriptions.push(Merging);
context.subscriptions.push(tests);
context.subscriptions.push(contributors);
context.subscriptions.push(structure);
context.subscriptions.push(performance);
context.subscriptions.push(accessibility);
context.subscriptions.push(SEO);
context.subscriptions.push(types);
context.subscriptions.push(linter);
context.subscriptions.push(Downgrading);
context.subscriptions.push(Upgrading);
context.subscriptions.push(CI);
context.subscriptions.push(Docker);
context.subscriptions.push(Kubernetes);
}
function deactivate() {}
module.exports = {
activate,
deactivate
}