Skip to content

Commit 8c4ee16

Browse files
committed
Update VS Code extension plan with CodeLens implementation
1 parent aa766db commit 8c4ee16

1 file changed

Lines changed: 14 additions & 23 deletions

File tree

VSCODE_EXTENSION_PLAN.md

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# VS Code Extension - Feature Status
22

3-
**Last Updated**: 2025-11-30
3+
**Last Updated**: 2025-12-01
44

55
---
66

@@ -13,6 +13,7 @@
1313
| ✅ Resx Diagnostics | `resxDiagnostics.ts` | Validation for .resx files (duplicates, empty values) |
1414
| ✅ Completion Provider | `completionProvider.ts` | IntelliSense autocomplete for localization keys |
1515
| ✅ Quick Fix Provider | `quickFix.ts` | Code actions (add key, merge duplicates, translate) |
16+
| ✅ CodeLens Provider | `codeLens.ts` | Inline info (references, coverage, translate) in .resx and code files |
1617

1718
### Views
1819
| Feature | File | Description |
@@ -22,14 +23,16 @@
2223
| ✅ Resource Tree | `resourceTreeView.ts` | Explorer sidebar with keys/translations |
2324
| ✅ Status Bar | `statusBar.ts` | Coverage %, validation status, service status |
2425
| ✅ Settings Panel | `settingsPanel.ts` | Full lrm.json configuration (all options exposed) |
26+
| ✅ Provider Testing | `settingsPanel.ts` | Test Connection button calls API to validate credentials |
2527

2628
### Backend
2729
| Feature | File | Description |
2830
|---------|------|-------------|
2931
| ✅ API Client | `apiClient.ts` | Complete REST API wrapper for all endpoints |
3032
| ✅ LRM Service | `lrmService.ts` | Backend process management with auto-restart |
33+
| ✅ Cache Service | `cacheService.ts` | Shared cache for scan results, key details, validation |
3134

32-
### Commands (20 total)
35+
### Commands (25 total)
3336
-`lrm.scanCode` - Full codebase scan
3437
-`lrm.validateResources` - Validate all .resx files
3538
-`lrm.openResourceEditor` - Open editor panel
@@ -50,37 +53,24 @@
5053
-`lrm.mergeDuplicateKey` - Quick fix: merge
5154
-`lrm.translateKeyQuickFix` - Quick fix: translate
5255
-`lrm.showResourceTree` - Focus tree view
56+
-`lrm.showKeyReferences` - CodeLens: show references
57+
-`lrm.showMissingLanguages` - CodeLens: show missing languages
58+
-`lrm.translateKeyFromLens` - CodeLens: translate key
59+
-`lrm.editKeyFromLens` - CodeLens: edit key
60+
-`lrm.deleteUnusedKey` - CodeLens: delete unused key
5361

5462
---
5563

5664
## Pending Features
5765

58-
### 1. Provider Testing 🟡 MEDIUM PRIORITY
59-
60-
**Current:** `testProvider()` in `settingsPanel.ts` is a stub
61-
**Needed:** Call API to validate provider credentials work
62-
63-
---
64-
65-
### 2. CodeLens Provider 🟢 LOW PRIORITY
66-
67-
Show reference count above each key in .resx files:
68-
```xml
69-
<!-- 12 references -->
70-
<data name="WelcomeMessage">
71-
```
72-
**File to create:** `src/providers/codeLens.ts`
73-
74-
---
75-
76-
### 3. Definition Provider 🟢 LOW PRIORITY
66+
### 1. Definition Provider 🟢 LOW PRIORITY
7767

7868
F12 from code to jump to .resx file definition
7969
**File to create:** `src/providers/definition.ts`
8070

8171
---
8272

83-
### 4. Reference Provider 🟢 LOW PRIORITY
73+
### 2. Reference Provider 🟢 LOW PRIORITY
8474

8575
Shift+F12 to find all code references for a key
8676
**File to create:** `src/providers/references.ts`
@@ -97,7 +87,7 @@ vscode-extension/
9787
│ │ ├── resxDiagnostics.ts ✅
9888
│ │ ├── completionProvider.ts ✅
9989
│ │ ├── quickFix.ts ✅
100-
│ │ ├── codeLens.ts ⬜ (not implemented)
90+
│ │ ├── codeLens.ts
10191
│ │ ├── definition.ts ⬜ (not implemented)
10292
│ │ └── references.ts ⬜ (not implemented)
10393
│ ├── views/
@@ -108,6 +98,7 @@ vscode-extension/
10898
│ │ └── statusBar.ts ✅
10999
│ ├── backend/
110100
│ │ ├── apiClient.ts ✅
101+
│ │ ├── cacheService.ts ✅
111102
│ │ └── lrmService.ts ✅
112103
│ └── extension.ts ✅
113104
├── package.json ✅

0 commit comments

Comments
 (0)