(
configHandler: ConfigHandler,
ide: IDE,
injectedGetLlm: () => Promise<ILLM | undefined>,
onError: (e: any) => void,
getDefinitionsFromLsp: GetLspDefinitionsFunction,
endpointType: "default" | "fineTuned",
)
| 90 | } |
| 91 | |
| 92 | public static initialize( |
| 93 | configHandler: ConfigHandler, |
| 94 | ide: IDE, |
| 95 | injectedGetLlm: () => Promise<ILLM | undefined>, |
| 96 | onError: (e: any) => void, |
| 97 | getDefinitionsFromLsp: GetLspDefinitionsFunction, |
| 98 | endpointType: "default" | "fineTuned", |
| 99 | ): NextEditProvider { |
| 100 | if (!NextEditProvider.instance) { |
| 101 | NextEditProvider.instance = new NextEditProvider( |
| 102 | configHandler, |
| 103 | ide, |
| 104 | injectedGetLlm, |
| 105 | onError, |
| 106 | getDefinitionsFromLsp, |
| 107 | endpointType, |
| 108 | ); |
| 109 | } |
| 110 | return NextEditProvider.instance; |
| 111 | } |
| 112 | |
| 113 | public static getInstance(): NextEditProvider { |
| 114 | if (!NextEditProvider.instance) { |
no outgoing calls
no test coverage detected