Skip to content

Commit 84d6aab

Browse files
committed
Update waiting status labels and add close buttons to context configuration quick picks
1 parent 00cfccb commit 84d6aab

5 files changed

Lines changed: 29 additions & 3 deletions

File tree

‎apps/editor/src/services/api-manager.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

‎apps/editor/src/views/panel/backend/message-handlers/handle-edit-context.ts‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff 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]

‎apps/editor/src/views/panel/backend/message-handlers/handle-prune-context.ts‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff 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]

‎packages/ui/src/components/editor/panel/ResponsePreview/ResponsePreview.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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...'

‎packages/ui/src/components/editor/panel/ResponsePreview/components/FileItem/FileItem.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type FileMessage =
2828
const 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...'

0 commit comments

Comments
 (0)