MCPcopy Index your code
hub / github.com/continuedev/continue / openConfigProfile

Method openConfigProfile

core/config/ConfigHandler.ts:332–351  ·  view source on GitHub ↗
(
    profileId?: string,
    element?: { sourceFile?: string },
  )

Source from the content-addressed store, hash-verified

330 }
331
332 async openConfigProfile(
333 profileId?: string,
334 element?: { sourceFile?: string },
335 ) {
336 let openProfileId = profileId || this.currentProfile?.profileDescription.id;
337 if (!openProfileId) {
338 return;
339 }
340 const profile = this.profiles.find(
341 (p) => p.profileDescription.id === openProfileId,
342 );
343 if (!profile) {
344 console.error(`Profile ${profileId} not found`);
345 return;
346 }
347
348 getConfigYamlPath();
349 const configFile = element?.sourceFile ?? profile.profileDescription.uri;
350 await this.ide.openFile(configFile);
351 }
352
353 // Ancient method of adding custom providers through vs code
354 private additionalContextProviders: IContextProvider[] = [];

Callers 1

Calls 3

getConfigYamlPathFunction · 0.85
errorMethod · 0.80
openFileMethod · 0.65

Tested by

no test coverage detected