File tree Expand file tree Collapse file tree
views/panel/backend/message-handlers
packages/ui/src/components/editor/panel/ResponsePreview Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ export class ApiManager {
6868 this . panel_provider . send_message ( {
6969 command : 'SHOW_API_MANAGER_PROGRESS' ,
7070 id : request_id ,
71- title : 'Waiting...' ,
71+ title : 'Waiting for server ...' ,
7272 provider_name : params . provider_name ,
7373 model : params . model ,
7474 reasoning_effort : params . reasoning_effort
Original file line number Diff line number Diff line change @@ -186,6 +186,12 @@ const get_edit_context_config = async (params: {
186186 quick_pick . title = 'Configurations'
187187 quick_pick . placeholder = 'Select configuration'
188188 quick_pick . matchOnDescription = true
189+ quick_pick . buttons = [
190+ {
191+ iconPath : new vscode . ThemeIcon ( 'close' ) ,
192+ tooltip : 'Close'
193+ }
194+ ]
189195
190196 const recents = context . workspaceState . get < string [ ] > (
191197 RECENTLY_USED_EDIT_CONTEXT_CONFIG_IDS_STATE_KEY
@@ -209,6 +215,13 @@ const get_edit_context_config = async (params: {
209215 ( resolve ) => {
210216 let accepted = false
211217
218+ quick_pick . onDidTriggerButton ( ( button ) => {
219+ if ( button . tooltip == 'Close' ) {
220+ resolve ( undefined )
221+ quick_pick . hide ( )
222+ }
223+ } )
224+
212225 quick_pick . onDidAccept ( async ( ) => {
213226 accepted = true
214227 const selected = quick_pick . selectedItems [ 0 ]
Original file line number Diff line number Diff line change @@ -168,6 +168,12 @@ const get_prune_context_config = async (
168168 quick_pick . title = 'Configurations'
169169 quick_pick . placeholder = 'Select configuration'
170170 quick_pick . matchOnDescription = true
171+ quick_pick . buttons = [
172+ {
173+ iconPath : new vscode . ThemeIcon ( 'close' ) ,
174+ tooltip : 'Close'
175+ }
176+ ]
171177
172178 const recents = context . workspaceState . get < string [ ] > (
173179 RECENTLY_USED_PRUNE_CONTEXT_CONFIG_IDS_STATE_KEY
@@ -191,6 +197,13 @@ const get_prune_context_config = async (
191197 ( resolve ) => {
192198 let accepted = false
193199
200+ quick_pick . onDidTriggerButton ( ( button ) => {
201+ if ( button . tooltip == 'Close' ) {
202+ resolve ( undefined )
203+ quick_pick . hide ( )
204+ }
205+ } )
206+
194207 quick_pick . onDidAccept ( async ( ) => {
195208 accepted = true
196209 const selected = quick_pick . selectedItems [ 0 ]
Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ export const ResponsePreview: FC<Props> = (props) => {
152152 ] )
153153
154154 const get_status_text = ( file : FileInPreview ) => {
155- if ( file . apply_status == 'waiting' ) return 'Waiting...'
155+ if ( file . apply_status == 'waiting' ) return 'Waiting for server ...'
156156 if ( file . apply_status == 'thinking' ) return 'Thinking...'
157157 if ( file . apply_status == 'retrying' ) return 'Retrying...'
158158 if ( file . apply_status == 'receiving' ) return 'Receiving...'
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ type FileMessage =
2828const get_file_message = ( file : FileInPreview ) : FileMessage | null => {
2929 if ( file . is_applying ) {
3030 let text = 'Applying...'
31- if ( file . apply_status == 'waiting' ) text = 'Waiting...'
31+ if ( file . apply_status == 'waiting' ) text = 'Waiting for server ...'
3232 else if ( file . apply_status == 'thinking' ) text = 'Thinking...'
3333 else if ( file . apply_status == 'retrying' ) text = 'Retrying...'
3434 else if ( file . apply_status == 'receiving' ) text = 'Receiving...'
You can’t perform that action at this time.
0 commit comments