-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug-windows.ps1
More file actions
47 lines (40 loc) Β· 2.11 KB
/
debug-windows.ps1
File metadata and controls
47 lines (40 loc) Β· 2.11 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
35
36
37
38
39
40
41
42
43
44
45
46
47
# Windows PowerShell script to debug VS Code extension
Write-Host "π§ͺ Debugging VS Code Extension on Windows..." -ForegroundColor Cyan
# Check if extension files exist
$extensionPath = "c:\Users\lade\Documents\lade-repos\vsCode-Github-Copilot-Chat-Extension"
Write-Host "`n1. Checking extension files..." -ForegroundColor Yellow
if (Test-Path "$extensionPath\package.json") {
Write-Host "β
package.json exists" -ForegroundColor Green
} else {
Write-Host "β package.json missing" -ForegroundColor Red
}
if (Test-Path "$extensionPath\dist\extension.js") {
Write-Host "β
compiled extension.js exists" -ForegroundColor Green
$fileSize = (Get-Item "$extensionPath\dist\extension.js").Length
Write-Host " File size: $fileSize bytes" -ForegroundColor Gray
} else {
Write-Host "β compiled extension.js missing" -ForegroundColor Red
}
# Check VS Code processes
Write-Host "`n2. Checking VS Code processes..." -ForegroundColor Yellow
$vscodeProcesses = Get-Process -Name "Code" -ErrorAction SilentlyContinue
if ($vscodeProcesses) {
Write-Host "β
Found $($vscodeProcesses.Count) VS Code process(es)" -ForegroundColor Green
} else {
Write-Host "β No VS Code processes found" -ForegroundColor Red
}
# Check workspace storage
Write-Host "`n3. Checking workspace storage..." -ForegroundColor Yellow
$workspaceStorage = "c:\Users\lade\AppData\Roaming\Code\User\workspaceStorage"
if (Test-Path $workspaceStorage) {
$folderCount = (Get-ChildItem $workspaceStorage).Count
Write-Host "β
Workspace storage found with $folderCount folders" -ForegroundColor Green
} else {
Write-Host "β Workspace storage not found" -ForegroundColor Red
}
Write-Host "`n4. Instructions for testing in Extension Development Host:" -ForegroundColor Yellow
Write-Host " - Press F12 to open Developer Tools" -ForegroundColor Gray
Write-Host " - Go to Console tab" -ForegroundColor Gray
Write-Host " - Run: vscode.commands.executeCommand('github-copilot-chat-history-analyzer.test')" -ForegroundColor Gray
Write-Host " - Look for Activity Bar icon π" -ForegroundColor Gray
Write-Host "`nDone! π" -ForegroundColor Cyan