Просмотр исходного кода

Merge pull request #3050 from Kilo-Org/mark/cmd-i-open-agent

with cmd-i instead of asking inline what you want open the agent with…
Mark IJbema 4 месяцев назад
Родитель
Сommit
9a06dd96c4
52 измененных файлов с 71 добавлено и 100 удалено
  1. 5 0
      .changeset/red-ads-love.md
  2. 9 1
      packages/types/src/vscode.ts
  3. 1 0
      src/activate/registerCodeActions.ts
  4. 33 0
      src/core/webview/ClineProvider.ts
  5. 0 1
      src/i18n/locales/ar/kilocode.json
  6. 0 1
      src/i18n/locales/ca/kilocode.json
  7. 0 1
      src/i18n/locales/cs/kilocode.json
  8. 0 1
      src/i18n/locales/de/kilocode.json
  9. 0 1
      src/i18n/locales/en/kilocode.json
  10. 0 1
      src/i18n/locales/es/kilocode.json
  11. 0 1
      src/i18n/locales/fr/kilocode.json
  12. 0 1
      src/i18n/locales/hi/kilocode.json
  13. 0 1
      src/i18n/locales/id/kilocode.json
  14. 0 1
      src/i18n/locales/it/kilocode.json
  15. 0 1
      src/i18n/locales/ja/kilocode.json
  16. 0 1
      src/i18n/locales/ko/kilocode.json
  17. 0 1
      src/i18n/locales/nl/kilocode.json
  18. 0 1
      src/i18n/locales/pl/kilocode.json
  19. 0 1
      src/i18n/locales/pt-BR/kilocode.json
  20. 0 1
      src/i18n/locales/ru/kilocode.json
  21. 0 1
      src/i18n/locales/th/kilocode.json
  22. 0 1
      src/i18n/locales/tr/kilocode.json
  23. 0 1
      src/i18n/locales/uk/kilocode.json
  24. 0 1
      src/i18n/locales/vi/kilocode.json
  25. 0 1
      src/i18n/locales/zh-CN/kilocode.json
  26. 0 1
      src/i18n/locales/zh-TW/kilocode.json
  27. 19 17
      src/package.json
  28. 0 1
      src/package.nls.ar.json
  29. 0 1
      src/package.nls.ca.json
  30. 0 1
      src/package.nls.cs.json
  31. 0 1
      src/package.nls.de.json
  32. 0 1
      src/package.nls.es.json
  33. 0 1
      src/package.nls.fr.json
  34. 0 1
      src/package.nls.hi.json
  35. 0 1
      src/package.nls.id.json
  36. 0 1
      src/package.nls.it.json
  37. 0 1
      src/package.nls.ja.json
  38. 1 1
      src/package.nls.json
  39. 0 1
      src/package.nls.ko.json
  40. 0 1
      src/package.nls.nl.json
  41. 0 1
      src/package.nls.pl.json
  42. 0 1
      src/package.nls.pt-BR.json
  43. 0 1
      src/package.nls.ru.json
  44. 0 1
      src/package.nls.th.json
  45. 0 1
      src/package.nls.tr.json
  46. 0 1
      src/package.nls.uk.json
  47. 0 1
      src/package.nls.vi.json
  48. 0 1
      src/package.nls.zh-CN.json
  49. 0 1
      src/package.nls.zh-TW.json
  50. 0 28
      src/services/ghost/GhostProvider.ts
  51. 0 5
      src/services/ghost/index.ts
  52. 3 5
      webview-ui/src/components/kilocode/settings/GhostServiceSettings.tsx

+ 5 - 0
.changeset/red-ads-love.md

@@ -0,0 +1,5 @@
+---
+"kilo-code": minor
+---
+
+CMD-I now invokes the agent so you can give it more complex prompts

+ 9 - 1
packages/types/src/vscode.ts

@@ -5,7 +5,15 @@ import { kiloLanguages } from "./kiloLanguages.js"
  * CodeAction
  */
 
-export const codeActionIds = ["explainCode", "fixCode", "improveCode", "addToContext", "newTask"] as const
+export const kiloCodeActionIds = ["addToContextAndFocus"] as const // kilocode_change
+export const codeActionIds = [
+	...kiloCodeActionIds, // kilocode_change
+	"explainCode",
+	"fixCode",
+	"improveCode",
+	"addToContext",
+	"newTask",
+] as const
 
 export type CodeActionId = (typeof codeActionIds)[number]
 

+ 1 - 0
src/activate/registerCodeActions.ts

