Skip to content

Commit 8cb0ec7

Browse files
Copilotrajbos
andauthored
Update empty-state section to mention all supported tools and editors
Agent-Logs-Url: https://github.com/rajbos/github-copilot-token-usage/sessions/5f653546-796f-4a55-a858-a06caa60333e Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com>
1 parent 2bb06f1 commit 8cb0ec7

1 file changed

Lines changed: 29 additions & 6 deletions

File tree

  • vscode-extension/src/webview/details

vscode-extension/src/webview/details/main.ts

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -690,9 +690,31 @@ function buildEmptyStateSection(): HTMLElement {
690690
const title = el('div', 'empty-state-title', '👋 Welcome to AI Engineering Fluency');
691691

692692
const desc = el('p', 'empty-state-description',
693-
'This extension tracks your GitHub Copilot token usage by reading Copilot Chat session log files stored locally by VS Code. No token data has been found yet.'
693+
'This extension tracks AI token usage by reading session log files stored locally by supported tools. No token data has been found yet.'
694694
);
695695

696+
const toolsLabel = document.createElement('p');
697+
toolsLabel.className = 'empty-state-description';
698+
const toolsLabelStrong = document.createElement('strong');
699+
toolsLabelStrong.textContent = 'Supported tools & editors:';
700+
toolsLabel.append(toolsLabelStrong);
701+
702+
const toolsList = document.createElement('ul');
703+
toolsList.className = 'empty-state-steps';
704+
const toolsTexts = [
705+
'💙 VS Code / VS Code Insiders / VSCodium — GitHub Copilot Chat extension',
706+
'⚡ Cursor, 🌊 Windsurf — built-in AI chat',
707+
'🖥️ Visual Studio 2022+ — GitHub Copilot Chat extension',
708+
'🟢 OpenCode, 🦀 Crush — terminal-based coding agents',
709+
'🤖 Claude Code — Anthropic\'s CLI coding agent',
710+
'💻 Copilot CLI — GitHub Copilot in the terminal',
711+
];
712+
toolsTexts.forEach(text => {
713+
const li = document.createElement('li');
714+
li.textContent = text;
715+
toolsList.append(li);
716+
});
717+
696718
const stepsLabel = document.createElement('p');
697719
stepsLabel.className = 'empty-state-description';
698720
const stepsLabelStrong = document.createElement('strong');
@@ -702,9 +724,10 @@ function buildEmptyStateSection(): HTMLElement {
702724
const steps = document.createElement('ol');
703725
steps.className = 'empty-state-steps';
704726
const stepTexts = [
705-
'Make sure the GitHub Copilot and GitHub Copilot Chat extensions are installed and active in VS Code.',
706-
'Open the Copilot Chat panel (Ctrl+Alt+I / Cmd+Alt+I) and have a conversation with Copilot.',
707-
'Click the 🔄 Refresh button above to reload the stats after chatting.',
727+
'Use any of the supported tools or editors listed above to interact with an AI model.',
728+
'For GitHub Copilot in VS Code: open the Copilot Chat panel (Ctrl+Alt+I / Cmd+Alt+I) and start a conversation.',
729+
'For terminal agents (Claude Code, OpenCode, Copilot CLI): run a coding session in your terminal.',
730+
'Click the 🔄 Refresh button above to reload the stats after your first session.',
708731
];
709732
stepTexts.forEach(text => {
710733
const li = document.createElement('li');
@@ -713,10 +736,10 @@ function buildEmptyStateSection(): HTMLElement {
713736
});
714737

715738
const note = el('div', 'empty-state-note',
716-
'💡 If you have been using Copilot but still see no data, open the Diagnostics panel (🔍 Diagnostics button above) to verify that session files are being discovered correctly.'
739+
'💡 If you have been using one of the supported tools but still see no data, open the Diagnostics panel (🔍 Diagnostics button above) to verify that session files are being discovered correctly.'
717740
);
718741

719-
inner.append(title, desc, stepsLabel, steps, note);
742+
inner.append(title, desc, toolsLabel, toolsList, stepsLabel, steps, note);
720743
section.append(inner);
721744
return section;
722745
}

0 commit comments

Comments
 (0)