@@ -58,15 +58,15 @@ def on_modified_async(self) -> None:
5858 if not self ._is_saving and get_session_setting (session , "auto_ask_completions" ) and not vcm .is_waiting :
5959 plugin .request_get_completions (self .view )
6060
61- def on_activated_async (self ) -> None :
62- _ , session = CopilotPlugin .plugin_session (self .view )
63- if (session and CopilotPlugin .should_ignore (self .view )) or (
64- not session and not CopilotPlugin .should_ignore (self .view )
65- ):
61+ # def on_activated_async(self) -> None:
62+ # _, session = CopilotPlugin.plugin_session(self.view)
63+ # if (session and CopilotPlugin.should_ignore(self.view)) or (
64+ # not session and not CopilotPlugin.should_ignore(self.view)
65+ # ):
6666 # Hacky way to trigger adding and removing views from session
67- prev_setting = self .view .settings ().get ("lsp_uri" )
68- self .view .settings ().set ("lsp_uri" , "" )
69- sublime .set_timeout_async (lambda : self .view .settings ().set ("lsp_uri" , prev_setting ), 5 )
67+ # prev_setting = self.view.settings().get("lsp_uri")
68+ # self.view.settings().set("lsp_uri", "")
69+ # sublime.set_timeout_async(lambda: self.view.settings().set("lsp_uri", prev_setting), 5)
7070
7171 def on_deactivated_async (self ) -> None :
7272 ViewCompletionManager (self .view ).hide ()
0 commit comments