@@ -11,6 +11,7 @@ export const registerCodeActions = (context: vscode.ExtensionContext) => {
 	registerCodeAction(context, "fixCode", "FIX")
 	registerCodeAction(context, "improveCode", "IMPROVE")
 	registerCodeAction(context, "addToContext", "ADD_TO_CONTEXT")
+	registerCodeAction(context, "addToContextAndFocus", "ADD_TO_CONTEXT") // kilocode_change
 }
 
 const registerCodeAction = (context: vscode.ExtensionContext, command: CodeActionId, promptType: CodeActionName) => {

+ 33 - 0
src/core/webview/ClineProvider.ts

@@ -694,6 +694,39 @@ export class ClineProvider
 			return
 		}
 
+		//kilocode_change start
+		if (command === "addToContextAndFocus") {
+			let messageText = prompt
+
+			const editor = vscode.window.activeTextEditor
+			if (editor) {
+				const fullContent = editor.document.getText()
+				const filePath = params.filePath as string
+
+				messageText = `
+For context, we are working within this file:
+
+'${filePath}' (see below for file content)
+<file_content path="${filePath}">
+${fullContent}
+</file_content>
+
+Heed this prompt:
+
+${prompt}
+`
+			}
+
+			await visibleProvider.postMessageToWebview({
+				type: "invoke",
+				invoke: "setChatBoxMessage",
+				text: messageText,
+			})
+			await vscode.commands.executeCommand("kilo-code.focusChatInput")
+			return
+		}
+		// kilocode_change end
+
 		await visibleProvider.createTask(prompt)
 	}
 

+ 0 - 1
src/i18n/locales/ar/kilocode.json

@@ -102,7 +102,6 @@
 			"cancelSuggestions": "إلغاء التعديلات المقترحة",
 			"applyCurrentSuggestion": "تطبيق التعديل المقترح الحالي",
 			"applyAllSuggestions": "تطبيق جميع التعديلات المقترحة",
