mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-07 08:26:51 +00:00
Link to the settings page from the auto approve toolbar (#2111)
This commit is contained in:
parent
712ca71ee0
commit
37ecf9648b
17 changed files with 27 additions and 17 deletions
|
|
@ -55,7 +55,6 @@ if (!isTestEnv) {
|
|||
// Read and parse the JSON file
|
||||
const content = fs.readFileSync(filePath, "utf8")
|
||||
translations[language][namespace] = JSON.parse(content)
|
||||
console.log(`Successfully loaded '${language}/${namespace}' translations`)
|
||||
} catch (error) {
|
||||
console.error(`Error loading translation file ${filePath}:`, error)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@ import { VSCodeCheckbox } from "@vscode/webview-ui-toolkit/react"
|
|||
import { useCallback, useState } from "react"
|
||||
import { useExtensionState } from "../../context/ExtensionStateContext"
|
||||
import { useAppTranslation } from "../../i18n/TranslationContext"
|
||||
import { Trans } from "react-i18next"
|
||||
import { VSCodeLink } from "@vscode/webview-ui-toolkit/react"
|
||||
import { vscode } from "../../utils/vscode"
|
||||
|
||||
interface AutoApproveAction {
|
||||
|
|
@ -158,6 +160,10 @@ const AutoApproveMenu = ({ style }: AutoApproveMenuProps) => {
|
|||
vscode.postMessage({ type: "alwaysApproveResubmit", bool: newValue })
|
||||
}, [alwaysApproveResubmit, setAlwaysApproveResubmit])
|
||||
|
||||
const handleOpenSettings = useCallback(() => {
|
||||
window.postMessage({ type: "action", action: "settingsButtonClicked" })
|
||||
}, [])
|
||||
|
||||
// Map action IDs to their specific handlers
|
||||
const actionHandlers: Record<AutoApproveAction["id"], () => void> = {
|
||||
readFiles: handleReadOnlyChange,
|
||||
|
|
@ -243,7 +249,12 @@ const AutoApproveMenu = ({ style }: AutoApproveMenuProps) => {
|
|||
color: "var(--vscode-descriptionForeground)",
|
||||
fontSize: "12px",
|
||||
}}>
|
||||
{t("chat:autoApprove.description")}
|
||||
<Trans
|
||||
i18nKey="chat:autoApprove.description"
|
||||
components={{
|
||||
settingsLink: <VSCodeLink href="#" onClick={handleOpenSettings} />,
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
{actions.map((action) => (
|
||||
<div key={action.id} style={{ margin: "6px 0" }}>
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@
|
|||
"autoApprove": {
|
||||
"title": "Aprovació automàtica:",
|
||||
"none": "Cap",
|
||||
"description": "L'aprovació automàtica permet a Roo Code realitzar accions sense demanar permís. Activa-la només per a accions en les que confies plenament.",
|
||||
"description": "L'aprovació automàtica permet a Roo Code realitzar accions sense demanar permís. Activa-la només per a accions en les que confies plenament. Configuració més detallada disponible a la <settingsLink>Configuració</settingsLink>.",
|
||||
"actions": {
|
||||
"readFiles": {
|
||||
"label": "Llegir fitxers i directoris",
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@
|
|||
"autoApprove": {
|
||||
"title": "Automatische Genehmigung:",
|
||||
"none": "Keine",
|
||||
"description": "Automatische Genehmigung erlaubt Roo Code, Aktionen ohne Nachfrage auszuführen. Aktiviere dies nur für Aktionen, denen du vollständig vertraust.",
|
||||
"description": "Automatische Genehmigung erlaubt Roo Code, Aktionen ohne Nachfrage auszuführen. Aktiviere dies nur für Aktionen, denen du vollständig vertraust. Detailliertere Konfiguration verfügbar in den <settingsLink>Einstellungen</settingsLink>.",
|
||||
"actions": {
|
||||
"readFiles": {
|
||||
"label": "Dateien und Verzeichnisse lesen",
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@
|
|||
"autoApprove": {
|
||||
"title": "Auto-approve:",
|
||||
"none": "None",
|
||||
"description": "Auto-approve allows Roo Code to perform actions without asking for permission. Only enable for actions you fully trust.",
|
||||
"description": "Auto-approve allows Roo Code to perform actions without asking for permission. Only enable for actions you fully trust. More detailed configuration available in <settingsLink>Settings</settingsLink>.",
|
||||
"actions": {
|
||||
"readFiles": {
|
||||
"label": "Read files and directories",
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@
|
|||
"autoApprove": {
|
||||
"title": "Auto-aprobar:",
|
||||
"none": "Ninguno",
|
||||
"description": "Auto-aprobar permite a Roo Code realizar acciones sin pedir permiso. Habilita solo para acciones en las que confíes plenamente.",
|
||||
"description": "Auto-aprobar permite a Roo Code realizar acciones sin pedir permiso. Habilita solo para acciones en las que confíes plenamente. Configuración más detallada disponible en <settingsLink>Configuración</settingsLink>.",
|
||||
"actions": {
|
||||
"readFiles": {
|
||||
"label": "Leer archivos y directorios",
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@
|
|||
"autoApprove": {
|
||||
"title": "Auto-approbation :",
|
||||
"none": "Aucune",
|
||||
"description": "L'auto-approbation permet à Roo Code d'effectuer des actions sans demander d'autorisation. Activez-la uniquement pour les actions auxquelles vous faites entièrement confiance.",
|
||||
"description": "L'auto-approbation permet à Roo Code d'effectuer des actions sans demander d'autorisation. Activez-la uniquement pour les actions auxquelles vous faites entièrement confiance. Configuration plus détaillée disponible dans les <settingsLink>Paramètres</settingsLink>.",
|
||||
"actions": {
|
||||
"readFiles": {
|
||||
"label": "Lire fichiers et répertoires",
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@
|
|||
"autoApprove": {
|
||||
"title": "स्वत:-स्वीकृति:",
|
||||
"none": "कोई नहीं",
|
||||
"description": "स्वत:-स्वीकृति Roo Code को अनुमति मांगे बिना क्रियाएँ करने की अनुमति देती है। केवल उन क्रियाओं के लिए सक्षम करें जिन पर आप पूरी तरह से विश्वास करते हैं।",
|
||||
"description": "स्वत:-स्वीकृति Roo Code को अनुमति मांगे बिना क्रियाएँ करने की अनुमति देती है। केवल उन क्रियाओं के लिए सक्षम करें जिन पर आप पूरी तरह से विश्वास करते हैं। अधिक विस्तृत कॉन्फ़िगरेशन <settingsLink>सेटिंग्स</settingsLink> में उपलब्ध है।",
|
||||
"actions": {
|
||||
"readFiles": {
|
||||
"label": "फ़ाइलें और निर्देशिकाएँ पढ़ें",
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@
|
|||
"autoApprove": {
|
||||
"title": "Auto-approvazione:",
|
||||
"none": "Nessuna",
|
||||
"description": "L'auto-approvazione permette a Roo Code di eseguire azioni senza chiedere permesso. Abilita solo per azioni di cui ti fidi completamente.",
|
||||
"description": "L'auto-approvazione permette a Roo Code di eseguire azioni senza chiedere permesso. Abilita solo per azioni di cui ti fidi completamente. Configurazione più dettagliata disponibile nelle <settingsLink>Impostazioni</settingsLink>.",
|
||||
"actions": {
|
||||
"readFiles": {
|
||||
"label": "Leggi file e directory",
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@
|
|||
"autoApprove": {
|
||||
"title": "自動承認:",
|
||||
"none": "なし",
|
||||
"description": "自動承認はRoo Codeに許可を求めずに操作を実行する権限を与えます。完全に信頼できる操作のみ有効にしてください。",
|
||||
"description": "自動承認はRoo Codeに許可を求めずに操作を実行する権限を与えます。完全に信頼できる操作のみ有効にしてください。より詳細な設定は<settingsLink>設定</settingsLink>で利用できます。",
|
||||
"actions": {
|
||||
"readFiles": {
|
||||
"label": "ファイルとディレクトリの読み取り",
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@
|
|||
"autoApprove": {
|
||||
"title": "자동 승인:",
|
||||
"none": "없음",
|
||||
"description": "자동 승인을 사용하면 Roo Code가 권한을 요청하지 않고 작업을 수행할 수 있습니다. 완전히 신뢰할 수 있는 작업에만 활성화하세요.",
|
||||
"description": "자동 승인을 사용하면 Roo Code가 권한을 요청하지 않고 작업을 수행할 수 있습니다. 완전히 신뢰할 수 있는 작업에만 활성화하세요. 더 자세한 구성은 <settingsLink>설정</settingsLink>에서 사용할 수 있습니다.",
|
||||
"actions": {
|
||||
"readFiles": {
|
||||
"label": "파일 및 디렉토리 읽기",
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@
|
|||
"autoApprove": {
|
||||
"title": "Automatyczne zatwierdzanie:",
|
||||
"none": "Brak",
|
||||
"description": "Automatyczne zatwierdzanie pozwala Roo Code wykonywać działania bez pytania o pozwolenie. Włącz tylko dla działań, którym w pełni ufasz.",
|
||||
"description": "Automatyczne zatwierdzanie pozwala Roo Code wykonywać działania bez pytania o pozwolenie. Włącz tylko dla działań, którym w pełni ufasz. Bardziej szczegółowa konfiguracja dostępna w <settingsLink>Ustawieniach</settingsLink>.",
|
||||
"actions": {
|
||||
"readFiles": {
|
||||
"label": "Czytaj pliki i katalogi",
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@
|
|||
"autoApprove": {
|
||||
"title": "Aprovação automática:",
|
||||
"none": "Nenhuma",
|
||||
"description": "A aprovação automática permite que o Roo Code execute ações sem pedir permissão. Ative apenas para ações nas quais você confia totalmente.",
|
||||
"description": "A aprovação automática permite que o Roo Code execute ações sem pedir permissão. Ative apenas para ações nas quais você confia totalmente. Configuração mais detalhada disponível nas <settingsLink>Configurações</settingsLink>.",
|
||||
"actions": {
|
||||
"readFiles": {
|
||||
"label": "Ler arquivos e diretórios",
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@
|
|||
"autoApprove": {
|
||||
"title": "Otomatik-onay:",
|
||||
"none": "Hiçbiri",
|
||||
"description": "Otomatik onay, Roo Code'un izin istemeden işlemler gerçekleştirmesine olanak tanır. Yalnızca tamamen güvendiğiniz eylemler için etkinleştirin.",
|
||||
"description": "Otomatik onay, Roo Code'un izin istemeden işlemler gerçekleştirmesine olanak tanır. Yalnızca tamamen güvendiğiniz eylemler için etkinleştirin. Daha detaylı yapılandırma <settingsLink>Ayarlar</settingsLink>'da mevcuttur.",
|
||||
"actions": {
|
||||
"readFiles": {
|
||||
"label": "Dosyaları ve dizinleri oku",
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@
|
|||
"autoApprove": {
|
||||
"title": "Tự động phê duyệt:",
|
||||
"none": "Không",
|
||||
"description": "Tự động phê duyệt cho phép Roo Code thực hiện hành động mà không cần xin phép. Chỉ bật cho các hành động bạn hoàn toàn tin tưởng.",
|
||||
"description": "Tự động phê duyệt cho phép Roo Code thực hiện hành động mà không cần xin phép. Chỉ bật cho các hành động bạn hoàn toàn tin tưởng. Cấu hình chi tiết hơn có sẵn trong <settingsLink>Cài đặt</settingsLink>.",
|
||||
"actions": {
|
||||
"readFiles": {
|
||||
"label": "Đọc tệp và thư mục",
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@
|
|||
"autoApprove": {
|
||||
"title": "自动批准:",
|
||||
"none": "无",
|
||||
"description": "自动批准允许Roo Code无需请求许可即可执行操作。仅为您完全信任的操作启用。",
|
||||
"description": "自动批准允许Roo Code无需请求许可即可执行操作。仅为您完全信任的操作启用。更详细的配置可在<settingsLink>设置</settingsLink>中查看。",
|
||||
"actions": {
|
||||
"readFiles": {
|
||||
"label": "读取文件和目录",
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@
|
|||
"autoApprove": {
|
||||
"title": "自動批准:",
|
||||
"none": "無",
|
||||
"description": "自動批准允許Roo Code無需請求許可即可執行操作。僅為您完全信任的操作啟用。",
|
||||
"description": "自動批准允許Roo Code無需請求許可即可執行操作。僅為您完全信任的操作啟用。更詳細的配置可在<settingsLink>設定</settingsLink>中查看。",
|
||||
"actions": {
|
||||
"readFiles": {
|
||||
"label": "讀取檔案和目錄",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue