Repository navigation
Commit 3a3ced0
committed
Simplify prompt type checks using direct prompt type property
- when copying prompt while in 'api' mode, the prompt type is not choosen based on 'api' mode, but 'web' mode.
└── apps
└── editor
└── src
└── views
└── prompt
├── backend
│ ├── message-handlers
│ │ └── handle-copy-prompt.ts
│ └── prompt-view-provider.ts
└── frontend
├── Main
│ ├── Main.tsx
│ ├── MainView
│ │ ├── MainView.module.scss
│ │ ├── MainView.tsx
│ │ ├── components
│ │ │ └── Header
│ │ │ ├── Header.module.scss
│ │ │ ├── Header.tsx
│ │ │ ├── hooks
│ │ │ │ ├── use-alternate-prompt-type.ts
│ │ │ │ └── use-keyboard-shortcuts.ts
│ │ │ └── index.ts
│ │ ├── hooks
│ │ │ ├── use-invocation-counts.ts
│ │ │ ├── use-last-choice-tooltip.ts
│ │ │ └── use-re-render-on-interval.ts
│ │ ├── index.ts
│ │ └── prompt-type-labels.ts
│ └── index.ts
├── Prompt.tsx
└── hooks
└── use-prompt
├── hooks
│ └── use-instructions.ts
├── index.ts
└── use-prompt.ts1 parent 4ffbfab commit 3a3ced0
1 file changed
Lines changed: 4 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 33 | + | |
38 | 34 | | |
39 | 35 | | |
40 | 36 | | |
| |||
100 | 96 | | |
101 | 97 | | |
102 | 98 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
| 99 | + | |
107 | 100 | | |
108 | 101 | | |
109 | 102 | | |
| |||
112 | 105 | | |
113 | 106 | | |
114 | 107 | | |
115 | | - | |
116 | | - | |
| 108 | + | |
117 | 109 | | |
118 | 110 | | |
119 | 111 | | |
| |||
129 | 121 | | |
130 | 122 | | |
131 | 123 | | |
132 | | - | |
| 124 | + | |
133 | 125 | | |
134 | 126 | | |
135 | 127 | | |
| |||
0 commit comments