-			"promptCodeSuggestion": "مهمة سريعة",
 			"category": "Kilo Code"
 		},
 		"codeAction": {

+ 0 - 1
src/i18n/locales/ca/kilocode.json

@@ -98,7 +98,6 @@
 			"cancelSuggestions": "Cancel·lar Edicions Suggerides",
 			"applyCurrentSuggestion": "Aplicar Edició Suggerida Actual",
 			"applyAllSuggestions": "Aplicar Totes les Edicions Suggerides",
-			"promptCodeSuggestion": "Tasca Ràpida",
 			"category": "Kilo Code"
 		},
 		"codeAction": {

+ 0 - 1
src/i18n/locales/cs/kilocode.json

@@ -104,7 +104,6 @@
 			"cancelSuggestions": "Zrušit navrhované úpravy",
 			"applyCurrentSuggestion": "Použít aktuální navrhovanou úpravu",
 			"applyAllSuggestions": "Použít všechny navrhované úpravy",
-			"promptCodeSuggestion": "Rychlý úkol",
 			"category": "Kilo Code"
 		},
 		"codeAction": {

+ 0 - 1
src/i18n/locales/de/kilocode.json

@@ -98,7 +98,6 @@
 			"cancelSuggestions": "Bearbeitungsvorschläge abbrechen",
 			"applyCurrentSuggestion": "Aktuellen Bearbeitungsvorschlag anwenden",
 			"applyAllSuggestions": "Alle Bearbeitungsvorschläge anwenden",
-			"promptCodeSuggestion": "Schnellaufgabe",
 			"category": "Kilo Code"
 		},
 		"codeAction": {

+ 0 - 1
src/i18n/locales/en/kilocode.json

@@ -98,7 +98,6 @@
 			"cancelSuggestions": "Cancel Suggested Edits",
 			"applyCurrentSuggestion": "Apply Current Suggested Edit",
 			"applyAllSuggestions": "Apply All Suggested Edits",
-			"promptCodeSuggestion": "Quick Task",
 			"category": "Kilo Code"
 		},
 		"codeAction": {

+ 0 - 1
src/i18n/locales/es/kilocode.json

@@ -98,7 +98,6 @@
 			"cancelSuggestions": "Cancelar Ediciones Sugeridas",
 			"applyCurrentSuggestion": "Aplicar Edición Sugerida Actual",
 			"applyAllSuggestions": "Aplicar Todas las Ediciones Sugeridas",
-			"promptCodeSuggestion": "Tarea Rápida",
 			"category": "Kilo Code"
 		},
 		"codeAction": {

+ 0 - 1
src/i18n/locales/fr/kilocode.json

@@ -98,7 +98,6 @@
 			"cancelSuggestions": "Annuler les Modifications Suggérées",
 			"applyCurrentSuggestion": "Appliquer la Modification Suggérée Actuelle",
 			"applyAllSuggestions": "Appliquer Toutes les Modifications Suggérées",
-			"promptCodeSuggestion": "Tâche Rapide",
 			"category": "Kilo Code"
 		},
 		"codeAction": {

+ 0 - 1
src/i18n/locales/hi/kilocode.json

@@ -104,7 +104,6 @@
 			"cancelSuggestions": "सुझाए गए संपादन रद्द करें",
 			"applyCurrentSuggestion": "वर्तमान सुझाए गए संपादन लागू करें",
 			"applyAllSuggestions": "सभी सुझाए गए संपादन लागू करें",
-			"promptCodeSuggestion": "त्वरित कार्य",
 			"category": "Kilo Code"
 		},
 		"codeAction": {

+ 0 - 1
src/i18n/locales/id/kilocode.json

@@ -98,7 +98,6 @@
 			"cancelSuggestions": "Batalkan Suntingan yang Disarankan",
 			"applyCurrentSuggestion": "Terapkan Suntingan yang Disarankan Saat Ini",
 			"applyAllSuggestions": "Terapkan Semua Suntingan yang Disarankan",
-			"promptCodeSuggestion": "Tugas Cepat",
 			"category": "Kilo Code"
 		},
 		"codeAction": {

+ 0 - 1
src/i18n/locales/it/kilocode.json

@@ -98,7 +98,6 @@
 			"cancelSuggestions": "Annulla Modifiche Suggerite",
 			"applyCurrentSuggestion": "Applica Modifica Suggerita Corrente",
 			"applyAllSuggestions": "Applica Tutte le Modifiche Suggerite",
-			"promptCodeSuggestion": "Attività Rapida",
 			"category": "Kilo Code"
 		},
 		"codeAction": {

+ 0 - 1
src/i18n/locales/ja/kilocode.json

@@ -98,7 +98,6 @@
 			"cancelSuggestions": "編集提案をキャンセル",
 			"applyCurrentSuggestion": "現在の編集提案を適用",
 			"applyAllSuggestions": "すべての編集提案を適用",
-			"promptCodeSuggestion": "クイックタスク",
 			"category": "Kilo Code"
 		},
 		"codeAction": {

+ 0 - 1
src/i18n/locales/ko/kilocode.json

@@ -98,7 +98,6 @@
 			"cancelSuggestions": "제안된 편집 취소",
 			"applyCurrentSuggestion": "현재 제안된 편집 적용",
 			"applyAllSuggestions": "모든 제안된 편집 적용",
-			"promptCodeSuggestion": "빠른 작업",
 			"category": "Kilo Code"
 		},
 		"codeAction": {

+ 0 - 1
src/i18n/locales/nl/kilocode.json

@@ -98,7 +98,6 @@
 			"cancelSuggestions": "Voorgestelde Bewerkingen Annuleren",
 			"applyCurrentSuggestion": "Huidige Voorgestelde Bewerking Toepassen",
 			"applyAllSuggestions": "Alle Voorgestelde Bewerkingen Toepassen",
-			"promptCodeSuggestion": "Snelle Taak",
 			"category": "Kilo Code"
 		},
 		"codeAction": {

+ 0 - 1
src/i18n/locales/pl/kilocode.json

@@ -104,7 +104,6 @@
 			"cancelSuggestions": "Anuluj Sugerowane Edycje",
 			"applyCurrentSuggestion": "Zastosuj Bieżącą Sugerowaną Edycję",
 			"applyAllSuggestions": "Zastosuj Wszystkie Sugerowane Edycje",
-			"promptCodeSuggestion": "Szybkie Zadanie",
 			"category": "Kilo Code"
 		},
 		"codeAction": {

+ 0 - 1
src/i18n/locales/pt-BR/kilocode.json

@@ -98,7 +98,6 @@
 			"cancelSuggestions": "Cancelar Edições Sugeridas",
 			"applyCurrentSuggestion": "Aplicar Edição Sugerida Atual",
 			"applyAllSuggestions": "Aplicar Todas as Edições Sugeridas",
-			"promptCodeSuggestion": "Tarefa Rápida",
 			"category": "Kilo Code"
 		},
 		"codeAction": {

+ 0 - 1
src/i18n/locales/ru/kilocode.json

@@ -93,7 +93,6 @@
 			"cancelSuggestions": "Отменить Предлагаемые Правки",
 			"applyCurrentSuggestion": "Применить Текущую Предлагаемую Правку",
 			"applyAllSuggestions": "Применить Все Предлагаемые Правки",
-			"promptCodeSuggestion": "Быстрая Задача",
 			"category": "Kilo Code"
 		},
 		"codeAction": {

+ 0 - 1
src/i18n/locales/th/kilocode.json

@@ -104,7 +104,6 @@
 			"cancelSuggestions": "ยกเลิกการแก้ไขที่แนะนำ",
 			"applyCurrentSuggestion": "ใช้การแก้ไขที่แนะนำปัจจุบัน",
 			"applyAllSuggestions": "ใช้การแก้ไขที่แนะนำทั้งหมด",
-			"promptCodeSuggestion": "งานด่วน",
 			"category": "Kilo Code"
 		},
 		"codeAction": {

+ 0 - 1
src/i18n/locales/tr/kilocode.json

@@ -98,7 +98,6 @@
 			"cancelSuggestions": "Önerilen Düzenlemeleri İptal Et",
 			"applyCurrentSuggestion": "Mevcut Önerilen Düzenlemeyi Uygula",
 			"applyAllSuggestions": "Tüm Önerilen Düzenlemeleri Uygula",
-			"promptCodeSuggestion": "Hızlı Görev",
 			"category": "Kilo Code"
 		},
 		"codeAction": {

+ 0 - 1
src/i18n/locales/uk/kilocode.json

@@ -98,7 +98,6 @@
 			"cancelSuggestions": "Скасувати Запропоновані Правки",
 			"applyCurrentSuggestion": "Застосувати Поточну Запропоновану Правку",
 			"applyAllSuggestions": "Застосувати Всі Запропоновані Правки",
-			"promptCodeSuggestion": "Швидке Завдання",
 			"category": "Kilo Code"
 		},
 		"codeAction": {

+ 0 - 1
src/i18n/locales/vi/kilocode.json

@@ -98,7 +98,6 @@
 			"cancelSuggestions": "Hủy Các Chỉnh Sửa Được Đề Xuất",
 			"applyCurrentSuggestion": "Áp Dụng Chỉnh Sửa Được Đề Xuất Hiện Tại",
 			"applyAllSuggestions": "Áp Dụng Tất Cả Các Chỉnh Sửa Được Đề Xuất",
-			"promptCodeSuggestion": "Tác Vụ Nhanh",
 			"category": "Kilo Code"
 		},
 		"codeAction": {

+ 0 - 1
src/i18n/locales/zh-CN/kilocode.json

@@ -104,7 +104,6 @@
 			"cancelSuggestions": "取消建议编辑",
 			"applyCurrentSuggestion": "应用当前建议编辑",
 			"applyAllSuggestions": "应用所有建议编辑",
-			"promptCodeSuggestion": "快速任务",
 			"category": "Kilo Code"
 		},
 		"codeAction": {

+ 0 - 1
src/i18n/locales/zh-TW/kilocode.json

@@ -98,7 +98,6 @@
 			"cancelSuggestions": "取消建議編輯",
 			"applyCurrentSuggestion": "套用目前建議編輯",
 			"applyAllSuggestions": "套用所有建議編輯",
-			"promptCodeSuggestion": "快速工作",
 			"category": "Kilo Code"
 		},
 		"codeAction": {

+ 19 - 17
src/package.json

@@ -203,6 +203,11 @@
 				"title": "%command.addToContext.title%",
 				"category": "%configuration.title%"
 			},
