diff --git a/packages/types/src/vscode.ts b/packages/types/src/vscode.ts index 2ce5aa0ad8..2042cf70b7 100644 --- a/packages/types/src/vscode.ts +++ b/packages/types/src/vscode.ts @@ -44,7 +44,7 @@ export const commandIds = [ "handleHumanRelayResponse", "newTask", - "newTask.noPrompt", + "newTaskWithoutPrompt", "setCustomStoragePath", "importSettings", diff --git a/src/activate/registerCommands.ts b/src/activate/registerCommands.ts index 9f56a010bd..2b3227ffe9 100644 --- a/src/activate/registerCommands.ts +++ b/src/activate/registerCommands.ts @@ -151,21 +151,21 @@ const getCommandsMap = ({ context, outputChannel, provider }: RegisterCommandOpt unregisterHumanRelayCallback: unregisterHumanRelayCallback, handleHumanRelayResponse: handleHumanRelayResponse, newTask: handleNewTask, - "newTask.noPrompt": async () => { - const visibleProvider = getVisibleProviderOrLog(outputChannel) - - if (!visibleProvider) { + newTaskWithoutPrompt: async () => { + const provider = await ClineProvider.getInstance() + if (!provider) { + return } TelemetryService.instance.captureTitleButtonClicked("plus") - await visibleProvider.removeClineFromStack() - await visibleProvider.refreshWorkspace() - await visibleProvider.postMessageToWebview({ type: "action", action: "chatButtonClicked" }) + await provider.removeClineFromStack() + await provider.refreshWorkspace() + await provider.postMessageToWebview({ type: "action", action: "chatButtonClicked" }) // Send focusInput action immediately after chatButtonClicked // This ensures the focus happens after the view has switched - await visibleProvider.postMessageToWebview({ type: "action", action: "focusInput" }) + await provider.postMessageToWebview({ type: "action", action: "focusInput" }) }, setCustomStoragePath: async () => { const { promptForCustomStoragePath } = await import("../utils/storage") diff --git a/src/package.json b/src/package.json index 2153dfc757..3a5802cf6d 100644 --- a/src/package.json +++ b/src/package.json @@ -171,8 +171,8 @@ "category": "%configuration.title%" }, { - "command": "roo-cline.newTask.noPrompt", - "title": "%command.newTask.noPrompt.title%", + "command": "roo-cline.newTaskWithoutPrompt", + "title": "%command.newTaskWithoutPrompt.title%", "category": "%configuration.title%" } ], @@ -299,9 +299,9 @@ "linux": "ctrl+alt+a" }, { - "command": "roo-cline.newTask.noPrompt", - "key": "ctrl+m ctrl+n", - "mac": "cmd+m cmd+n", + "command": "roo-cline.newTaskWithoutPrompt", + "key": "ctrl+m, ctrl+n", + "mac": "cmd+m, cmd+n", "when": "roo-cline.sidebar.visible" } ], diff --git a/src/package.nls.ca.json b/src/package.nls.ca.json index b8320549f4..f5aeda4ee9 100644 --- a/src/package.nls.ca.json +++ b/src/package.nls.ca.json @@ -2,7 +2,7 @@ "extension.displayName": "Roo Code", "extension.description": "Un equip complet de desenvolupament d'agents d'IA al teu editor.", "command.newTask.title": "Nova Tasca", - "command.newTask.noPrompt.title": "Nova Tasca (Sense Prompt)", + "command.newTaskWithoutPrompt.title": "Nova Tasca (Sense Prompt)", "command.explainCode.title": "Explicar Codi", "command.fixCode.title": "Corregir Codi", "command.improveCode.title": "Millorar Codi", diff --git a/src/package.nls.de.json b/src/package.nls.de.json index 537e4bd9bd..67656c04e8 100644 --- a/src/package.nls.de.json +++ b/src/package.nls.de.json @@ -2,7 +2,7 @@ "extension.displayName": "Roo Code", "extension.description": "Ein komplettes KI-Agenten-Entwicklungsteam in deinem Editor.", "command.newTask.title": "Neue Aufgabe", - "command.newTask.noPrompt.title": "Neue Aufgabe (ohne Prompt)", + "command.newTaskWithoutPrompt.title": "Neue Aufgabe (ohne Prompt)", "command.explainCode.title": "Code Erklären", "command.fixCode.title": "Code Reparieren", "command.improveCode.title": "Code Verbessern", diff --git a/src/package.nls.es.json b/src/package.nls.es.json index d1bd5fa525..4465ba7eb5 100644 --- a/src/package.nls.es.json +++ b/src/package.nls.es.json @@ -2,7 +2,7 @@ "extension.displayName": "Roo Code", "extension.description": "Un equipo completo de desarrollo de agentes de IA en tu editor.", "command.newTask.title": "Nueva Tarea", - "command.newTask.noPrompt.title": "Nueva Tarea (Sin Prompt)", + "command.newTaskWithoutPrompt.title": "Nueva Tarea (Sin Prompt)", "command.explainCode.title": "Explicar Código", "command.fixCode.title": "Corregir Código", "command.improveCode.title": "Mejorar Código", diff --git a/src/package.nls.fr.json b/src/package.nls.fr.json index 82c3e95048..6e17871245 100644 --- a/src/package.nls.fr.json +++ b/src/package.nls.fr.json @@ -2,7 +2,7 @@ "extension.displayName": "Roo Code", "extension.description": "Une équipe complète de développement d'agents IA dans votre éditeur.", "command.newTask.title": "Nouvelle Tâche", - "command.newTask.noPrompt.title": "Nouvelle Tâche (Sans Prompt)", + "command.newTaskWithoutPrompt.title": "Nouvelle Tâche (Sans Prompt)", "command.explainCode.title": "Expliquer le Code", "command.fixCode.title": "Corriger le Code", "command.improveCode.title": "Améliorer le Code", diff --git a/src/package.nls.hi.json b/src/package.nls.hi.json index 1a81148dca..581cb75eb5 100644 --- a/src/package.nls.hi.json +++ b/src/package.nls.hi.json @@ -2,7 +2,7 @@ "extension.displayName": "Roo Code", "extension.description": "आपके एडिटर में एआई एजेंट्स की पूरी डेवलपमेंट टीम।", "command.newTask.title": "नया कार्य", - "command.newTask.noPrompt.title": "नया कार्य (बिना Prompt)", + "command.newTaskWithoutPrompt.title": "नया कार्य (बिना Prompt)", "command.explainCode.title": "कोड समझाएं", "command.fixCode.title": "कोड ठीक करें", "command.improveCode.title": "कोड सुधारें", diff --git a/src/package.nls.id.json b/src/package.nls.id.json index 8d5b849d00..dedc2a3210 100644 --- a/src/package.nls.id.json +++ b/src/package.nls.id.json @@ -6,7 +6,7 @@ "views.activitybar.title": "Roo Code", "views.sidebar.name": "Roo Code", "command.newTask.title": "Tugas Baru", - "command.newTask.noPrompt.title": "Tugas Baru (Tanpa Prompt)", + "command.newTaskWithoutPrompt.title": "Tugas Baru (Tanpa Prompt)", "command.history.title": "Riwayat Tugas", "command.marketplace.title": "Marketplace", "command.openInEditor.title": "Buka di Editor", diff --git a/src/package.nls.it.json b/src/package.nls.it.json index df9a5d5d9f..b14d0fde5d 100644 --- a/src/package.nls.it.json +++ b/src/package.nls.it.json @@ -2,7 +2,7 @@ "extension.displayName": "Roo Code", "extension.description": "Un intero team di sviluppo di agenti IA nel tuo editor.", "command.newTask.title": "Nuovo Task", - "command.newTask.noPrompt.title": "Nuovo Task (Senza Prompt)", + "command.newTaskWithoutPrompt.title": "Nuovo Task (Senza Prompt)", "command.explainCode.title": "Spiega Codice", "command.fixCode.title": "Correggi Codice", "command.improveCode.title": "Migliora Codice", diff --git a/src/package.nls.ja.json b/src/package.nls.ja.json index ea92fbb248..0d9f24168f 100644 --- a/src/package.nls.ja.json +++ b/src/package.nls.ja.json @@ -6,7 +6,7 @@ "views.activitybar.title": "Roo Code", "views.sidebar.name": "Roo Code", "command.newTask.title": "新しいタスク", - "command.newTask.noPrompt.title": "新しいタスク(Prompt なし)", + "command.newTaskWithoutPrompt.title": "新しいタスク(Prompt なし)", "command.history.title": "タスク履歴", "command.marketplace.title": "マーケットプレイス", "command.openInEditor.title": "エディタで開く", diff --git a/src/package.nls.json b/src/package.nls.json index 2e70a6336f..008ae2e717 100644 --- a/src/package.nls.json +++ b/src/package.nls.json @@ -6,7 +6,7 @@ "views.activitybar.title": "Roo Code", "views.sidebar.name": "Roo Code", "command.newTask.title": "New Task", - "command.newTask.noPrompt.title": "New Task (No Prompt)", + "command.newTaskWithoutPrompt.title": "New Task (No Prompt)", "command.history.title": "Task History", "command.marketplace.title": "Marketplace", "command.openInEditor.title": "Open in Editor", diff --git a/src/package.nls.ko.json b/src/package.nls.ko.json index a44d68b73f..0339bed718 100644 --- a/src/package.nls.ko.json +++ b/src/package.nls.ko.json @@ -2,7 +2,7 @@ "extension.displayName": "Roo Code", "extension.description": "에디터에서 작동하는 AI 에이전트 개발팀.", "command.newTask.title": "새 작업", - "command.newTask.noPrompt.title": "새 작업(Prompt 없음)", + "command.newTaskWithoutPrompt.title": "새 작업(Prompt 없음)", "command.explainCode.title": "코드 설명", "command.fixCode.title": "코드 수정", "command.improveCode.title": "코드 개선", diff --git a/src/package.nls.nl.json b/src/package.nls.nl.json index b82be60053..c3806c8f32 100644 --- a/src/package.nls.nl.json +++ b/src/package.nls.nl.json @@ -6,7 +6,7 @@ "views.activitybar.title": "Roo Code", "views.sidebar.name": "Roo Code", "command.newTask.title": "Nieuwe Taak", - "command.newTask.noPrompt.title": "Nieuwe Taak (Zonder Prompt)", + "command.newTaskWithoutPrompt.title": "Nieuwe Taak (Zonder Prompt)", "command.history.title": "Taakgeschiedenis", "command.marketplace.title": "Marktplaats", "command.openInEditor.title": "Openen in Editor", diff --git a/src/package.nls.pl.json b/src/package.nls.pl.json index 5483842d0d..936bf43b8a 100644 --- a/src/package.nls.pl.json +++ b/src/package.nls.pl.json @@ -2,7 +2,7 @@ "extension.displayName": "Roo Code", "extension.description": "Pełny zespół programistów AI w twoim edytorze.", "command.newTask.title": "Nowe Zadanie", - "command.newTask.noPrompt.title": "Nowe Zadanie (Bez Prompt)", + "command.newTaskWithoutPrompt.title": "Nowe Zadanie (Bez Prompt)", "command.explainCode.title": "Wyjaśnij Kod", "command.fixCode.title": "Napraw Kod", "command.improveCode.title": "Ulepsz Kod", diff --git a/src/package.nls.pt-BR.json b/src/package.nls.pt-BR.json index c061fa7ca3..5c8b023bd5 100644 --- a/src/package.nls.pt-BR.json +++ b/src/package.nls.pt-BR.json @@ -2,7 +2,7 @@ "extension.displayName": "Roo Code", "extension.description": "Uma equipe completa de desenvolvimento de agentes de IA no seu editor.", "command.newTask.title": "Nova Tarefa", - "command.newTask.noPrompt.title": "Nova Tarefa (Sem Prompt)", + "command.newTaskWithoutPrompt.title": "Nova Tarefa (Sem Prompt)", "command.explainCode.title": "Explicar Código", "command.fixCode.title": "Corrigir Código", "command.improveCode.title": "Melhorar Código", diff --git a/src/package.nls.ru.json b/src/package.nls.ru.json index eb16e119ec..a210ce8af7 100644 --- a/src/package.nls.ru.json +++ b/src/package.nls.ru.json @@ -6,7 +6,7 @@ "views.activitybar.title": "Roo Code", "views.sidebar.name": "Roo Code", "command.newTask.title": "Новая задача", - "command.newTask.noPrompt.title": "Новая задача (без Prompt)", + "command.newTaskWithoutPrompt.title": "Новая задача (без Prompt)", "command.history.title": "История задач", "command.marketplace.title": "Маркетплейс", "command.openInEditor.title": "Открыть в редакторе", diff --git a/src/package.nls.tr.json b/src/package.nls.tr.json index fcfdaf7072..0a736b3918 100644 --- a/src/package.nls.tr.json +++ b/src/package.nls.tr.json @@ -2,7 +2,7 @@ "extension.displayName": "Roo Code", "extension.description": "Düzenleyicinde tam bir AI ajanları geliştirme ekibi.", "command.newTask.title": "Yeni Görev", - "command.newTask.noPrompt.title": "Yeni Görev (Prompt olmadan)", + "command.newTaskWithoutPrompt.title": "Yeni Görev (Prompt olmadan)", "command.explainCode.title": "Kodu Açıkla", "command.fixCode.title": "Kodu Düzelt", "command.improveCode.title": "Kodu İyileştir", diff --git a/src/package.nls.vi.json b/src/package.nls.vi.json index 4cb14169ca..caa3fb87f3 100644 --- a/src/package.nls.vi.json +++ b/src/package.nls.vi.json @@ -2,7 +2,7 @@ "extension.displayName": "Roo Code", "extension.description": "Một đội ngũ phát triển các tác nhân AI hoàn chỉnh trong trình soạn thảo của bạn.", "command.newTask.title": "Tác Vụ Mới", - "command.newTask.noPrompt.title": "Tác Vụ Mới (Không Prompt)", + "command.newTaskWithoutPrompt.title": "Tác Vụ Mới (Không Prompt)", "command.explainCode.title": "Giải Thích Mã", "command.fixCode.title": "Sửa Mã", "command.improveCode.title": "Cải Thiện Mã", diff --git a/src/package.nls.zh-CN.json b/src/package.nls.zh-CN.json index 2c5d6ad933..1d676146d5 100644 --- a/src/package.nls.zh-CN.json +++ b/src/package.nls.zh-CN.json @@ -2,7 +2,7 @@ "extension.displayName": "Roo Code", "extension.description": "在你的编辑器中提供完整的 AI 代理开发团队。", "command.newTask.title": "新建任务", - "command.newTask.noPrompt.title": "新建任务(无 Prompt)", + "command.newTaskWithoutPrompt.title": "新建任务(无 Prompt)", "command.explainCode.title": "解释代码", "command.fixCode.title": "修复代码", "command.improveCode.title": "改进代码", diff --git a/src/package.nls.zh-TW.json b/src/package.nls.zh-TW.json index 2058fbdac0..8067c3b8bf 100644 --- a/src/package.nls.zh-TW.json +++ b/src/package.nls.zh-TW.json @@ -2,7 +2,7 @@ "extension.displayName": "Roo Code", "extension.description": "在你的編輯器中提供完整的 AI 代理開發團隊。", "command.newTask.title": "新建任務", - "command.newTask.noPrompt.title": "新建任務(無 Prompt)", + "command.newTaskWithoutPrompt.title": "新建任務(無 Prompt)", "command.explainCode.title": "解釋程式碼", "command.fixCode.title": "修復程式碼", "command.improveCode.title": "改進程式碼",