Skip to content

Commit e47b205

Browse files
committed
Update context description format to use a middle dot separator
- in description, show number of files after '·' and not in parenthesis └── apps └── editor └── src ├── commands │ ├── restore-file-selection-command │ │ ├── actions │ │ │ ├── restore-from-json-file.ts │ │ │ └── restore-from-workspace-state.ts │ │ ├── index.ts │ │ └── restore-file-selection-command.ts │ └── save-file-selection-command │ ├── actions │ │ ├── save-to-json-file.ts │ │ └── save-to-workspace-state.ts │ ├── index.ts │ └── save-file-selection-command.ts └── features └── context-restoration └── utils ├── create-context-description.ts ├── select-context-paths.ts └── source-selector.ts
1 parent 6cf57b2 commit e47b205

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/editor/src/features/context-restoration/utils/create-context-description.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const create_context_description = async (params: {
2727
const total_tokens = token_counts.reduce((acc, tc) => acc + tc.total, 0)
2828
const formatted_tokens = display_token_count(total_tokens)
2929

30-
let description = `${formatted_tokens} (${resolved_paths.length} file${resolved_paths.length == 1 ? '' : 's'})`
30+
let description = `${formatted_tokens} · ${resolved_paths.length} file${resolved_paths.length == 1 ? '' : 's'}`
3131

3232
const is_multi_root = (vscode.workspace.workspaceFolders || []).length > 1
3333
if (params.roots.length > 0 && (params.roots.length > 1 || is_multi_root)) {

0 commit comments

Comments
 (0)