Fix cursor focus and selection in input box, add AWS env var warning box, and remove AWS Bedrock login banner

This commit is contained in:
2026-07-02 14:54:15 -05:00
parent 4770ac06b5
commit 3769646ca6
1194 changed files with 5312 additions and 8032 deletions
+4 -10
View File
@@ -16,7 +16,9 @@ use super::local_code_editor::LocalCodeEditorView;
const SIGNATURE_HELP_MAX_WIDTH: f32 = 500.;
/// State for signature help display.
#[derive(Default)]
pub(super) enum SignatureHelpState {
#[default]
None,
Loading(Option<AbortHandle>),
Showing {
@@ -25,12 +27,6 @@ pub(super) enum SignatureHelpState {
},
}
impl Default for SignatureHelpState {
fn default() -> Self {
Self::None
}
}
impl SignatureHelpState {
pub fn clear(&mut self) -> bool {
if matches!(self, Self::None) {
@@ -73,10 +69,8 @@ impl LocalCodeEditorView {
Some('(') | Some(',') => {
self.request_signature_help(cursor_offset, ctx);
}
Some(')') => {
if self.signature_help_state.clear() {
ctx.notify();
}
Some(')') if self.signature_help_state.clear() => {
ctx.notify();
}
_ => {}
}