consider cancel state when recomputing response type context key (#226409)

re https://github.com/microsoft/vscode-copilot/issues/7324
This commit is contained in:
Johannes Rieken
2024-08-23 11:46:17 +02:00
committed by GitHub
parent 29be8e8665
commit cd09f4a11e
2 changed files with 7 additions and 2 deletions

View File

@@ -527,7 +527,12 @@ export class ReportIssueAction extends AbstractInlineChatAction {
id: MENU_INLINE_CHAT_WIDGET_STATUS,
group: '0_main',
order: 6,
when: ContextKeyExpr.and(CTX_INLINE_CHAT_VISIBLE, CTX_INLINE_CHAT_SUPPORT_REPORT_ISSUE, CTX_INLINE_CHAT_REQUEST_IN_PROGRESS.negate())
when: ContextKeyExpr.and(
CTX_INLINE_CHAT_VISIBLE,
CTX_INLINE_CHAT_SUPPORT_REPORT_ISSUE,
CTX_INLINE_CHAT_RESPONSE_TYPE.notEqualsTo(InlineChatResponseType.None),
CTX_INLINE_CHAT_REQUEST_IN_PROGRESS.negate()
)
}]
});
}