Respect project-specific settings for copilot
This commit is contained in:
parent
eeba72d775
commit
a2ab7c9eb9
6 changed files with 56 additions and 40 deletions
|
@ -318,7 +318,7 @@ impl Copilot {
|
|||
fn enable_or_disable_copilot(&mut self, cx: &mut ModelContext<Copilot>) {
|
||||
let http = self.http.clone();
|
||||
let node_runtime = self.node_runtime.clone();
|
||||
if all_language_settings(cx).copilot_enabled(None, None) {
|
||||
if all_language_settings(None, cx).copilot_enabled(None, None) {
|
||||
if matches!(self.server, CopilotServer::Disabled) {
|
||||
let start_task = cx
|
||||
.spawn({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue