Skip to content

Commit 9f7edaa

Browse files
authored
vscode plugin shortcuts fix, comment whitespace fix (#356)
1 parent 0a32aa7 commit 9f7edaa

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

server/src/utils/Copyright.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ namespace Copyright {
88
static inline const std::string GENERATED_C_CPP_FILE_HEADER =
99
"/*\n"
1010
" * This file is automatically generated by UnitTestBot. "
11-
"For further information see"
11+
"For further information see "
1212
PROJECT_HOMEPAGE_URL
1313
"\n */\n";
1414

1515
static inline const std::string GENERATED_MAKEFILE_HEADER =
1616
"# This file is automatically generated by UnitTestBot. "
17-
"For further information see"
17+
"For further information see "
1818
PROJECT_HOMEPAGE_URL
1919
"\n";
2020

vscode-plugin/package.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -230,27 +230,27 @@
230230
{
231231
"command": "unittestbot.generateFileTests",
232232
"key": "ctrl+t",
233-
"when": "config.unittestbot.advanced.enableDeveloperMode == true && (editorLangId == c || editorLangId == cpp)"
233+
"when": "config.unittestbot.advanced.enableDeveloperMode == true && editorLangId =~ /(c|cpp)/"
234234
},
235235
{
236236
"command": "unittestbot.generateProjectLineTests",
237237
"key": "ctrl+alt+l",
238-
"when": "config.unittestbot.advanced.enableDeveloperMode == true && (editorLangId == c || editorLangId == cpp)"
238+
"when": "config.unittestbot.advanced.enableDeveloperMode == true && editorLangId =~ /(c|cpp)/"
239239
},
240240
{
241241
"command": "unittestbot.generatePredicateTests",
242242
"key": "ctrl+alt+p",
243-
"when": "config.unittestbot.advanced.enableDeveloperMode == true && (editorLangId == c || editorLangId == cpp)"
243+
"when": "config.unittestbot.advanced.enableDeveloperMode == true && editorLangId =~ /(c|cpp)/"
244244
},
245245
{
246246
"command": "unittestbot.generateAssertionFailTests",
247247
"key": "ctrl+alt+f",
248-
"when": "config.unittestbot.advanced.enableDeveloperMode == true && (editorLangId == c || editorLangId == cpp)"
248+
"when": "config.unittestbot.advanced.enableDeveloperMode == true && editorLangId =~ /(c|cpp)/"
249249
},
250250
{
251251
"command": "unittestbot.generateFunctionTests",
252252
"key": "ctrl+alt+m",
253-
"when": "config.unittestbot.advanced.enableDeveloperMode == true && (editorLangId == c || editorLangId == cpp)"
253+
"when": "config.unittestbot.advanced.enableDeveloperMode == true && editorLangId =~ /(c|cpp)/"
254254
},
255255
{
256256
"command": "unittestbot.generateClassTests",
@@ -270,27 +270,27 @@
270270
{
271271
"command": "unittestbot.menucommand.generateFileTests",
272272
"key": "ctrl+t",
273-
"when": "config.unittestbot.advanced.enableDeveloperMode == true && (editorLangId == c || editorLangId == cpp)"
273+
"when": "config.unittestbot.advanced.enableDeveloperMode == true && editorLangId =~ /(c|cpp)/"
274274
},
275275
{
276276
"command": "unittestbot.menucommand.generateProjectLineTests",
277277
"key": "ctrl+alt+l",
278-
"when": "config.unittestbot.advanced.enableDeveloperMode == true && (editorLangId == c || editorLangId == cpp)"
278+
"when": "config.unittestbot.advanced.enableDeveloperMode == true && editorLangId =~ /(c|cpp)/"
279279
},
280280
{
281281
"command": "unittestbot.menucommand.generatePredicateTests",
282282
"key": "ctrl+alt+p",
283-
"when": "config.unittestbot.advanced.enableDeveloperMode == true && (editorLangId == c || editorLangId == cpp)"
283+
"when": "config.unittestbot.advanced.enableDeveloperMode == true && editorLangId =~ /(c|cpp)/"
284284
},
285285
{
286286
"command": "unittestbot.menucommand.generateAssertionFailTests",
287287
"key": "ctrl+alt+f",
288-
"when": "config.unittestbot.advanced.enableDeveloperMode == true && (editorLangId == c || editorLangId == cpp)"
288+
"when": "config.unittestbot.advanced.enableDeveloperMode == true && editorLangId =~ /(c|cpp)/"
289289
},
290290
{
291291
"command": "unittestbot.menucommand.generateFunctionTests",
292292
"key": "ctrl+alt+m",
293-
"when": "config.unittestbot.advanced.enableDeveloperMode == true && (editorLangId == c || editorLangId == cpp)"
293+
"when": "config.unittestbot.advanced.enableDeveloperMode == true && editorLangId =~ /(c|cpp)/"
294294
},
295295
{
296296
"command": "unittestbot.menucommand.generateClassTests",
@@ -392,7 +392,7 @@
392392
"unittestbot.utbot.editor.generate": [
393393
{
394394
"command": "unittestbot.menucommand.generateFileTests",
395-
"when": "editorLangId == c || editorLangId == cpp",
395+
"when": "editorLangId =~ /(c|cpp)/",
396396
"group": "UTBot@1"
397397
},
398398
{
@@ -402,29 +402,29 @@
402402
},
403403
{
404404
"command": "unittestbot.menucommand.generateFunctionTests",
405-
"when": "editorLangId == c || editorLangId == cpp",
405+
"when": "editorLangId =~ /(c|cpp)/",
406406
"group": "UTBot@3"
407407
},
408408
{
409409
"command": "unittestbot.menucommand.generateProjectLineTests",
410-
"when": "editorLangId == c || editorLangId == cpp",
410+
"when": "editorLangId =~ /(c|cpp)/",
411411
"group": "UTBot@4"
412412
},
413413
{
414414
"command": "unittestbot.menucommand.generateAssertionFailTests",
415-
"when": "editorLangId == c || editorLangId == cpp",
415+
"when": "editorLangId =~ /(c|cpp)/",
416416
"group": "UTBot@5"
417417
},
418418
{
419419
"command": "unittestbot.menucommand.generatePredicateTests",
420-
"when": "editorLangId == c || editorLangId == cpp",
420+
"when": "editorLangId =~ /(c|cpp)/",
421421
"group": "UTBot@6"
422422
}
423423
],
424424
"explorer/context": [
425425
{
426426
"command": "unittestbot.generateFileTests",
427-
"when": "resourceLangId == c || resourceLangId == cpp",
427+
"when": "resourceLangId =~ /(c|cpp)/",
428428
"group": "UTBot@1"
429429
},
430430
{
@@ -443,7 +443,7 @@
443443
"editor/context": [
444444
{
445445
"submenu": "unittestbot.utbot.editor.generate",
446-
"when": "editorLangId == c || editorLangId == cpp",
446+
"when": "editorLangId =~ /(c|cpp)/",
447447
"group": "UTBot@1"
448448
},
449449
{

0 commit comments

Comments
 (0)