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

Multiroot improvements #443

Merged
merged 4 commits into from
Jun 6, 2019
Merged

Conversation

escaton
Copy link
Contributor

@escaton escaton commented Apr 13, 2019

  • add start-all, stop-all, restart{-all} commands
  • handle disabledWorkspaceFolders change on the fly
  • misc: use Map to store jest instances

#trivial

@coveralls
Copy link

coveralls commented Apr 13, 2019

Pull Request Test Coverage Report for Build 533

  • 27 of 27 (100.0%) changed or added relevant lines in 1 file are covered.
  • 22 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.5%) to 86.851%

Files with Coverage Reduction New Missed Lines %
src/extensionManager.ts 4 92.86%
src/JestExt.ts 18 64.41%
Totals Coverage Status
Change from base Build 507: 0.5%
Covered Lines: 796
Relevant Lines: 899

💛 - Coveralls

@escaton
Copy link
Contributor Author

escaton commented Apr 13, 2019

@connectdotz please take a look. How do you find this changes: should i add #trivial to satisfy DangerCI or add something to changelog?
Unfortunately i noticed too late that there was #441
@vdh you've done great research and i would love to drop my commit in favor of your solution, but it would require some refactor from you. I'd suggest you to rebase to beta branch and check out the changes.

@connectdotz
Copy link
Collaborator

probably update changelog since many users have been asking for these new commands

@escaton
Copy link
Contributor Author

escaton commented Apr 13, 2019

Yes, but i’m considering remove that commit and let @vdh to update his PR. So i guess i’ll add #trivial

Copy link
Collaborator

@connectdotz connectdotz left a comment

Choose a reason for hiding this comment

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

I haven't run it but the change seems pretty straight forward... once you get the build pass I will run it and approve.

const { commonPluginSettings: { disabledWorkspaceFolders } } = this
if (this.extByWorkspace.has(workspaceFolderName)) {
return false
} else if (disabledWorkspaceFolders.includes(workspaceFolderName)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

no need for else, you can also consider consolidating these 2 conditions into a single if statement, might be more readable...

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 did this with the same motivation :)

Copy link
Collaborator

Choose a reason for hiding this comment

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

what is the reason for else?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, missed that. No reason for else, i'll split it in two separate conditions.

@vdh vdh mentioned this pull request Apr 15, 2019
@vdh
Copy link
Contributor

vdh commented Apr 15, 2019

@escaton I've rebased the PR, although since this is my first contribution it'd be great to get someone double check the logic of the Promise-based changes I've made.

@escaton
Copy link
Contributor Author

escaton commented Apr 21, 2019

Dropped my commits related to start/stop/restart commands

@Bnaya
Copy link

Bnaya commented May 4, 2019

Is there any overview of the features here?
Thanks ! :)

@connectdotz
Copy link
Collaborator

Is there any overview of the features here?

there is a brief introduction in the README.md, if it's not intuitive then maybe we should consider adding more...

@escaton
Copy link
Contributor Author

escaton commented Jun 5, 2019

@connectdotz would you like to merge this PR to beta?

@connectdotz
Copy link
Collaborator

yes, was waiting for the restart-command PR, now it is in, is there anything you want to change in this PR before I merge it?

@escaton
Copy link
Contributor Author

escaton commented Jun 6, 2019

done :)

@connectdotz connectdotz merged commit 6319dd9 into jest-community:beta Jun 6, 2019
legend1202 pushed a commit to legend1202/vscode-jest that referenced this pull request Jun 18, 2023
* use Map to store jest instances

* remove enbledWorkspaceFolders, update README, handle disabledWorkspaceFolders change on the fly

* review fixes

* Fix typo
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.

5 participants