+			{
+				"command": "kilo-code.addToContextAndFocus",
+				"title": "Add to Context and Focus",
+				"category": "%configuration.title%"
+			},
 			{
 				"command": "kilo-code.newTask",
 				"title": "%command.newTask.title%",
@@ -278,11 +283,6 @@
 				"title": "%ghost.commands.applyAllSuggestions%",
 				"category": "%configuration.title%"
 			},
-			{
-				"command": "kilo-code.ghost.promptCodeSuggestion",
-				"title": "%ghost.commands.promptCodeSuggestion%",
-				"category": "%configuration.title%"
-			},
 			{
 				"command": "kilo-code.ghost.goToNextSuggestion",
 				"title": "%ghost.commands.goToNextSuggestion%",
@@ -459,12 +459,6 @@
 				"key": "escape",
 				"when": "editorTextFocus && !editorTabMovesFocus && !inSnippetMode && kilocode.ghost.hasSuggestions"
 			},
-			{
-				"command": "kilo-code.ghost.promptCodeSuggestion",
-				"key": "ctrl+i",
-				"mac": "cmd+i",
-				"when": "editorTextFocus && !editorTabMovesFocus && !inSnippetMode && kilocode.ghost.enableQuickInlineTaskKeybinding && !github.copilot.completions.enabled"
-			},
 			{
 				"command": "kilo-code.ghost.generateSuggestions",
 				"key": "ctrl+l",
@@ -477,12 +471,6 @@
 				"mac": "cmd+l",
 				"when": "editorTextFocus && !editorTabMovesFocus && !inSnippetMode && kilocode.ghost.enableSmartInlineTaskKeybinding && github.copilot.completions.enabled"
 			},
-			{
-				"command": "kilo-code.ghost.showIncompatibilityExtensionPopup",
-				"key": "ctrl+i",
-				"mac": "cmd+i",
-				"when": "editorTextFocus && !editorTabMovesFocus && !inSnippetMode && kilocode.ghost.enableQuickInlineTaskKeybinding && github.copilot.completions.enabled"
-			},
 			{
 				"command": "kilo-code.generateTerminalCommand",
 				"key": "ctrl+shift+g",
@@ -496,6 +484,20 @@
 				"linux": "ctrl+y",
 				"when": "editorTextFocus && editorHasSelection"
 			},
