Fix context key reference for suggest widget visibility in NewChatWidget

This commit is contained in:
Osvaldo Ortega
2026-02-24 11:08:36 -08:00
parent 306e923a21
commit bf8f505cd6
@@ -467,7 +467,7 @@ class NewChatWidget extends Disposable {
this._register(this._editor.onKeyDown(e => {
if (e.keyCode === KeyCode.Enter && !e.shiftKey && !e.ctrlKey && !e.altKey) {
// Don't send if the suggest widget is visible (let it accept the completion)
if (this.contextKeyService.getContextKeyValue<boolean>('suggestWidgetVisible')) {
if (this._editor.contextKeyService.getContextKeyValue<boolean>('suggestWidgetVisible')) {
return;
}
e.preventDefault();