Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add tests and make small improvements #349

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

Merged
merged 11 commits into from
Jun 9, 2023
Merged

Add tests and make small improvements #349

merged 11 commits into from
Jun 9, 2023

Conversation

VladBrok
Copy link
Collaborator

@VladBrok VladBrok commented Jun 7, 2023

Note: changes in this PR are mixed with changes from PR #346

  • Add tests for the "snippet.find" command when "openInNewEditor" is set to true (use sinon to create a stub for vscode.QuickPick)
  • Use JavaScript Set to show only unique suggestions
  • Hide the loading status if a response error occurs


const suggestionsQuickItems: Array<vscode.QuickPickItem> = [];
for (const key in suggestions) {
for (const suggestion of suggestions) {
Copy link
Owner

Choose a reason for hiding this comment

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

Interesting. I did not know that was possible. 👍

Copy link
Owner

@mre mre left a comment

Choose a reason for hiding this comment

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

lgtm. Can't say much about the tests with sinon, but in general looks reasonable. Approved.

@VladBrok VladBrok merged commit fac2dca into master Jun 9, 2023
@VladBrok VladBrok deleted the tests branch June 9, 2023 03:19
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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.