Support absolute disabled_globs
(#25755)
Closes: #25556 We were always comparing `disabled_globs` against the relative file path, we'll now use the absolute path if the glob is also absolute. Release Notes: - Support absolute globs in `edit_predictions.disabled_globs`
This commit is contained in:
parent
c5632f8c31
commit
6eb2ffe77a
8 changed files with 191 additions and 16 deletions
|
@ -192,7 +192,7 @@ impl EditPredictionProvider for CopilotCompletionProvider {
|
|||
fn discard(&mut self, cx: &mut Context<Self>) {
|
||||
let settings = AllLanguageSettings::get_global(cx);
|
||||
|
||||
let copilot_enabled = settings.show_inline_completions(None, cx);
|
||||
let copilot_enabled = settings.show_edit_predictions(None, cx);
|
||||
|
||||
if !copilot_enabled {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue