@@ -23,7 +23,7 @@ import { JobManagerView } from "./views/jobManager/jobManagerView";
23
23
import { SelfTreeDecorationProvider , selfCodesResultsView } from "./views/jobManager/selfCodes/selfCodesResultsView" ;
24
24
import { registerContinueProvider } from "./aiProviders/continue/continueContextProvider" ;
25
25
import { queryHistory } from "./views/queryHistoryView" ;
26
- import { activateChat } from "./aiProviders/copilot" ;
26
+ import { activateChat , registerCopilotProvider } from "./aiProviders/copilot" ;
27
27
28
28
export interface Db2i {
29
29
sqlJobManager : SQLJobManager ,
@@ -94,8 +94,6 @@ export function activate(context: vscode.ExtensionContext): Db2i {
94
94
DbCache . resetCache ( ) ;
95
95
selfCodesView . setRefreshEnabled ( false ) ;
96
96
selfCodesView . setJobOnly ( false ) ;
97
- // register continue provider
98
- registerContinueProvider ( ) ;
99
97
// Refresh the examples when we have it, so we only display certain examples
100
98
onConnectOrServerInstall ( ) . then ( ( ) => {
101
99
exampleBrowser . refresh ( ) ;
@@ -106,17 +104,11 @@ export function activate(context: vscode.ExtensionContext): Db2i {
106
104
} ) ;
107
105
} ) ;
108
106
109
- const copilot = vscode . extensions . getExtension ( `github.copilot-chat` ) ;
110
107
111
- if ( copilot ) {
112
- if ( ! copilot . isActive ) {
113
- copilot . activate ( ) . then ( ( ) => {
114
- activateChat ( context ) ;
115
- } ) ;
116
- } else {
117
- activateChat ( context ) ;
118
- }
119
- }
108
+ // register copilot provider
109
+ registerCopilotProvider ( context ) ;
110
+ // register continue provider
111
+ registerContinueProvider ( ) ;
120
112
121
113
instance . subscribe ( context , `disconnected` , `db2i-disconnected` , ( ) => ServerComponent . reset ( ) ) ;
122
114
0 commit comments