Do not enable copilot for always read-only editors (#16356)

Release Notes:

- N/A
This commit is contained in:
Kirill Bulatov 2024-08-16 17:22:47 +03:00 committed by GitHub
parent 0fe22f2a48
commit f1a2638d29
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 20 additions and 13 deletions

View file

@ -1109,6 +1109,7 @@ impl InlineAssistant {
editor.set_show_gutter(false, cx);
editor.scroll_manager.set_forbid_vertical_scroll(true);
editor.set_read_only(true);
editor.set_show_inline_completions(false);
editor.highlight_rows::<DeletedLines>(
Anchor::min()..=Anchor::max(),
Some(cx.theme().status().deleted_background),