Skip to content

Commit 9623dd4

Browse files
committed
Fix test failures due to VSCode API change
Signed-off-by: David Thompson <[email protected]>
1 parent eb56d45 commit 9623dd4

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/test/vscodeTest/suite/extension.test.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import * as vscode from 'vscode';
22

33
import { VSCodeCommands } from '../../../definitions/constants';
4+
import { QuteClientCommandConstants } from '../../../qute/commands/commandConstants';
45

56
import { expect } from 'chai';
67
import { describe, it } from 'mocha';
@@ -16,8 +17,21 @@ describe('VS Code extension tests', () => {
1617
const activationCommands = packageJSON.activationEvents.filter((s) => s.startsWith('onCommand:'))
1718
.map((s) => s.substring('onCommand:'.length));
1819
const QUARKUS_ACTIVATION_COMMANDS: string[] = [
20+
// from package.json
1921
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,
2135
];
2236

2337
expect(activationCommands).to.have.members(QUARKUS_ACTIVATION_COMMANDS);

0 commit comments

Comments
 (0)