Skip to content

Commit 2865808

Browse files
authored
fix: await extension activation before checking commands in integration test (#548)
1 parent bd4e6c9 commit 2865808

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

vscode-extension/test/integration/extension.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ suite('Extension Test Suite', () => {
1919
});
2020

2121
test('Commands should be registered', async () => {
22+
const extension = vscode.extensions.getExtension('RobBos.copilot-token-tracker');
23+
if (extension && !extension.isActive) {
24+
await extension.activate();
25+
}
26+
2227
const commands = await vscode.commands.getCommands(true);
2328

2429
const expectedCommands = [

0 commit comments

Comments
 (0)