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

feat: check for command availability #114

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

peternhale
Copy link
Contributor

@W-16617918@
Add checks to see if target command is available before getting service.

@W-16617918@
Add checks to see if target command is available before getting service.
}
}

private static getCommands(): Promise<string[]> {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to add a simple method that I could mock to cover the actual call to vscode.commands.getCommands. Could not get a jest mock to properly hand the getCommands function.

Copy link
Collaborator

@daphne-sfdc daphne-sfdc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved! 🎉

Test plan here: https://salesforce.quip.com/bTabAKye8k2b

@daphne-sfdc daphne-sfdc merged commit 4006685 into main Sep 6, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants