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:
@@ -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();
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user