From d0320cf1cb29b2228b25a6dd01bf6a4c55ba88e2 Mon Sep 17 00:00:00 2001 From: hannesrudolph Date: Mon, 16 Jun 2025 10:50:03 -0600 Subject: [PATCH] fix: add missing translations and fix tests for diagnostics settings - Added missing translations for diagnostics settings in all locales - Fixed DiagnosticsSettings component tests to handle conditional rendering - Updated test mocks to properly handle VSCodeCheckbox onChange events --- .../__tests__/DiagnosticsSettings.test.tsx | 56 ++++++++++++++----- webview-ui/src/i18n/locales/ca/settings.json | 18 +++++- webview-ui/src/i18n/locales/de/settings.json | 18 +++++- webview-ui/src/i18n/locales/es/settings.json | 18 +++++- webview-ui/src/i18n/locales/fr/settings.json | 18 +++++- webview-ui/src/i18n/locales/hi/settings.json | 18 +++++- webview-ui/src/i18n/locales/id/settings.json | 18 +++++- webview-ui/src/i18n/locales/it/settings.json | 18 +++++- webview-ui/src/i18n/locales/ja/settings.json | 18 +++++- webview-ui/src/i18n/locales/ko/settings.json | 18 +++++- webview-ui/src/i18n/locales/nl/settings.json | 18 +++++- webview-ui/src/i18n/locales/pl/settings.json | 18 +++++- .../src/i18n/locales/pt-BR/settings.json | 18 +++++- webview-ui/src/i18n/locales/ru/settings.json | 18 +++++- webview-ui/src/i18n/locales/tr/settings.json | 18 +++++- webview-ui/src/i18n/locales/vi/settings.json | 18 +++++- .../src/i18n/locales/zh-CN/settings.json | 18 +++++- .../src/i18n/locales/zh-TW/settings.json | 18 +++++- 18 files changed, 331 insertions(+), 31 deletions(-) diff --git a/webview-ui/src/components/settings/__tests__/DiagnosticsSettings.test.tsx b/webview-ui/src/components/settings/__tests__/DiagnosticsSettings.test.tsx index 39a64c94f6..f6d775fed8 100644 --- a/webview-ui/src/components/settings/__tests__/DiagnosticsSettings.test.tsx +++ b/webview-ui/src/components/settings/__tests__/DiagnosticsSettings.test.tsx @@ -14,7 +14,18 @@ jest.mock("@src/i18n/TranslationContext", () => ({ jest.mock("@vscode/webview-ui-toolkit/react", () => ({ VSCodeCheckbox: ({ children, onChange, checked, ...props }: any) => ( ), @@ -69,7 +80,7 @@ describe("DiagnosticsSettings", () => { }) it("renders all diagnostic settings", () => { - render() + render() expect(screen.getByText("settings:sections.diagnostics")).toBeInTheDocument() expect(screen.getByText("settings:diagnostics.description")).toBeInTheDocument() @@ -94,14 +105,20 @@ describe("DiagnosticsSettings", () => { it("calls setCachedStateField when checkbox is toggled", () => { render() - const checkbox = screen.getByTestId("include-diagnostics-checkbox") - fireEvent.change(checkbox, { target: { checked: true } }) + // The mock renders the input with data-testid + const checkbox = screen.getByTestId("include-diagnostics-checkbox") as HTMLInputElement + + // Verify it's unchecked initially + expect(checkbox.checked).toBe(false) + + // Toggle the checkbox + fireEvent.click(checkbox) expect(mockSetCachedStateField).toHaveBeenCalledWith("includeDiagnostics", true) }) it("calls setCachedStateField when slider value changes", () => { - render() + render() const slider = screen.getByTestId("max-diagnostics-count-slider") fireEvent.change(slider, { target: { value: "75" } }) @@ -110,7 +127,7 @@ describe("DiagnosticsSettings", () => { }) it("validates slider value range", () => { - render() + render() const slider = screen.getByTestId("max-diagnostics-count-slider") @@ -128,7 +145,7 @@ describe("DiagnosticsSettings", () => { }) it("calls setCachedStateField when filter input changes", () => { - render() + render() const filterInput = screen.getByTestId("diagnostics-filter-input") fireEvent.change(filterInput, { target: { value: "eslint, typescript" } }) @@ -137,7 +154,7 @@ describe("DiagnosticsSettings", () => { }) it("handles empty filter input", () => { - render() + render() const filterInput = screen.getByTestId("diagnostics-filter-input") fireEvent.change(filterInput, { target: { value: "" } }) @@ -146,7 +163,7 @@ describe("DiagnosticsSettings", () => { }) it("trims whitespace from filter values", () => { - render() + render() const filterInput = screen.getByTestId("diagnostics-filter-input") fireEvent.change(filterInput, { target: { value: " eslint , typescript " } }) @@ -160,15 +177,26 @@ describe("DiagnosticsSettings", () => { const checkbox = screen.getByTestId("include-diagnostics-checkbox") as HTMLInputElement expect(checkbox.checked).toBe(false) - const slider = screen.getByTestId("max-diagnostics-count-slider") as HTMLInputElement - expect(slider.value).toBe("50") + // Slider and filter input won't be rendered when includeDiagnostics is false/undefined + expect(screen.queryByTestId("max-diagnostics-count-slider")).not.toBeInTheDocument() + expect(screen.queryByTestId("diagnostics-filter-input")).not.toBeInTheDocument() + }) - const filterInput = screen.getByTestId("diagnostics-filter-input") as HTMLInputElement - expect(filterInput.value).toBe("") + it("shows/hides additional settings based on checkbox state", () => { + const { rerender } = render() + + // Initially hidden + expect(screen.queryByTestId("max-diagnostics-count-slider")).not.toBeInTheDocument() + expect(screen.queryByTestId("diagnostics-filter-input")).not.toBeInTheDocument() + + // Show when checkbox is checked + rerender() + expect(screen.getByTestId("max-diagnostics-count-slider")).toBeInTheDocument() + expect(screen.getByTestId("diagnostics-filter-input")).toBeInTheDocument() }) it("displays correct count value next to slider", () => { - render() + render() expect(screen.getByText("75")).toBeInTheDocument() }) diff --git a/webview-ui/src/i18n/locales/ca/settings.json b/webview-ui/src/i18n/locales/ca/settings.json index 205ff89e3a..d376bae6f4 100644 --- a/webview-ui/src/i18n/locales/ca/settings.json +++ b/webview-ui/src/i18n/locales/ca/settings.json @@ -31,7 +31,8 @@ "prompts": "Indicacions", "experimental": "Experimental", "language": "Idioma", - "about": "Sobre Roo Code" + "about": "Sobre Roo Code", + "diagnostics": "Diagnostics" }, "prompts": { "description": "Configura les indicacions de suport utilitzades per a accions ràpides com millorar indicacions, explicar codi i solucionar problemes. Aquestes indicacions ajuden Roo a proporcionar millor assistència per a tasques comunes de desenvolupament." @@ -613,5 +614,20 @@ "labels": { "customArn": "ARN personalitzat", "useCustomArn": "Utilitza ARN personalitzat..." + }, + "diagnostics": { + "description": "Configure how workspace diagnostics (errors and warnings) are included in the AI's context", + "includeDiagnostics": { + "label": "Include diagnostics in context", + "description": "When enabled, workspace errors and warnings will be included when using @problems mention" + }, + "maxDiagnosticsCount": { + "label": "Maximum diagnostics count", + "description": "Limit the number of diagnostics included to prevent excessive token usage" + }, + "diagnosticsFilter": { + "label": "Diagnostics filter", + "description": "Filter diagnostics by source and code (e.g., 'eslint', 'typescript', 'dart Error'). Leave empty to include all diagnostics" + } } } diff --git a/webview-ui/src/i18n/locales/de/settings.json b/webview-ui/src/i18n/locales/de/settings.json index 044c4f5220..43404638ab 100644 --- a/webview-ui/src/i18n/locales/de/settings.json +++ b/webview-ui/src/i18n/locales/de/settings.json @@ -31,7 +31,8 @@ "prompts": "Eingabeaufforderungen", "experimental": "Experimentell", "language": "Sprache", - "about": "Über Roo Code" + "about": "Über Roo Code", + "diagnostics": "Diagnostics" }, "prompts": { "description": "Konfiguriere Support-Prompts, die für schnelle Aktionen wie das Verbessern von Prompts, das Erklären von Code und das Beheben von Problemen verwendet werden. Diese Prompts helfen Roo dabei, bessere Unterstützung für häufige Entwicklungsaufgaben zu bieten." @@ -613,5 +614,20 @@ "labels": { "customArn": "Benutzerdefinierte ARN", "useCustomArn": "Benutzerdefinierte ARN verwenden..." + }, + "diagnostics": { + "description": "Configure how workspace diagnostics (errors and warnings) are included in the AI's context", + "includeDiagnostics": { + "label": "Include diagnostics in context", + "description": "When enabled, workspace errors and warnings will be included when using @problems mention" + }, + "maxDiagnosticsCount": { + "label": "Maximum diagnostics count", + "description": "Limit the number of diagnostics included to prevent excessive token usage" + }, + "diagnosticsFilter": { + "label": "Diagnostics filter", + "description": "Filter diagnostics by source and code (e.g., 'eslint', 'typescript', 'dart Error'). Leave empty to include all diagnostics" + } } } diff --git a/webview-ui/src/i18n/locales/es/settings.json b/webview-ui/src/i18n/locales/es/settings.json index b9d0d25ec3..21ee952d48 100644 --- a/webview-ui/src/i18n/locales/es/settings.json +++ b/webview-ui/src/i18n/locales/es/settings.json @@ -31,7 +31,8 @@ "prompts": "Indicaciones", "experimental": "Experimental", "language": "Idioma", - "about": "Acerca de Roo Code" + "about": "Acerca de Roo Code", + "diagnostics": "Diagnostics" }, "prompts": { "description": "Configura indicaciones de soporte que se utilizan para acciones rápidas como mejorar indicaciones, explicar código y solucionar problemas. Estas indicaciones ayudan a Roo a brindar mejor asistencia para tareas comunes de desarrollo." @@ -613,5 +614,20 @@ "labels": { "customArn": "ARN personalizado", "useCustomArn": "Usar ARN personalizado..." + }, + "diagnostics": { + "description": "Configure how workspace diagnostics (errors and warnings) are included in the AI's context", + "includeDiagnostics": { + "label": "Include diagnostics in context", + "description": "When enabled, workspace errors and warnings will be included when using @problems mention" + }, + "maxDiagnosticsCount": { + "label": "Maximum diagnostics count", + "description": "Limit the number of diagnostics included to prevent excessive token usage" + }, + "diagnosticsFilter": { + "label": "Diagnostics filter", + "description": "Filter diagnostics by source and code (e.g., 'eslint', 'typescript', 'dart Error'). Leave empty to include all diagnostics" + } } } diff --git a/webview-ui/src/i18n/locales/fr/settings.json b/webview-ui/src/i18n/locales/fr/settings.json index 87cc5c7a0a..053ddfdad5 100644 --- a/webview-ui/src/i18n/locales/fr/settings.json +++ b/webview-ui/src/i18n/locales/fr/settings.json @@ -31,7 +31,8 @@ "prompts": "Invites", "experimental": "Expérimental", "language": "Langue", - "about": "À propos de Roo Code" + "about": "À propos de Roo Code", + "diagnostics": "Diagnostics" }, "prompts": { "description": "Configurez les invites de support utilisées pour les actions rapides comme l'amélioration des invites, l'explication du code et la résolution des problèmes. Ces invites aident Roo à fournir une meilleure assistance pour les tâches de développement courantes." @@ -613,5 +614,20 @@ "labels": { "customArn": "ARN personnalisé", "useCustomArn": "Utiliser un ARN personnalisé..." + }, + "diagnostics": { + "description": "Configure how workspace diagnostics (errors and warnings) are included in the AI's context", + "includeDiagnostics": { + "label": "Include diagnostics in context", + "description": "When enabled, workspace errors and warnings will be included when using @problems mention" + }, + "maxDiagnosticsCount": { + "label": "Maximum diagnostics count", + "description": "Limit the number of diagnostics included to prevent excessive token usage" + }, + "diagnosticsFilter": { + "label": "Diagnostics filter", + "description": "Filter diagnostics by source and code (e.g., 'eslint', 'typescript', 'dart Error'). Leave empty to include all diagnostics" + } } } diff --git a/webview-ui/src/i18n/locales/hi/settings.json b/webview-ui/src/i18n/locales/hi/settings.json index 86afe59319..5f84a776a0 100644 --- a/webview-ui/src/i18n/locales/hi/settings.json +++ b/webview-ui/src/i18n/locales/hi/settings.json @@ -31,7 +31,8 @@ "prompts": "प्रॉम्प्ट्स", "experimental": "प्रायोगिक", "language": "भाषा", - "about": "परिचय" + "about": "परिचय", + "diagnostics": "Diagnostics" }, "prompts": { "description": "प्रॉम्प्ट्स को बेहतर बनाना, कोड की व्याख्या करना और समस्याओं को ठीक करना जैसी त्वरित कार्रवाइयों के लिए उपयोग किए जाने वाले सहायक प्रॉम्प्ट्स को कॉन्फ़िगर करें। ये प्रॉम्प्ट्स Roo को सामान्य विकास कार्यों के लिए बेहतर सहायता प्रदान करने में मदद करते हैं।" @@ -613,5 +614,20 @@ "labels": { "customArn": "कस्टम ARN", "useCustomArn": "कस्टम ARN का उपयोग करें..." + }, + "diagnostics": { + "description": "Configure how workspace diagnostics (errors and warnings) are included in the AI's context", + "includeDiagnostics": { + "label": "Include diagnostics in context", + "description": "When enabled, workspace errors and warnings will be included when using @problems mention" + }, + "maxDiagnosticsCount": { + "label": "Maximum diagnostics count", + "description": "Limit the number of diagnostics included to prevent excessive token usage" + }, + "diagnosticsFilter": { + "label": "Diagnostics filter", + "description": "Filter diagnostics by source and code (e.g., 'eslint', 'typescript', 'dart Error'). Leave empty to include all diagnostics" + } } } diff --git a/webview-ui/src/i18n/locales/id/settings.json b/webview-ui/src/i18n/locales/id/settings.json index c9fc4db506..163c8ca84a 100644 --- a/webview-ui/src/i18n/locales/id/settings.json +++ b/webview-ui/src/i18n/locales/id/settings.json @@ -31,7 +31,8 @@ "prompts": "Prompt", "experimental": "Eksperimental", "language": "Bahasa", - "about": "Tentang Roo Code" + "about": "Tentang Roo Code", + "diagnostics": "Diagnostics" }, "prompts": { "description": "Konfigurasi support prompt yang digunakan untuk aksi cepat seperti meningkatkan prompt, menjelaskan kode, dan memperbaiki masalah. Prompt ini membantu Roo memberikan bantuan yang lebih baik untuk tugas pengembangan umum." @@ -642,5 +643,20 @@ "labels": { "customArn": "ARN Kustom", "useCustomArn": "Gunakan ARN kustom..." + }, + "diagnostics": { + "description": "Configure how workspace diagnostics (errors and warnings) are included in the AI's context", + "includeDiagnostics": { + "label": "Include diagnostics in context", + "description": "When enabled, workspace errors and warnings will be included when using @problems mention" + }, + "maxDiagnosticsCount": { + "label": "Maximum diagnostics count", + "description": "Limit the number of diagnostics included to prevent excessive token usage" + }, + "diagnosticsFilter": { + "label": "Diagnostics filter", + "description": "Filter diagnostics by source and code (e.g., 'eslint', 'typescript', 'dart Error'). Leave empty to include all diagnostics" + } } } diff --git a/webview-ui/src/i18n/locales/it/settings.json b/webview-ui/src/i18n/locales/it/settings.json index 50c6528210..9a906c6c5f 100644 --- a/webview-ui/src/i18n/locales/it/settings.json +++ b/webview-ui/src/i18n/locales/it/settings.json @@ -31,7 +31,8 @@ "prompts": "Prompt", "experimental": "Sperimentale", "language": "Lingua", - "about": "Informazioni su Roo Code" + "about": "Informazioni su Roo Code", + "diagnostics": "Diagnostics" }, "prompts": { "description": "Configura i prompt di supporto utilizzati per azioni rapide come il miglioramento dei prompt, la spiegazione del codice e la risoluzione dei problemi. Questi prompt aiutano Roo a fornire una migliore assistenza per le attività di sviluppo comuni." @@ -613,5 +614,20 @@ "labels": { "customArn": "ARN personalizzato", "useCustomArn": "Usa ARN personalizzato..." + }, + "diagnostics": { + "description": "Configure how workspace diagnostics (errors and warnings) are included in the AI's context", + "includeDiagnostics": { + "label": "Include diagnostics in context", + "description": "When enabled, workspace errors and warnings will be included when using @problems mention" + }, + "maxDiagnosticsCount": { + "label": "Maximum diagnostics count", + "description": "Limit the number of diagnostics included to prevent excessive token usage" + }, + "diagnosticsFilter": { + "label": "Diagnostics filter", + "description": "Filter diagnostics by source and code (e.g., 'eslint', 'typescript', 'dart Error'). Leave empty to include all diagnostics" + } } } diff --git a/webview-ui/src/i18n/locales/ja/settings.json b/webview-ui/src/i18n/locales/ja/settings.json index 7e82190b7a..5a09f7bd4b 100644 --- a/webview-ui/src/i18n/locales/ja/settings.json +++ b/webview-ui/src/i18n/locales/ja/settings.json @@ -31,7 +31,8 @@ "prompts": "プロンプト", "experimental": "実験的", "language": "言語", - "about": "Roo Codeについて" + "about": "Roo Codeについて", + "diagnostics": "Diagnostics" }, "prompts": { "description": "プロンプトの強化、コードの説明、問題の修正などの迅速なアクションに使用されるサポートプロンプトを設定します。これらのプロンプトは、Rooが一般的な開発タスクでより良いサポートを提供するのに役立ちます。" @@ -613,5 +614,20 @@ "labels": { "customArn": "カスタム ARN", "useCustomArn": "カスタム ARN を使用..." + }, + "diagnostics": { + "description": "Configure how workspace diagnostics (errors and warnings) are included in the AI's context", + "includeDiagnostics": { + "label": "Include diagnostics in context", + "description": "When enabled, workspace errors and warnings will be included when using @problems mention" + }, + "maxDiagnosticsCount": { + "label": "Maximum diagnostics count", + "description": "Limit the number of diagnostics included to prevent excessive token usage" + }, + "diagnosticsFilter": { + "label": "Diagnostics filter", + "description": "Filter diagnostics by source and code (e.g., 'eslint', 'typescript', 'dart Error'). Leave empty to include all diagnostics" + } } } diff --git a/webview-ui/src/i18n/locales/ko/settings.json b/webview-ui/src/i18n/locales/ko/settings.json index a2dc6e9b64..c94802a941 100644 --- a/webview-ui/src/i18n/locales/ko/settings.json +++ b/webview-ui/src/i18n/locales/ko/settings.json @@ -31,7 +31,8 @@ "prompts": "프롬프트", "experimental": "실험적", "language": "언어", - "about": "Roo Code 정보" + "about": "Roo Code 정보", + "diagnostics": "Diagnostics" }, "prompts": { "description": "프롬프트 향상, 코드 설명, 문제 해결과 같은 빠른 작업에 사용되는 지원 프롬프트를 구성합니다. 이러한 프롬프트는 Roo가 일반적인 개발 작업에 대해 더 나은 지원을 제공하는 데 도움이 됩니다." @@ -613,5 +614,20 @@ "labels": { "customArn": "사용자 지정 ARN", "useCustomArn": "사용자 지정 ARN 사용..." + }, + "diagnostics": { + "description": "Configure how workspace diagnostics (errors and warnings) are included in the AI's context", + "includeDiagnostics": { + "label": "Include diagnostics in context", + "description": "When enabled, workspace errors and warnings will be included when using @problems mention" + }, + "maxDiagnosticsCount": { + "label": "Maximum diagnostics count", + "description": "Limit the number of diagnostics included to prevent excessive token usage" + }, + "diagnosticsFilter": { + "label": "Diagnostics filter", + "description": "Filter diagnostics by source and code (e.g., 'eslint', 'typescript', 'dart Error'). Leave empty to include all diagnostics" + } } } diff --git a/webview-ui/src/i18n/locales/nl/settings.json b/webview-ui/src/i18n/locales/nl/settings.json index 94d63a71db..ce9b989d7c 100644 --- a/webview-ui/src/i18n/locales/nl/settings.json +++ b/webview-ui/src/i18n/locales/nl/settings.json @@ -31,7 +31,8 @@ "prompts": "Prompts", "experimental": "Experimenteel", "language": "Taal", - "about": "Over Roo Code" + "about": "Over Roo Code", + "diagnostics": "Diagnostics" }, "prompts": { "description": "Configureer ondersteuningsprompts die worden gebruikt voor snelle acties zoals het verbeteren van prompts, het uitleggen van code en het oplossen van problemen. Deze prompts helpen Roo om betere ondersteuning te bieden voor veelvoorkomende ontwikkelingstaken." @@ -613,5 +614,20 @@ "labels": { "customArn": "Aangepaste ARN", "useCustomArn": "Aangepaste ARN gebruiken..." + }, + "diagnostics": { + "description": "Configure how workspace diagnostics (errors and warnings) are included in the AI's context", + "includeDiagnostics": { + "label": "Include diagnostics in context", + "description": "When enabled, workspace errors and warnings will be included when using @problems mention" + }, + "maxDiagnosticsCount": { + "label": "Maximum diagnostics count", + "description": "Limit the number of diagnostics included to prevent excessive token usage" + }, + "diagnosticsFilter": { + "label": "Diagnostics filter", + "description": "Filter diagnostics by source and code (e.g., 'eslint', 'typescript', 'dart Error'). Leave empty to include all diagnostics" + } } } diff --git a/webview-ui/src/i18n/locales/pl/settings.json b/webview-ui/src/i18n/locales/pl/settings.json index 41eae85d79..99341b3566 100644 --- a/webview-ui/src/i18n/locales/pl/settings.json +++ b/webview-ui/src/i18n/locales/pl/settings.json @@ -31,7 +31,8 @@ "prompts": "Podpowiedzi", "experimental": "Eksperymentalne", "language": "Język", - "about": "O Roo Code" + "about": "O Roo Code", + "diagnostics": "Diagnostics" }, "prompts": { "description": "Skonfiguruj podpowiedzi wsparcia używane do szybkich działań, takich jak ulepszanie podpowiedzi, wyjaśnianie kodu i rozwiązywanie problemów. Te podpowiedzi pomagają Roo zapewnić lepsze wsparcie dla typowych zadań programistycznych." @@ -613,5 +614,20 @@ "labels": { "customArn": "Niestandardowy ARN", "useCustomArn": "Użyj niestandardowego ARN..." + }, + "diagnostics": { + "description": "Configure how workspace diagnostics (errors and warnings) are included in the AI's context", + "includeDiagnostics": { + "label": "Include diagnostics in context", + "description": "When enabled, workspace errors and warnings will be included when using @problems mention" + }, + "maxDiagnosticsCount": { + "label": "Maximum diagnostics count", + "description": "Limit the number of diagnostics included to prevent excessive token usage" + }, + "diagnosticsFilter": { + "label": "Diagnostics filter", + "description": "Filter diagnostics by source and code (e.g., 'eslint', 'typescript', 'dart Error'). Leave empty to include all diagnostics" + } } } diff --git a/webview-ui/src/i18n/locales/pt-BR/settings.json b/webview-ui/src/i18n/locales/pt-BR/settings.json index 35254166a4..4850726afb 100644 --- a/webview-ui/src/i18n/locales/pt-BR/settings.json +++ b/webview-ui/src/i18n/locales/pt-BR/settings.json @@ -31,7 +31,8 @@ "prompts": "Prompts", "experimental": "Experimental", "language": "Idioma", - "about": "Sobre" + "about": "Sobre", + "diagnostics": "Diagnostics" }, "prompts": { "description": "Configure prompts de suporte usados para ações rápidas como melhorar prompts, explicar código e corrigir problemas. Esses prompts ajudam o Roo a fornecer melhor assistência para tarefas comuns de desenvolvimento." @@ -613,5 +614,20 @@ "labels": { "customArn": "ARN personalizado", "useCustomArn": "Usar ARN personalizado..." + }, + "diagnostics": { + "description": "Configure how workspace diagnostics (errors and warnings) are included in the AI's context", + "includeDiagnostics": { + "label": "Include diagnostics in context", + "description": "When enabled, workspace errors and warnings will be included when using @problems mention" + }, + "maxDiagnosticsCount": { + "label": "Maximum diagnostics count", + "description": "Limit the number of diagnostics included to prevent excessive token usage" + }, + "diagnosticsFilter": { + "label": "Diagnostics filter", + "description": "Filter diagnostics by source and code (e.g., 'eslint', 'typescript', 'dart Error'). Leave empty to include all diagnostics" + } } } diff --git a/webview-ui/src/i18n/locales/ru/settings.json b/webview-ui/src/i18n/locales/ru/settings.json index 51b3206537..58e673c761 100644 --- a/webview-ui/src/i18n/locales/ru/settings.json +++ b/webview-ui/src/i18n/locales/ru/settings.json @@ -31,7 +31,8 @@ "prompts": "Промпты", "experimental": "Экспериментальное", "language": "Язык", - "about": "О Roo Code" + "about": "О Roo Code", + "diagnostics": "Diagnostics" }, "prompts": { "description": "Настройте промпты поддержки, используемые для быстрых действий, таких как улучшение промптов, объяснение кода и исправление проблем. Эти промпты помогают Roo обеспечить лучшую поддержку для общих задач разработки." @@ -613,5 +614,20 @@ "labels": { "customArn": "Пользовательский ARN", "useCustomArn": "Использовать пользовательский ARN..." + }, + "diagnostics": { + "description": "Configure how workspace diagnostics (errors and warnings) are included in the AI's context", + "includeDiagnostics": { + "label": "Include diagnostics in context", + "description": "When enabled, workspace errors and warnings will be included when using @problems mention" + }, + "maxDiagnosticsCount": { + "label": "Maximum diagnostics count", + "description": "Limit the number of diagnostics included to prevent excessive token usage" + }, + "diagnosticsFilter": { + "label": "Diagnostics filter", + "description": "Filter diagnostics by source and code (e.g., 'eslint', 'typescript', 'dart Error'). Leave empty to include all diagnostics" + } } } diff --git a/webview-ui/src/i18n/locales/tr/settings.json b/webview-ui/src/i18n/locales/tr/settings.json index 9900008861..256632ffee 100644 --- a/webview-ui/src/i18n/locales/tr/settings.json +++ b/webview-ui/src/i18n/locales/tr/settings.json @@ -31,7 +31,8 @@ "prompts": "Promptlar", "experimental": "Deneysel", "language": "Dil", - "about": "Roo Code Hakkında" + "about": "Roo Code Hakkında", + "diagnostics": "Diagnostics" }, "prompts": { "description": "Prompt geliştirme, kod açıklama ve sorun çözme gibi hızlı eylemler için kullanılan destek promptlarını yapılandırın. Bu promptlar, Roo'nun yaygın geliştirme görevleri için daha iyi destek sağlamasına yardımcı olur." @@ -613,5 +614,20 @@ "labels": { "customArn": "Özel ARN", "useCustomArn": "Özel ARN kullan..." + }, + "diagnostics": { + "description": "Configure how workspace diagnostics (errors and warnings) are included in the AI's context", + "includeDiagnostics": { + "label": "Include diagnostics in context", + "description": "When enabled, workspace errors and warnings will be included when using @problems mention" + }, + "maxDiagnosticsCount": { + "label": "Maximum diagnostics count", + "description": "Limit the number of diagnostics included to prevent excessive token usage" + }, + "diagnosticsFilter": { + "label": "Diagnostics filter", + "description": "Filter diagnostics by source and code (e.g., 'eslint', 'typescript', 'dart Error'). Leave empty to include all diagnostics" + } } } diff --git a/webview-ui/src/i18n/locales/vi/settings.json b/webview-ui/src/i18n/locales/vi/settings.json index 5f260bd845..a8706cc31f 100644 --- a/webview-ui/src/i18n/locales/vi/settings.json +++ b/webview-ui/src/i18n/locales/vi/settings.json @@ -31,7 +31,8 @@ "prompts": "Lời nhắc", "experimental": "Thử nghiệm", "language": "Ngôn ngữ", - "about": "Giới thiệu" + "about": "Giới thiệu", + "diagnostics": "Diagnostics" }, "prompts": { "description": "Cấu hình các lời nhắc hỗ trợ được sử dụng cho các hành động nhanh như cải thiện lời nhắc, giải thích mã và khắc phục sự cố. Những lời nhắc này giúp Roo cung cấp hỗ trợ tốt hơn cho các tác vụ phát triển phổ biến." @@ -613,5 +614,20 @@ "labels": { "customArn": "ARN tùy chỉnh", "useCustomArn": "Sử dụng ARN tùy chỉnh..." + }, + "diagnostics": { + "description": "Configure how workspace diagnostics (errors and warnings) are included in the AI's context", + "includeDiagnostics": { + "label": "Include diagnostics in context", + "description": "When enabled, workspace errors and warnings will be included when using @problems mention" + }, + "maxDiagnosticsCount": { + "label": "Maximum diagnostics count", + "description": "Limit the number of diagnostics included to prevent excessive token usage" + }, + "diagnosticsFilter": { + "label": "Diagnostics filter", + "description": "Filter diagnostics by source and code (e.g., 'eslint', 'typescript', 'dart Error'). Leave empty to include all diagnostics" + } } } diff --git a/webview-ui/src/i18n/locales/zh-CN/settings.json b/webview-ui/src/i18n/locales/zh-CN/settings.json index d35e7a4054..dd978528a4 100644 --- a/webview-ui/src/i18n/locales/zh-CN/settings.json +++ b/webview-ui/src/i18n/locales/zh-CN/settings.json @@ -31,7 +31,8 @@ "prompts": "提示词", "experimental": "实验性", "language": "语言", - "about": "关于 Roo Code" + "about": "关于 Roo Code", + "diagnostics": "Diagnostics" }, "prompts": { "description": "配置用于快速操作的支持提示词,如增强提示词、解释代码和修复问题。这些提示词帮助 Roo 为常见开发任务提供更好的支持。" @@ -613,5 +614,20 @@ "labels": { "customArn": "自定义 ARN", "useCustomArn": "使用自定义 ARN..." + }, + "diagnostics": { + "description": "Configure how workspace diagnostics (errors and warnings) are included in the AI's context", + "includeDiagnostics": { + "label": "Include diagnostics in context", + "description": "When enabled, workspace errors and warnings will be included when using @problems mention" + }, + "maxDiagnosticsCount": { + "label": "Maximum diagnostics count", + "description": "Limit the number of diagnostics included to prevent excessive token usage" + }, + "diagnosticsFilter": { + "label": "Diagnostics filter", + "description": "Filter diagnostics by source and code (e.g., 'eslint', 'typescript', 'dart Error'). Leave empty to include all diagnostics" + } } } diff --git a/webview-ui/src/i18n/locales/zh-TW/settings.json b/webview-ui/src/i18n/locales/zh-TW/settings.json index 5f96f692e4..dd36737031 100644 --- a/webview-ui/src/i18n/locales/zh-TW/settings.json +++ b/webview-ui/src/i18n/locales/zh-TW/settings.json @@ -31,7 +31,8 @@ "prompts": "提示詞", "experimental": "實驗性", "language": "語言", - "about": "關於 Roo Code" + "about": "關於 Roo Code", + "diagnostics": "Diagnostics" }, "prompts": { "description": "設定用於快速操作的支援提示詞,如增強提示詞、解釋程式碼和修復問題。這些提示詞幫助 Roo 為常見開發工作提供更好的支援。" @@ -613,5 +614,20 @@ "labels": { "customArn": "自訂 ARN", "useCustomArn": "使用自訂 ARN..." + }, + "diagnostics": { + "description": "Configure how workspace diagnostics (errors and warnings) are included in the AI's context", + "includeDiagnostics": { + "label": "Include diagnostics in context", + "description": "When enabled, workspace errors and warnings will be included when using @problems mention" + }, + "maxDiagnosticsCount": { + "label": "Maximum diagnostics count", + "description": "Limit the number of diagnostics included to prevent excessive token usage" + }, + "diagnosticsFilter": { + "label": "Diagnostics filter", + "description": "Filter diagnostics by source and code (e.g., 'eslint', 'typescript', 'dart Error'). Leave empty to include all diagnostics" + } } }