Skip to content

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
jfeingold35 committed Apr 30, 2024
1 parent 5c10a09 commit 84546f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/lib/core-extension-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ export class CoreExtensionService {

private static async getCoreExtensionApiOrUndefined(): Promise<CoreExtensionApi|undefined> {
const coreExtension = vscode.extensions.getExtension(CORE_EXTENSION_ID);
vscode.extensions.all.forEach((ext) => {
console.log(ext.id);
});
if (!coreExtension) {
console.log(`${CORE_EXTENSION_ID} not found; cannot load core dependencies. Returning undefined instead.`);
return undefined;
Expand Down
4 changes: 3 additions & 1 deletion src/test/runTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@ async function main() {
console.log(`path: ${vscodeExecutablePath}`);
const [cliPath, ...args] = resolveCliArgsFromVSCodeExecutablePath(vscodeExecutablePath);

console.log(cliPath);
// Install the Salesforce Core extension pack
cp.spawnSync(
cliPath,
[...args, '--install-extension', EXTENSION_PACK_ID],
{
encoding: 'utf-8',
stdio: 'inherit'
stdio: 'inherit',
shell: true
}
);

Expand Down

0 comments on commit 84546f6

Please sign in to comment.