Skip to content

Commit 6e1969f

Browse files
committed
Replace the clipboard commit message command with automatic handling of commit messages from chat responses
- remove command 'apply commit message from clipoard palette' and associated 'from clipboard' parsing - create a new internal command 'codeWebChat.internal.generateCommitMessageWithProvidedTextAndCommit', allow passing text:string in argument (source cotrol is not necessary). Use this text to prefill the input. - if response starts with "**Commit message:**", should use the rest of the response text for 'codeWebChat.internal.generateCommitMessageWithProvidedTextAndCommit' command invocation - when run with 'provided text' should not show back arrow on the input box └── apps └── editor ├── package.json ├── package.nls.bg.json ├── package.nls.cs.json ├── package.nls.de.json ├── package.nls.es.json ├── package.nls.fr.json ├── package.nls.hu.json ├── package.nls.it.json ├── package.nls.ja.json ├── package.nls.json ├── package.nls.ko.json ├── package.nls.pl.json ├── package.nls.pt-br.json ├── package.nls.ru.json ├── package.nls.tr.json ├── package.nls.zh-cn.json ├── package.nls.zh-tw.json └── src ├── commands │ ├── apply-response-command │ │ ├── apply-response-command.ts │ │ └── response-processor.ts │ ├── code-at-cursor-command │ │ ├── code-at-cursor-commands.ts │ │ └── utils │ │ └── perform-code-at-cursor.ts │ └── generate-commit-message-commands │ ├── actions │ │ ├── get-prompt-data.ts │ │ └── run-generate-action.ts │ ├── generate-commit-message-commands.ts │ ├── index.ts │ └── utils │ ├── build-commit-message-prompt.ts │ ├── generate-commit-message-with-api.ts │ ├── get-commit-message-config.ts │ └── strip-wrapping-quotes.ts ├── constants │ └── instructions.ts └── extension.ts
1 parent b38b089 commit 6e1969f

20 files changed

Lines changed: 49 additions & 59 deletions

