Skip to content

Commit 10a17f2

Browse files
committed
Remove the 10-second request timeout from API streaming requests and standardize the "copied to clipboard" message using the dictionary constant
1 parent d614db9 commit 10a17f2

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎packages/shared/src/constants/dictionary.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export const dictionary = {
1414
CLIPBOARD_IS_EMPTY: 'Clipboard is empty',
1515
CLIPBOARD_CONTENT_APPLIED_SUCCESSFULLY:
1616
'Clipboard content applied successfully',
17+
COPIED_TO_CLIPBOARD: 'Message copied to the clipboard',
1718
NO_SAVED_CONTEXTS_IN_WORKSPACE_STATE:
1819
'No saved contexts remaining in the Workspace State',
1920
NO_SAVED_CONTEXTS_IN_JSON_FILE:

‎packages/vscode/src/utils/make-api-request.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,7 @@ export const make_api_request = async (params: {
251251
: {})
252252
},
253253
cancelToken: params.cancellation_token,
254-
responseType: 'stream',
255-
timeout: 10000
254+
responseType: 'stream'
256255
}
257256
)
258257

‎packages/vscode/src/views/panel/backend/message-handlers/handle-copy-prompt.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,5 +166,7 @@ export const handle_copy_prompt = async (params: {
166166
return
167167
}
168168

169-
vscode.window.showInformationMessage('Prompt copied to clipboard!')
169+
vscode.window.showInformationMessage(
170+
dictionary.information_message.COPIED_TO_CLIPBOARD
171+
)
170172
}

0 commit comments

Comments
 (0)