Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update sfdx command to sf to match dependent command id change #66

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@
"out": true // set this to false to include "out" folder in search results
},
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
"typescript.tsc.autoDetect": "off"
"typescript.tsc.autoDetect": "off",
// Prettier is this project's code formatter.
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
2 changes: 1 addition & 1 deletion src/commands/wizard/authorizeCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class AuthorizeCommand {
if (!result || result.title === l10n.t('No')) {
return Promise.resolve(false);
} else {
await commands.executeCommand('sfdx.org.login.web');
await commands.executeCommand('sf.org.login.web');
await window.showInformationMessage(
l10n.t(
"Once you've authorized your Org, click here to continue."
Expand Down
5 changes: 1 addition & 4 deletions src/commands/wizard/deployToOrgCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ export class DeployToOrgCommand {
currentWorkspace.workspaceFolders[0].uri.fsPath;
const forceAppPath = path.join(workspaceFolderPath, 'force-app');
const forceAppUri = Uri.file(forceAppPath);
await commands.executeCommand(
'sfdx.force.source.deploy.source.path',
forceAppUri
);
await commands.executeCommand('sf.deploy.source.path', forceAppUri);
return Promise.resolve(true);
}
}
9 changes: 5 additions & 4 deletions src/test/runTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,16 @@ async function main() {
// support in the `engines` section of our package.
const vscodeExecutablePath =
await downloadAndUnzipVSCode(VSCODE_TEST_VERSION);
const [cliPath, ...args] =
const [cliPath, ...cliArgs] =
resolveCliArgsFromVSCodeExecutablePath(vscodeExecutablePath);

// Install the Salesforce Extensions, which is a pre-req for our
// extension. Bail if there's an error.
const isWindows = process.platform === 'win32';
const installExtensionDepsOuput = spawnSync(
cliPath,
[...args, '--install-extension', CORE_EXTENSION_ID],
{ stdio: 'inherit', encoding: 'utf-8' }
isWindows ? `"${cliPath}"` : cliPath,
[...cliArgs, '--install-extension', CORE_EXTENSION_ID],
{ stdio: 'inherit', encoding: 'utf-8', shell: isWindows }
);
if (installExtensionDepsOuput.error) {
console.error(
Expand Down
Loading