+			{
+				"command": "kilo-code.addToContextAndFocus",
+				"key": "ctrl+i",
+				"mac": "cmd+i",
+				"win": "ctrl+i",
+				"linux": "ctrl+i",
+				"when": "editorTextFocus && !github.copilot.completions.enabled && kilocode.ghost.enableQuickInlineTaskKeybinding"
+			},
+			{
+				"command": "kilo-code.ghost.showIncompatibilityExtensionPopup",
+				"key": "ctrl+i",
+				"mac": "cmd+i",
+				"when": "editorTextFocus && github.copilot.completions.enabled && kilocode.ghost.enableQuickInlineTaskKeybinding"
+			},
 			{
 				"command": "kilo-code.toggleAutoApprove",
 				"key": "cmd+alt+a",

+ 0 - 1
src/package.nls.ar.json

@@ -53,7 +53,6 @@
 	"ghost.commands.cancelSuggestions": "إلغاء التعديلات المقترحة",
 	"ghost.commands.applyCurrentSuggestion": "تطبيق التعديل المقترح الحالي",
 	"ghost.commands.applyAllSuggestions": "تطبيق جميع التعديلات المقترحة",
-	"ghost.commands.promptCodeSuggestion": "مهمة سريعة",
 	"ghost.commands.goToNextSuggestion": "انتقل إلى الاقتراح التالي",
 	"ghost.commands.goToPreviousSuggestion": "انتقل إلى الاقتراح السابق"
 }

+ 0 - 1
src/package.nls.ca.json

@@ -53,7 +53,6 @@
 	"ghost.commands.cancelSuggestions": "Cancel·lar Edicions Suggerides",
 	"ghost.commands.applyCurrentSuggestion": "Aplicar Edició Suggerida Actual",
 	"ghost.commands.applyAllSuggestions": "Aplicar Totes les Edicions Suggerides",
-	"ghost.commands.promptCodeSuggestion": "Tasca Ràpida",
 	"ghost.commands.goToNextSuggestion": "Anar al Suggeriment Següent",
 	"ghost.commands.goToPreviousSuggestion": "Anar al Suggeriment Anterior"
 }

+ 0 - 1
src/package.nls.cs.json

@@ -53,7 +53,6 @@
 	"ghost.commands.cancelSuggestions": "Zrušit Navrhované Úpravy",
 	"ghost.commands.applyCurrentSuggestion": "Použít Aktuální Navrženou Úpravu",
 	"ghost.commands.applyAllSuggestions": "Použít Všechny Navrhované Úpravy",
-	"ghost.commands.promptCodeSuggestion": "Rychlý Úkol",
 	"ghost.commands.goToNextSuggestion": "Přejít na Další Návrh",
 	"ghost.commands.goToPreviousSuggestion": "Přejít na Předchozí Návrh"
 }

+ 0 - 1
src/package.nls.de.json

@@ -53,7 +53,6 @@
 	"ghost.commands.cancelSuggestions": "Vorgeschlagene Bearbeitungen Abbrechen",
 	"ghost.commands.applyCurrentSuggestion": "Aktuelle Vorgeschlagene Bearbeitung Anwenden",
 	"ghost.commands.applyAllSuggestions": "Alle Vorgeschlagenen Bearbeitungen Anwenden",
-	"ghost.commands.promptCodeSuggestion": "Schnelle Aufgabe",
 	"ghost.commands.goToNextSuggestion": "Zur Nächsten Vorgeschlagenen Bearbeitung",
 	"ghost.commands.goToPreviousSuggestion": "Zur Vorherigen Vorgeschlagenen Bearbeitung"
 }

+ 0 - 1
src/package.nls.es.json

@@ -53,7 +53,6 @@
 	"ghost.commands.cancelSuggestions": "Cancelar Ediciones Sugeridas",
 	"ghost.commands.applyCurrentSuggestion": "Aplicar Edición Sugerida Actual",
 	"ghost.commands.applyAllSuggestions": "Aplicar Todas las Ediciones Sugeridas",
-	"ghost.commands.promptCodeSuggestion": "Tarea Rápida",
 	"ghost.commands.goToNextSuggestion": "Ir a la Siguiente Sugerencia",
 	"ghost.commands.goToPreviousSuggestion": "Ir a la Sugerencia Anterior"
 }

+ 0 - 1
src/package.nls.fr.json

@@ -53,7 +53,6 @@
 	"ghost.commands.cancelSuggestions": "Annuler les Modifications Suggérées",
 	"ghost.commands.applyCurrentSuggestion": "Appliquer la Modification Suggérée Actuelle",
 	"ghost.commands.applyAllSuggestions": "Appliquer Toutes les Modifications Suggérées",
-	"ghost.commands.promptCodeSuggestion": "Tâche Rapide",
 	"ghost.commands.goToNextSuggestion": "Aller à la Suggestion Suivante",
 	"ghost.commands.goToPreviousSuggestion": "Aller à la Suggestion Précédente"
 }

