MCPcopy Create free account
hub / github.com/continuedev/continue / initialize

Method initialize

core/nextEdit/NextEditProvider.ts:92–111  ·  view source on GitHub ↗
(
    configHandler: ConfigHandler,
    ide: IDE,
    injectedGetLlm: () => Promise<ILLM | undefined>,
    onError: (e: any) => void,
    getDefinitionsFromLsp: GetLspDefinitionsFunction,
    endpointType: "default" | "fineTuned",
  )

Source from the content-addressed store, hash-verified

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) {

Callers 2

constructorMethod · 0.45
MermaidBlock.tsxFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected