Skip to content

Commit

Permalink
chore: use sdr to get default folder for esr
Browse files Browse the repository at this point in the history
  • Loading branch information
CristiCanizales committed Jan 7, 2025
1 parent 61d677b commit 445a686
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import * as fs from 'fs';
import * as path from 'path';
import { URL } from 'url';
import * as vscode from 'vscode';
import { RegistryAccess } from '@salesforce/source-deploy-retrieve-bundle';
import { create } from 'xmlbuilder2';
import { parse, stringify } from 'yaml';
import { workspaceContext } from '../context';
Expand Down Expand Up @@ -186,12 +187,14 @@ export class ApexActionController {
};

private getFolderForArtifact = async (): Promise<string | undefined> => {
const registryAccess = new RegistryAccess();

const defaultESRFolder = path.join(
workspaceUtils.getRootWorkspacePath(),
'force-app',
'main',
'default',
'externalServiceRegistrations'
registryAccess.getTypeByName('ExternalServiceRegistration').directoryName
);
const folderUri = await vscode.window.showInputBox({
prompt: nls.localize('enter_esr_path'),
Expand Down

0 comments on commit 445a686

Please sign in to comment.