Repository navigation
Commit cb8e571
committed
Refactor context restoration utilities into a dedicated feature module and reorganize commands
- 'context restoration' should be organized like commit message generation - primarily in 'features'
- fix imports/exports in `apps/editor/src/views/prompt/backend/utils/symbols/saved-context/replace-saved-context-symbol.ts``apps/editor/src/views/prompt/backend/message-handlers/handle-hash-sign-quick-pick/symbols/saved-context-symbol.ts` `apps/editor/src/commands/index.ts`
└── apps
└── editor
└── src
├── commands
│ ├── generate-commit-message-command
│ │ ├── actions
│ │ │ ├── get-prompt-data.ts
│ │ │ └── run-generate-action.ts
│ │ ├── generate-commit-message-command.ts
│ │ └── index.ts
│ ├── index.ts
│ ├── restore-file-selection-command
│ │ ├── actions
│ │ │ ├── restore-from-json-file.ts
│ │ │ └── restore-from-workspace-state.ts
│ │ ├── index.ts
│ │ └── restore-file-selection-command.ts
│ └── save-file-selection-command
│ ├── actions
│ │ ├── save-to-json-file.ts
│ │ └── save-to-workspace-state.ts
│ ├── index.ts
│ └── save-file-selection-command.ts
├── features
│ ├── commit-messages
│ │ ├── index.ts
│ │ └── utils
│ │ ├── build-commit-message-prompt.ts
│ │ ├── generate-commit-message-with-api.ts
│ │ ├── get-commit-message-config.ts
│ │ └── strip-wrapping-quotes.ts
│ └── context-restoration
│ ├── index.ts
│ └── utils
│ ├── ask-for-new-context-name.ts
│ ├── context-file-utils.ts
│ ├── create-context-description.ts
│ ├── file-contexts.ts
│ ├── global-storage-utils.ts
│ ├── path-utils.ts
│ ├── resolve-context-paths.ts
│ ├── resolve-glob-patterns.ts
│ ├── resolve-paths.ts
│ ├── select-context-paths.ts
│ └── source-selector.ts
└── views
└── prompt
└── backend
├── message-handlers
│ └── handle-hash-sign-quick-pick
│ └── symbols
│ └── saved-context-symbol.ts
└── utils
└── symbols
└── saved-context
└── replace-saved-context-symbol.ts1 parent 12b496a commit cb8e571
23 files changed
Lines changed: 57 additions & 38 deletions
File tree
- apps/editor/src
- commands
- restore-file-selection-command
- actions
- save-file-selection-command
- actions
- features/context-restoration
- utils
- views/prompt/backend
- message-handlers/handle-hash-sign-quick-pick/symbols
- utils/symbols/saved-context
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
| 19 | + | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | 8 | | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | | - | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | | - | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
17 | | - | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | | - | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments