Skip to content

Commit f659caf

Browse files
committed
Refine directory item description formatting and update commit message preview notification type
- display full circle on fully selected folders └── apps └── editor └── src └── context ├── context-initialization.ts ├── helpers │ ├── get-all-workspace-files.ts │ └── get-selected-files.ts ├── providers │ ├── open-editors │ │ └── open-editors-provider.ts │ ├── selected-files │ │ └── selected-files-provider.ts │ └── workspace │ ├── modules │ │ ├── index.ts │ │ └── token-calculator.ts │ └── workspace-provider.ts ├── shared-context-state.ts └── utils └── shrink-file ├── index.ts ├── languages │ ├── c-style.ts │ ├── css.ts │ ├── html.ts │ ├── jsx.ts │ ├── python.ts │ ├── ruby.ts │ └── sql.ts ├── shrink-file.spec.ts ├── shrink-file.ts └── test-cases ├── c-style │ ├── input.txt │ └── output.txt ├── css │ ├── input.txt │ └── output.txt ├── html │ ├── input.txt │ └── output.txt ├── jsx │ ├── input.txt │ └── output.txt ├── python │ ├── input.txt │ └── output.txt ├── ruby │ ├── input.txt │ └── output.txt ├── scss │ ├── input.txt │ └── output.txt └── sql ├── input.txt └── output.txt
1 parent 55104ce commit f659caf

3 files changed

Lines changed: 3 additions & 58 deletions

File tree

‎apps/editor/src/commands/generate-commit-message-commands/actions/run-generate-action.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const run_generate_action = async (params: {
4242
provided_text?: string
4343
}) => {
4444
if (get_response_preview_promise_resolve()) {
45-
vscode.window.showWarningMessage(
45+
vscode.window.showInformationMessage(
4646
t('command.generate-commit-message.disabled-during-preview')
4747
)
4848
return

‎apps/editor/src/context/providers/workspace/workspace-provider.ts‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import { Logger } from '@shared/utils/logger'
1313
import { display_token_count } from '@shared/utils/display-token-count'
1414
import { TokenCalculator } from './modules/token-calculator'
1515
import { normalize_path } from '@/utils/normalize-path'
16-
import { t } from '@/i18n'
1716

1817
export interface IWorkspaceProvider {
1918
get_workspace_roots(): string[]
@@ -550,9 +549,9 @@ export class WorkspaceProvider
550549
if (element.isDirectory) {
551550
if (formatted_total) {
552551
if (formatted_selected && selected_token_count! < total_token_count!) {
553-
display_description = `◐ · ${formatted_total} · ${formatted_selected} ${t('context.selected')}`
552+
display_description = `◐ · ${formatted_total} · ${formatted_selected}`
554553
} else if (is_fully_selected) {
555-
display_description = formatted_total
554+
display_description = `● · ${formatted_total}`
556555
} else {
557556
display_description = formatted_total
558557
}

‎apps/editor/src/i18n/translations/context.ts‎

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -16,59 +16,5 @@ export const translations = {
1616
cs: 'Čekejte prosím, počítám tokeny...',
1717
hu: 'Kérem várjon, a tokenek számolása folyamatban...',
1818
bg: 'Моля, изчакайте, изчисляване на броя токени...'
19-
},
20-
'context.selected-fully': {
21-
en: 'selected fully',
22-
pl: 'w pełni zaznaczone',
23-
'zh-cn': '已全选',
24-
ja: 'すべて選択済み',
25-
'zh-tw': '已全選',
26-
de: 'vollständig ausgewählt',
27-
es: 'completamente seleccionado',
28-
fr: 'entièrement sélectionné',
29-
'pt-br': 'totalmente selecionado',
30-
ru: 'выбрано полностью',
31-
ko: '전체 선택됨',
32-
it: 'completamente selezionato',
33-
tr: 'tamamen seçildi',
34-
cs: 'zcela vybráno',
35-
hu: 'teljesen kiválasztva',
36-
bg: 'напълно избрано'
37-
},
38-
'context.Selected-fully': {
39-
en: 'Selected fully',
40-
pl: 'W pełni zaznaczone',
41-
'zh-cn': '已全选',
42-
ja: 'すべて選択済み',
43-
'zh-tw': '已全選',
44-
de: 'Vollständig ausgewählt',
45-
es: 'Completamente seleccionado',
46-
fr: 'Entièrement sélectionné',
47-
'pt-br': 'Totalmente selecionado',
48-
ru: 'Выбрано полностью',
49-
ko: '전체 선택됨',
50-
it: 'Completamente selezionato',
51-
tr: 'Tamamen seçildi',
52-
cs: 'Zcela vybráno',
53-
hu: 'Teljesen kiválasztva',
54-
bg: 'Напълно избрано'
55-
},
56-
'context.selected': {
57-
en: 'selected',
58-
pl: 'zaznaczone',
59-
'zh-cn': '已选',
60-
ja: '選択済み',
61-
'zh-tw': '已選',
62-
de: 'ausgewählt',
63-
es: 'seleccionado',
64-
fr: 'sélectionné',
65-
'pt-br': 'selecionado',
66-
ru: 'выбрано',
67-
ko: '선택됨',
68-
it: 'selezionato',
69-
tr: 'seçildi',
70-
cs: 'vybráno',
71-
hu: 'kiválasztva',
72-
bg: 'избрано'
7319
}
7420
} as const

0 commit comments

Comments
 (0)