We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b0fd23 commit 3bfdf96Copy full SHA for 3bfdf96
lua/copilot/panel.lua
@@ -496,6 +496,15 @@ function panel:init()
496
return
497
end
498
499
+ if not c.buf_is_attached(0) then
500
+ local should_attach, no_attach_reason = util.should_attach()
501
+ vim.notify(
502
+ string.format("[Copilot] %s", should_attach and ("Disabled manually for " .. vim.bo.filetype) or no_attach_reason),
503
+ vim.log.levels.ERROR
504
+ )
505
+ return
506
+ end
507
+
508
self.panel_uri = panel_uri_from_doc_uri(doc.uri)
509
self.filetype = vim.bo.filetype
510
0 commit comments