Skip to content

Commit df9c9a1

Browse files
XiaoxuanLuconstewart9manodnyab
authored
feat: optional pending state for ContextCommand (#687)
## Problem In large workspaces, indexing can take a long time with no indication of status ## Solution An optional pending flag is added to ContextCommand definition type. This allows a pending state to be indicated before the Context Command is sent to the client. The ui can then interpret this pending flag to grey out and disable the context command Should be merged before aws/mynah-ui#421 and aws/language-servers#2060 <!--- REMINDER: - Read CONTRIBUTING.md first. - Add test coverage for your changes. - Link to related issues/commits. - Testing: how did you test your changes? - Screenshots if applicable --> **This pr is a replacement of the #652 ## License By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. --------- Co-authored-by: Conor Stewart <[email protected]> Co-authored-by: constewart9 <[email protected]> Co-authored-by: manodnyab <[email protected]>
1 parent 50df702 commit df9c9a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

types/chat.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,7 @@ export interface ContextCommand extends QuickActionCommand {
462462
label?: 'file' | 'folder' | 'code' | 'image'
463463
children?: ContextCommandGroup[]
464464
content?: Uint8Array
465+
disabledText?: string
465466
}
466467

467468
export interface ContextCommandParams {

0 commit comments

Comments
 (0)