+ 0 - 1
src/package.nls.hi.json

@@ -53,7 +53,6 @@
 	"ghost.commands.cancelSuggestions": "सुझाए गए संपादन रद्द करें",
 	"ghost.commands.applyCurrentSuggestion": "वर्तमान सुझाया गया संपादन लागू करें",
 	"ghost.commands.applyAllSuggestions": "सभी सुझाए गए संपादन लागू करें",
-	"ghost.commands.promptCodeSuggestion": "त्वरित कार्य",
 	"ghost.commands.goToNextSuggestion": "अगले सुझाव पर जाएं",
 	"ghost.commands.goToPreviousSuggestion": "पिछले सुझाव पर जाएं"
 }

+ 0 - 1
src/package.nls.id.json

@@ -53,7 +53,6 @@
 	"ghost.commands.cancelSuggestions": "Batalkan Saran Pengeditan",
 	"ghost.commands.applyCurrentSuggestion": "Terapkan Saran Pengeditan Saat Ini",
 	"ghost.commands.applyAllSuggestions": "Terapkan Semua Saran Pengeditan",
-	"ghost.commands.promptCodeSuggestion": "Tugas Cepat",
 	"ghost.commands.goToNextSuggestion": "Pergi ke Saran Berikutnya",
 	"ghost.commands.goToPreviousSuggestion": "Pergi ke Saran Sebelumnya"
 }

+ 0 - 1
src/package.nls.it.json

@@ -53,7 +53,6 @@
 	"ghost.commands.cancelSuggestions": "Annulla Modifiche Suggerite",
 	"ghost.commands.applyCurrentSuggestion": "Applica Modifica Suggerita Corrente",
 	"ghost.commands.applyAllSuggestions": "Applica Tutte le Modifiche Suggerite",
-	"ghost.commands.promptCodeSuggestion": "Attività Rapida",
 	"ghost.commands.goToNextSuggestion": "Vai alla Prossima Suggerimento",
 	"ghost.commands.goToPreviousSuggestion": "Vai al Suggerimento Precedente"
 }

+ 0 - 1
src/package.nls.ja.json

@@ -38,7 +38,6 @@
 	"ghost.commands.cancelSuggestions": "提案された編集をキャンセル",
 	"ghost.commands.applyCurrentSuggestion": "現在の提案された編集を適用",
 	"ghost.commands.applyAllSuggestions": "すべての提案された編集を適用",
-	"ghost.commands.promptCodeSuggestion": "クイックタスク",
 	"ghost.commands.goToNextSuggestion": "次の提案に移動",
 	"ghost.commands.goToPreviousSuggestion": "前の提案に移動",
 	"commands.allowedCommands.description": "'常に実行操作を承認する'が有効な場合に自動実行できるコマンド",

+ 1 - 1
src/package.nls.json

@@ -53,7 +53,7 @@
 	"ghost.commands.cancelSuggestions": "Cancel Suggested Edits",
 	"ghost.commands.applyCurrentSuggestion": "Apply Current Suggested Edit",
 	"ghost.commands.applyAllSuggestions": "Apply All Suggested Edits",
-	"ghost.commands.promptCodeSuggestion": "Quick Task",
+
 	"ghost.commands.goToNextSuggestion": "Go To Next Suggestion",
 	"ghost.commands.goToPreviousSuggestion": "Go To Previous Suggestion"
 }

+ 0 - 1
src/package.nls.ko.json

@@ -53,7 +53,6 @@
 	"ghost.commands.cancelSuggestions": "편집 제안 취소",
 	"ghost.commands.applyCurrentSuggestion": "현재 편집 제안 적용",
 	"ghost.commands.applyAllSuggestions": "모든 편집 제안 적용",
-	"ghost.commands.promptCodeSuggestion": "빠른 작업",
 	"ghost.commands.goToNextSuggestion": "다음 제안으로 이동",
 	"ghost.commands.goToPreviousSuggestion": "이전 제안으로 이동"
 }

+ 0 - 1
src/package.nls.nl.json

@@ -53,7 +53,6 @@
 	"ghost.commands.cancelSuggestions": "Bewerkingssuggesties Annuleren",
 	"ghost.commands.applyCurrentSuggestion": "Huidige Bewerkingssuggestie Toepassen",
 	"ghost.commands.applyAllSuggestions": "Alle Bewerkingssuggesties Toepassen",
-	"ghost.commands.promptCodeSuggestion": "Snelle Taak",
 	"ghost.commands.goToNextSuggestion": "Ga Naar Volgende Suggestie",
 	"ghost.commands.goToPreviousSuggestion": "Ga Naar Vorige Suggestie"
 }

+ 0 - 1
src/package.nls.pl.json

