-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathextension-test.js
More file actions
34 lines (30 loc) · 1.27 KB
/
extension-test.js
File metadata and controls
34 lines (30 loc) · 1.27 KB
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
// Quick verification script for the extension
// Run this in the Extension Development Host console
console.log('🧪 Testing Extension Functionality...');
// Test 1: Check if extension is registered
console.log('1. Checking extension registration...');
const extensionId = 'undefined_publisher.github-copilot-chat-history-analyzer';
const extension = vscode.extensions.getExtension(extensionId);
if (extension) {
console.log('✅ Extension found and registered');
console.log(' Active:', extension.isActive);
} else {
console.log('❌ Extension not found');
}
// Test 2: Check available commands
console.log('2. Checking available commands...');
vscode.commands.getCommands(true).then(commands => {
const extensionCommands = commands.filter(cmd =>
cmd.startsWith('github-copilot-chat-history-analyzer')
);
console.log(`✅ Found ${extensionCommands.length} extension commands:`);
extensionCommands.forEach(cmd => console.log(` - ${cmd}`));
});
// Test 3: Test the test command
console.log('3. Testing the test command...');
try {
vscode.commands.executeCommand('github-copilot-chat-history-analyzer.test');
console.log('✅ Test command executed successfully');
} catch (error) {
console.log('❌ Error executing test command:', error);
}