Skip to content

Commit fcc94f8

Browse files
authored
Merge pull request #643 from rajbos/rajbos/fix-vscode-command-naming
fix: rename VS Code command IDs to aiEngineeringFluency.*
2 parents f8701cd + 4e6d451 commit fcc94f8

14 files changed

Lines changed: 387 additions & 145 deletions

.github/instructions/vscode-extension.instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The entire extension's logic is contained within the `CopilotTokenTracker` class
3939

4040
- **UI Components**:
4141
1. **Status Bar**: A `vscode.StatusBarItem` (`statusBarItem`) shows a brief summary. Its tooltip provides more detail.
42-
2. **Details Panel**: The `copilot-token-tracker.showDetails` command opens a `vscode.WebviewPanel`. The content for this panel is generated dynamically as an HTML string by the `getDetailsHtml` method.
42+
2. **Details Panel**: The `aiEngineeringFluency.showDetails` command opens a `vscode.WebviewPanel`. The content for this panel is generated dynamically as an HTML string by the `getDetailsHtml` method.
4343

4444
## Developer Workflow
4545

docs/FLUENCY-LEVEL-VIEWER-TEST-PLAN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@
250250

251251
### Test Steps
252252
1. Run in console: `await vscode.commands.getCommands(true)`
253-
2. **Verify**: List includes `copilot-token-tracker.showFluencyLevelViewer`
253+
2. **Verify**: List includes `aiEngineeringFluency.showFluencyLevelViewer`
254254
3. Check package.json
255255
4. **Verify**: Command is listed in contributes.commands
256256
5. Run automated test: `npm test`

docs/specs/backend.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -416,18 +416,18 @@ All settings in VS Code user settings (global scope, Settings Sync compatible):
416416
### Commands
417417

418418
#### Core Commands
419-
- `copilot-token-tracker.configureBackend` - Guided setup wizard
420-
- `copilot-token-tracker.copyBackendConfig` - Copy config (secrets redacted)
421-
- `copilot-token-tracker.exportCurrentView` - Export filtered view as JSON
422-
- `copilot-token-tracker.setSharingProfile` - Change sharing profile
419+
- `` - Guided setup wizard
420+
- `` - Copy config (secrets redacted)
421+
- `` - Export filtered view as JSON
422+
- `` - Change sharing profile
423423

424424
#### Shared Key Management (advanced)
425-
- `copilot-token-tracker.setBackendSharedKey` - Set/update key
426-
- `copilot-token-tracker.rotateBackendSharedKey` - Rotate key
427-
- `copilot-token-tracker.clearBackendSharedKey` - Clear key
425+
- `` - Set/update key
426+
- `` - Rotate key
427+
- `` - Clear key
428428

429429
#### Data Management
430-
- `copilot-token-tracker.deleteMyData` - Delete all user data from dataset (GDPR right to erasure)
430+
- `aiEngineeringFluency.deleteMyData` - Delete all user data from dataset (GDPR right to erasure)
431431

432432
---
433433

vscode-extension/package.json

Lines changed: 227 additions & 47 deletions
Large diffs are not rendered by default.

vscode-extension/src/backend/commands.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ export class BackendCommandHandler {
259259
* Handles enabling team sharing (consent gate).
260260
*/
261261
async handleEnableTeamSharing(): Promise<void> {
262-
const config = vscode.workspace.getConfiguration('copilotTokenTracker');
262+
const config = vscode.workspace.getConfiguration('aiEngineeringFluency');
263263
const conf = ConfirmationMessages.enableTeamSharing();
264264
const consent = await vscode.window.showWarningMessage(
265265
conf.message,
@@ -296,7 +296,7 @@ export class BackendCommandHandler {
296296
return;
297297
}
298298

299-
const config = vscode.workspace.getConfiguration('copilotTokenTracker');
299+
const config = vscode.workspace.getConfiguration('aiEngineeringFluency');
300300
try {
301301
await config.update('backend.sharingProfile', 'teamAnonymized', vscode.ConfigurationTarget.Global);
302302
await config.update('backend.shareWithTeam', false, vscode.ConfigurationTarget.Global);

vscode-extension/src/backend/facade.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ export class BackendFacade {
580580
}
581581

582582
public async toggleBackendWorkspaceMachineNameSync(): Promise<void> {
583-
const config = vscode.workspace.getConfiguration("copilotTokenTracker");
583+
const config = vscode.workspace.getConfiguration("aiEngineeringFluency");
584584
const current = config.get<boolean>(
585585
"backend.shareWorkspaceMachineNames",
586586
false,
@@ -637,7 +637,7 @@ export class BackendFacade {
637637
"Extension context is unavailable; cannot update configuration.",
638638
);
639639
}
640-
const config = vscode.workspace.getConfiguration("copilotTokenTracker");
640+
const config = vscode.workspace.getConfiguration("aiEngineeringFluency");
641641
await Promise.all([
642642
config.update(
643643
"backend.enabled",
@@ -1030,7 +1030,7 @@ export class BackendFacade {
10301030
}
10311031
}
10321032

1033-
const config = vscode.workspace.getConfiguration("copilotTokenTracker");
1033+
const config = vscode.workspace.getConfiguration("aiEngineeringFluency");
10341034
await Promise.all([
10351035
config.update(
10361036
"backend.enabled",

vscode-extension/src/backend/services/azureResourceService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class AzureResourceService {
3737
* Configure backend wizard (MVP: Storage Tables only).
3838
*/
3939
async configureBackendWizard(): Promise<void> {
40-
const config = vscode.workspace.getConfiguration('copilotTokenTracker');
40+
const config = vscode.workspace.getConfiguration('aiEngineeringFluency');
4141
const credential = this.credentialService.createAzureCredential();
4242

4343
// Sanity check that we can get a token (common failure is "not logged in")
@@ -495,7 +495,7 @@ export class AzureResourceService {
495495
* Set sharing profile command.
496496
*/
497497
async setSharingProfileCommand(): Promise<void> {
498-
const config = vscode.workspace.getConfiguration('copilotTokenTracker');
498+
const config = vscode.workspace.getConfiguration('aiEngineeringFluency');
499499
const currentSettings = this.deps.getSettings();
500500
const currentProfile = currentSettings.sharingProfile;
501501

vscode-extension/src/backend/services/syncService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ export class SyncService {
235235
'Configure Backend'
236236
).then(choice => {
237237
if (choice === 'Configure Backend') {
238-
vscode.commands.executeCommand('copilotTokenTracker.configureBackend');
238+
vscode.commands.executeCommand('aiEngineeringFluency.configureBackend');
239239
}
240240
});
241241
this.stopTimer();

vscode-extension/src/backend/settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export interface BackendQueryFilters {
5454
}
5555

5656
export function getBackendSettings(): BackendSettings {
57-
const config = vscode.workspace.getConfiguration('copilotTokenTracker');
57+
const config = vscode.workspace.getConfiguration('aiEngineeringFluency');
5858
const sharingProfileInspect = typeof (config as any).inspect === 'function'
5959
? config.inspect<string>('backend.sharingProfile')
6060
: undefined;

0 commit comments

Comments
 (0)