@@ -53,7 +53,6 @@
 	"ghost.commands.cancelSuggestions": "Anuluj Sugestie Edycji",
 	"ghost.commands.applyCurrentSuggestion": "Zastosuj Bieżącą Sugestię Edycji",
 	"ghost.commands.applyAllSuggestions": "Zastosuj Wszystkie Sugestie Edycji",
-	"ghost.commands.promptCodeSuggestion": "Szybkie Zadanie",
 	"ghost.commands.goToNextSuggestion": "Przejdź do Następnej Sugestii",
 	"ghost.commands.goToPreviousSuggestion": "Przejdź do Poprzedniej Sugestii"
 }

+ 0 - 1
src/package.nls.pt-BR.json

@@ -53,7 +53,6 @@
 	"ghost.commands.cancelSuggestions": "Cancelar Sugestões de Edição",
 	"ghost.commands.applyCurrentSuggestion": "Aplicar Sugestão de Edição Atual",
 	"ghost.commands.applyAllSuggestions": "Aplicar Todas as Sugestões de Edição",
-	"ghost.commands.promptCodeSuggestion": "Tarefa Rápida",
 	"ghost.commands.goToNextSuggestion": "Ir Para a Próxima Sugestão",
 	"ghost.commands.goToPreviousSuggestion": "Ir Para a Sugestão Anterior"
 }

+ 0 - 1
src/package.nls.ru.json

@@ -53,7 +53,6 @@
 	"ghost.commands.cancelSuggestions": "Отменить Предлагаемые Правки",
 	"ghost.commands.applyCurrentSuggestion": "Применить Текущую Предлагаемую Правку",
 	"ghost.commands.applyAllSuggestions": "Применить Все Предлагаемые Правки",
-	"ghost.commands.promptCodeSuggestion": "Быстрая Задача",
 	"ghost.commands.goToNextSuggestion": "Перейти к Следующему Предложению",
 	"ghost.commands.goToPreviousSuggestion": "Перейти к Предыдущему Предложению"
 }

+ 0 - 1
src/package.nls.th.json

@@ -53,7 +53,6 @@
 	"ghost.commands.cancelSuggestions": "ยกเลิกข้อเสนอแนะการแก้ไข",
 	"ghost.commands.applyCurrentSuggestion": "ใช้ข้อเสนอแนะการแก้ไขปัจจุบัน",
 	"ghost.commands.applyAllSuggestions": "ใช้ข้อเสนอแนะการแก้ไขทั้งหมด",
-	"ghost.commands.promptCodeSuggestion": "งานด่วน",
 	"ghost.commands.goToNextSuggestion": "ไปยังข้อเสนอแนะถัดไป",
 	"ghost.commands.goToPreviousSuggestion": "ไปยังข้อเสนอแนะก่อนหน้า"
 }

+ 0 - 1
src/package.nls.tr.json

@@ -53,7 +53,6 @@
 	"ghost.commands.cancelSuggestions": "Düzenleme Önerilerini İptal Et",
 	"ghost.commands.applyCurrentSuggestion": "Mevcut Düzenleme Önerisini Uygula",
 	"ghost.commands.applyAllSuggestions": "Tüm Düzenleme Önerilerini Uygula",
-	"ghost.commands.promptCodeSuggestion": "Hızlı Görev",
 	"ghost.commands.goToNextSuggestion": "Sonraki Öneriye Git",
 	"ghost.commands.goToPreviousSuggestion": "Önceki Öneriye Git"
 }

+ 0 - 1
src/package.nls.uk.json

@@ -53,7 +53,6 @@
 	"ghost.commands.cancelSuggestions": "Скасувати Пропозиції Редагування",
 	"ghost.commands.applyCurrentSuggestion": "Застосувати Поточну Пропозицію Редагування",
 	"ghost.commands.applyAllSuggestions": "Застосувати Всі Пропозиції Редагування",
-	"ghost.commands.promptCodeSuggestion": "Швидке Завдання",
 	"ghost.commands.goToNextSuggestion": "Перейти до Наступної Пропозиції",
 	"ghost.commands.goToPreviousSuggestion": "Перейти до Попередньої Пропозиції"
 }

+ 0 - 1
src/package.nls.vi.json

@@ -53,7 +53,6 @@
 	"ghost.commands.cancelSuggestions": "Hủy Gợi Ý Chỉnh Sửa",
 	"ghost.commands.applyCurrentSuggestion": "Áp Dụng Gợi Ý Chỉnh Sửa Hiện Tại",
 	"ghost.commands.applyAllSuggestions": "Áp Dụng Tất Cả Gợi Ý Chỉnh Sửa",
-	"ghost.commands.promptCodeSuggestion": "Tác Vụ Nhanh",
 	"ghost.commands.goToNextSuggestion": "Đi Đến Gợi Ý Tiếp Theo",
 	"ghost.commands.goToPreviousSuggestion": "Đi Đến Gợi Ý Trước Đó"
 }

