1
1
import * as vscode from 'vscode' ;
2
2
3
3
import { VSCodeCommands } from '../../../definitions/constants' ;
4
+ import { QuteClientCommandConstants } from '../../../qute/commands/commandConstants' ;
4
5
5
6
import { expect } from 'chai' ;
6
7
import { describe , it } from 'mocha' ;
@@ -16,8 +17,21 @@ describe('VS Code extension tests', () => {
16
17
const activationCommands = packageJSON . activationEvents . filter ( ( s ) => s . startsWith ( 'onCommand:' ) )
17
18
. map ( ( s ) => s . substring ( 'onCommand:' . length ) ) ;
18
19
const QUARKUS_ACTIVATION_COMMANDS : string [ ] = [
20
+ // from package.json
19
21
VSCodeCommands . CREATE_PROJECT ,
20
- VSCodeCommands . QUARKUS_WELCOME
22
+ VSCodeCommands . QUARKUS_WELCOME ,
23
+ // added by vscode, since all commands implicitly trigger extension activation
24
+ // note that there are duplicate entries
25
+ VSCodeCommands . CREATE_PROJECT ,
26
+ VSCodeCommands . ADD_EXTENSIONS ,
27
+ VSCodeCommands . DEBUG_QUARKUS_PROJECT ,
28
+ `${ VSCodeCommands . DEBUG_QUARKUS_PROJECT } ${ VSCodeCommands . SHORT_SUFFIX } ` ,
29
+ VSCodeCommands . BUILD_BINARY ,
30
+ VSCodeCommands . QUARKUS_WELCOME ,
31
+ VSCodeCommands . DEPLOY_TO_OPENSHIFT ,
32
+ `${ VSCodeCommands . DEPLOY_TO_OPENSHIFT } ${ VSCodeCommands . SHORT_SUFFIX } ` ,
33
+ QuteClientCommandConstants . QUTE_VALIDATION_ENABLED_TOGGLE_OFF ,
34
+ QuteClientCommandConstants . QUTE_VALIDATION_ENABLED_TOGGLE_ON ,
21
35
] ;
22
36
23
37
expect ( activationCommands ) . to . have . members ( QUARKUS_ACTIVATION_COMMANDS ) ;
0 commit comments