Repository navigation
Commit c19649b
committed
Add setting and prompt option to use context files in commit message generation
- below 'attach ascii tree of context' implement similar ask/always/never setting "Use context files" (useContextFilesInCommitMessagePrompt), desc: "Improved accuracy at higher token usage."
- place 'use context files' above 'attach ascii...'
- place 'commit message instructions' above 'use context files'
- translate in [Fragment]
- right after user selects files to stage, determine if there are any context files to be attached, if so respect 'use Context Files In Commit Message Prompt' setting
- change 'Attach X context files to the prompt?' to 'Should use context files to improve accuracy?'. options to: Use (desc e.g.: 20K tokens)/Skip (desc e.g.: 10K tokens).
- place 'skip' above 'use'. Skip should tell total token count, Use should tell additional token count,e.g "+10K"
- should remember last chosen use/skip
- rename 'last attach context files' to 'last use context files'
- allow 'go back' from 'commit message actions to the selector use/skip (when shown)
- add the missing close button to 'use/skip' quick pick
- cancelling api call should show list of configurations, not the initial use/skip quick pick
- change place holder 'choose how to proceed' to 'choose how to proceed with [x] tokens'
- rename 'select configuration to process X tokens' to 'select configuration'
- move [Fragment] to `apps/editor/src/i18n/translations/commands/search-files.ts`
├── .github
│ └── workflows
│ ├── deploy-vscode-extension.yml
│ └── deploy-website.yml
└── apps
└── editor
├── package.json
└── src
├── commands
│ └── 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
│ └── strip-wrapping-quotes.ts
├── constants
│ └── state-keys.ts
├── features
│ └── search-files
│ ├── search-modes
│ │ └── perform-intelligent-search-mode.ts
│ └── utils
│ ├── prompt-for-config.ts
│ ├── prompt-for-intelligent-search-results.ts
│ └── prompt-for-search-results.ts
├── i18n
│ └── translations
│ ├── commands
│ │ ├── generate-commit-message.ts
│ │ └── search-files.ts
│ ├── common.ts
│ └── views
│ └── settings
│ ├── handlers
│ │ ├── handle-create-template.ts
│ │ ├── handle-delete-model-provider.ts
│ │ ├── handle-delete-template.ts
│ │ ├── handle-pick-api-reasoning-effort.ts
│ │ ├── index.ts
│ │ ├── open-allow-patterns-settings.ts
│ │ ├── open-ignore-patterns-settings.ts
│ │ └── select-default-api-configuration.ts
│ └── index.ts
├── utils
│ ├── display-token-count.ts
│ └── git-repository-utils.ts
└── views
└── settings
├── backend
│ ├── message-handlers
│ │ ├── handle-get-attach-ascii-tree-of-context.ts
│ │ ├── handle-get-use-context-files-in-commit-message-prompt.ts
│ │ ├── handle-update-attach-ascii-tree-of-context.ts
│ │ ├── handle-update-use-context-files-in-commit-message-prompt.ts
│ │ └── index.ts
│ └── settings-view-provider.ts
├── frontend
│ ├── Home
│ │ ├── Home.tsx
│ │ └── sections
│ │ └── GeneralSection.tsx
│ ├── Settings.tsx
│ ├── hooks
│ │ └── use-settings.ts
│ └── i18n
│ └── translations
│ └── general.ts
└── types
└── messages.ts1 parent 34d693e commit c19649b
19 files changed
Lines changed: 907 additions & 350 deletions
File tree
- apps/editor
- src
- commands/generate-commit-message-commands
- actions
- utils
- constants
- features/search-files/utils
- i18n/translations
- commands
- views/settings
- backend
- message-handlers
- frontend
- Home
- sections
- hooks
- i18n/translations
- types
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
950 | 950 | | |
951 | 951 | | |
952 | 952 | | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
953 | 963 | | |
954 | 964 | | |
955 | 965 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| 22 | + | |
| 23 | + | |
19 | 24 | | |
20 | 25 | | |
21 | 26 | | |
22 | | - | |
| 27 | + | |
23 | 28 | | |
| 29 | + | |
24 | 30 | | |
25 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
26 | 35 | | |
27 | 36 | | |
28 | 37 | | |
| |||
107 | 116 | | |
108 | 117 | | |
109 | 118 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
115 | 290 | | |
116 | 291 | | |
117 | 292 | | |
118 | 293 | | |
119 | 294 | | |
120 | 295 | | |
121 | 296 | | |
122 | | - | |
| 297 | + | |
| 298 | + | |
123 | 299 | | |
124 | 300 | | |
0 commit comments