+ 0 - 1
src/package.nls.zh-CN.json

@@ -53,7 +53,6 @@
 	"ghost.commands.cancelSuggestions": "取消建议编辑",
 	"ghost.commands.applyCurrentSuggestion": "应用当前建议编辑",
 	"ghost.commands.applyAllSuggestions": "应用所有建议编辑",
-	"ghost.commands.promptCodeSuggestion": "快速任务",
 	"ghost.commands.goToNextSuggestion": "转到下一个建议",
 	"ghost.commands.goToPreviousSuggestion": "转到上一个建议"
 }

+ 0 - 1
src/package.nls.zh-TW.json

@@ -53,7 +53,6 @@
 	"ghost.commands.cancelSuggestions": "取消編輯建議",
 	"ghost.commands.applyCurrentSuggestion": "套用目前編輯建議",
 	"ghost.commands.applyAllSuggestions": "套用所有編輯建議",
-	"ghost.commands.promptCodeSuggestion": "快速任務",
 	"ghost.commands.goToNextSuggestion": "前往下一個建議",
 	"ghost.commands.goToPreviousSuggestion": "前往上一個建議"
 }

+ 0 - 28
src/services/ghost/GhostProvider.ts

@@ -229,34 +229,6 @@ export class GhostProvider {
 		await this.render()
 	}
 
-	public async promptCodeSuggestion() {
-		if (!this.enabled) {
-			return
-		}
-
-		this.taskId = crypto.randomUUID()
-		TelemetryService.instance.captureEvent(TelemetryEventName.INLINE_ASSIST_QUICK_TASK, {
-			taskId: this.taskId,
-		})
-
-		const userInput = await vscode.window.showInputBox({
-			prompt: t("kilocode:ghost.input.title"),
-			placeHolder: t("kilocode:ghost.input.placeholder"),
-		})
-		if (!userInput) {
-			return
-		}
-
-		const editor = vscode.window.activeTextEditor
-		if (!editor) {
-			return
-		}
-
-		const document = editor.document
-		const range = editor.selection.isEmpty ? undefined : editor.selection
-		await this.provideCodeSuggestions({ document, range, userInput })
-	}
-
 	private async hasAccess(document: vscode.TextDocument) {
 		return document.isUntitled || (await this.initializeIgnoreController()).validateAccess(document.fileName)
 	}

+ 0 - 5
src/services/ghost/index.ts

@@ -38,11 +38,6 @@ export const registerGhostProvider = (context: vscode.ExtensionContext, cline: C
 			ghost.applySelectedSuggestions()
 		}),
 	)
-	context.subscriptions.push(
-		vscode.commands.registerCommand("kilo-code.ghost.promptCodeSuggestion", async () => {
-			await ghost.promptCodeSuggestion()
-		}),
-	)
 	context.subscriptions.push(
 		vscode.commands.registerCommand("kilo-code.ghost.goToNextSuggestion", async () => {
 			await ghost.selectNextSuggestion()

+ 3 - 5
webview-ui/src/components/kilocode/settings/GhostServiceSettings.tsx

@@ -28,7 +28,7 @@ export const GhostServiceSettingsView = ({
 	const { t } = useAppTranslation()
 	const { enableAutoTrigger, autoTriggerDelay, enableQuickInlineTaskKeybinding, enableSmartInlineTaskKeybinding } =
 		ghostServiceSettings || {}
-	const keybindings = useKeybindings(["kilo-code.ghost.promptCodeSuggestion", "kilo-code.ghost.generateSuggestions"])
+	const keybindings = useKeybindings(["kilo-code.addToContextAndFocus", "kilo-code.ghost.generateSuggestions"])
 
 	const normalizedDelay = normalizeAutoTriggerDelay(autoTriggerDelay)
 	const currentDelayIndex = DELAY_VALUES.indexOf(normalizedDelay)
@@ -125,7 +125,7 @@ export const GhostServiceSettingsView = ({
 							onChange={onEnableQuickInlineTaskKeybindingChange}>
 							<span className="font-medium">
 								{t("kilocode:ghost.settings.enableQuickInlineTaskKeybinding.label", {
-									keybinding: keybindings["kilo-code.ghost.promptCodeSuggestion"],
+									keybinding: keybindings["kilo-code.addToContextAndFocus"],
 								})}
 							</span>
 						</ControlledCheckbox>
@@ -136,9 +136,7 @@ export const GhostServiceSettingsView = ({
 									DocsLink: (
 										<a
 											href="#"
-											onClick={() =>
-												openGlobalKeybindings("kilo-code.ghost.promptCodeSuggestion")
-											}
+											onClick={() => openGlobalKeybindings("kilo-code.addToContextAndFocus")}
 											className="text-[var(--vscode-list-highlightForeground)] hover:underline cursor-pointer"></a>
 									),
 								}}