‎apps/editor/package.json‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -322,11 +322,6 @@
322322
"category": "Code Web Chat",
323323
"icon": "$(sparkle)"
324324
},
325-
{
326-
"command": "codeWebChat.applyCommitMessageFromClipboardPalette",
327-
"title": "%codeWebChat.applyCommitMessageFromClipboardPalette.title%",
328-
"category": "Code Web Chat"
329-
},
330325
{
331326
"command": "codeWebChat.generateCommitMessageAndCommit",
332327
"title": "%codeWebChat.generateCommitMessageAndCommit.title%",

‎apps/editor/package.nls.bg.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"codeWebChat.createNewCheckpoint.title": "Създай нова контролна точка",
4040
"codeWebChat.settings.title": "Настройки",
4141
"codeWebChat.generateCommitMessage.title": "Генерирай commit съобщение с CWC",
42-
"codeWebChat.applyCommitMessageFromClipboardPalette.title": "Приложи commit съобщение от клипборда",
4342
"codeWebChat.generateCommitMessageAndCommit.title": "Потвърди промените",
4443
"codeWebChat.setRanges.title": "Задай диапазони...",
4544
"codeWebChat.searchFiles.title": "Търсене на файлове...",

‎apps/editor/package.nls.cs.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"codeWebChat.createNewCheckpoint.title": "Vytvořit nový kontrolní bod",
4040
"codeWebChat.settings.title": "Nastavení",
4141
"codeWebChat.generateCommitMessage.title": "Generovat zprávu commitu pomocí CWC",
42-
"codeWebChat.applyCommitMessageFromClipboardPalette.title": "Použít zprávu commitu ze schránky",
4342
"codeWebChat.generateCommitMessageAndCommit.title": "Potvrdit změny",
4443
"codeWebChat.setRanges.title": "Nastavit rozsahy...",
4544
"codeWebChat.searchFiles.title": "Hledat soubory...",

‎apps/editor/package.nls.de.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"codeWebChat.createNewCheckpoint.title": "Neuen Checkpoint erstellen",
4040
"codeWebChat.settings.title": "Einstellungen",
4141
"codeWebChat.generateCommitMessage.title": "Commit-Nachricht mit CWC generieren",
42-
"codeWebChat.applyCommitMessageFromClipboardPalette.title": "Commit-Nachricht aus Zwischenablage anwenden",
4342
"codeWebChat.generateCommitMessageAndCommit.title": "Änderungen committen",
4443
"codeWebChat.setRanges.title": "Bereiche festlegen...",
4544
"codeWebChat.searchFiles.title": "Dateien suchen...",

‎apps/editor/package.nls.es.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"codeWebChat.createNewCheckpoint.title": "Crear nuevo punto de control",
4040
"codeWebChat.settings.title": "Configuración",
4141
"codeWebChat.generateCommitMessage.title": "Generar mensaje de commit con CWC",
42-
"codeWebChat.applyCommitMessageFromClipboardPalette.title": "Aplicar mensaje de commit desde el portapapeles",
4342
"codeWebChat.generateCommitMessageAndCommit.title": "Hacer commit de los cambios",
4443
"codeWebChat.setRanges.title": "Establecer rangos...",
4544
"codeWebChat.searchFiles.title": "Buscar archivos...",

‎apps/editor/package.nls.fr.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"codeWebChat.createNewCheckpoint.title": "Créer un nouveau point de contrôle",
4040
"codeWebChat.settings.title": "Paramètres",
4141
"codeWebChat.generateCommitMessage.title": "Générer un message de commit avec CWC",
42-
"codeWebChat.applyCommitMessageFromClipboardPalette.title": "Appliquer le message de commit depuis le presse-papiers",
4342
"codeWebChat.generateCommitMessageAndCommit.title": "Valider les modifications",
4443
"codeWebChat.setRanges.title": "Définir les plages...",
4544
"codeWebChat.searchFiles.title": "Rechercher des fichiers...",

‎apps/editor/package.nls.hu.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"codeWebChat.createNewCheckpoint.title": "Új ellenőrzőpont létrehozása",
4040
"codeWebChat.settings.title": "Beállítások",
4141
"codeWebChat.generateCommitMessage.title": "Commit üzenet generálása CWC-vel",
42-
"codeWebChat.applyCommitMessageFromClipboardPalette.title": "Commit üzenet alkalmazása vágólapról",
4342
"codeWebChat.generateCommitMessageAndCommit.title": "Változások commitálása",
4443
"codeWebChat.setRanges.title": "Tartományok beállítása...",
4544
"codeWebChat.searchFiles.title": "Fájlok keresése...",

‎apps/editor/package.nls.it.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"codeWebChat.createNewCheckpoint.title": "Crea nuovo punto di controllo",
4040
"codeWebChat.settings.title": "Impostazioni",
4141
"codeWebChat.generateCommitMessage.title": "Genera messaggio di commit con CWC",
42-
"codeWebChat.applyCommitMessageFromClipboardPalette.title": "Applica messaggio di commit dagli appunti",
4342
"codeWebChat.generateCommitMessageAndCommit.title": "Esegui commit delle modifiche",
4443
"codeWebChat.setRanges.title": "Imposta intervalli...",
4544
"codeWebChat.searchFiles.title": "Cerca file...",

‎apps/editor/package.nls.ja.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"codeWebChat.createNewCheckpoint.title": "新しいチェックポイントを作成",
4040
"codeWebChat.settings.title": "設定",
4141
"codeWebChat.generateCommitMessage.title": "CWCでコミットメッセージを生成",
42-
"codeWebChat.applyCommitMessageFromClipboardPalette.title": "クリップボードからコミットメッセージを適用",
4342
"codeWebChat.generateCommitMessageAndCommit.title": "変更をコミット",
4443
"codeWebChat.setRanges.title": "範囲を設定...",
4544
"codeWebChat.searchFiles.title": "ファイルを検索...",

‎apps/editor/package.nls.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"codeWebChat.createNewCheckpoint.title": "Create New Checkpoint",
4040
"codeWebChat.settings.title": "Settings",
4141
"codeWebChat.generateCommitMessage.title": "Generate Commit Message with CWC",
42-
"codeWebChat.applyCommitMessageFromClipboardPalette.title": "Apply Commit Message from Clipboard",
4342
"codeWebChat.generateCommitMessageAndCommit.title": "Commit Changes",
4443
"codeWebChat.setRanges.title": "Set Ranges...",
4544
"codeWebChat.searchFiles.title": "Search Files...",

0 commit comments

Comments
 (0)