Supermaven enhanced (#11521)
Fixes #11422 by accepting just the start of the line. Release Notes: - N/A --------- Co-authored-by: max <max@zed.dev> Co-authored-by: jacob <jacob@supermaven.com>
This commit is contained in:
@@ -4356,6 +4356,7 @@ impl Editor {
|
||||
text: completion.text.to_string().into(),
|
||||
});
|
||||
self.insert_with_autoindent_mode(&completion.text.to_string(), None, cx);
|
||||
self.refresh_inline_completion(true, cx);
|
||||
cx.notify();
|
||||
true
|
||||
} else {
|
||||
|
||||
@@ -30,7 +30,7 @@ pub trait InlineCompletionProvider: 'static + Sized {
|
||||
buffer: &Model<Buffer>,
|
||||
cursor_position: language::Anchor,
|
||||
cx: &'a AppContext,
|
||||
) -> Option<&str>;
|
||||
) -> Option<&'a str>;
|
||||
}
|
||||
|
||||
pub trait InlineCompletionProviderHandle {
|
||||
|
||||
Reference in New Issue
Block a user