feat: filter IDE reference candidates

This commit is contained in:
2026-08-17 13:55:12 +08:00
parent 35163e12b4
commit 0ff9477b5d
10 changed files with 138 additions and 15 deletions
+2 -5
View File
@@ -16,10 +16,7 @@ describe('client reference projection', () => {
expect(serializeIdeReference(item.path)).toBe('<ide-open-file>{"path":"F:\\\\project\\\\a&b.ts"}</ide-open-file>')
})
it('shows IDE, count and dirty state', () => {
const candidate = candidateFromItem(item)
expect(candidate.description).toContain('VS Code')
expect(candidate.description).toContain('4 open')
expect(candidate.description).toContain('unsaved changes')
it('shows IDE, workspace, count and dirty state with ASCII separators', () => {
expect(candidateFromItem(item).description).toBe('VS Code | F:\\project | 4 open | unsaved changes')
})
})