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

multiple angular projects #27

Closed
jason53 opened this issue Mar 15, 2022 · 9 comments
Closed

multiple angular projects #27

jason53 opened this issue Mar 15, 2022 · 9 comments

Comments

@jason53
Copy link

jason53 commented Mar 15, 2022

we work in a mono repo (https://blog.nrwl.io/angular/home) so we have multiple angular projects. how do we switch between projects in this extension? i know there is an extension setting for the "Default Angular Project Name" but is there a more dynamic way to switch between projects?

@lucono
Copy link
Owner

lucono commented Mar 16, 2022

Are you looking to switch between the Angular projects in the Angular workspace (angular.json) that you currently have open in VSCode, or looking to switch between any random, completely unrelated, Angular project in your monorepo? The questions in the feature request template would be useful to capture how you envision the desired functionality.

@jason53
Copy link
Author

jason53 commented Mar 16, 2022

I am looking to switch between Angular projects in the Angular workspace. I see that this project was based off https://github.com/Raagh/angular-karma_test-explorer which is the extension I was using before this one. That extension had a folder icon next to the refresh icon in the "Testing" panel that allowed you to click the project you wanted.

lucono added a commit that referenced this issue Mar 20, 2022
- Fix issue Karma server not stopped when vscode is closed #25
@lucono
Copy link
Owner

lucono commented Mar 20, 2022

@jason53 I've added support for this to the beta branch. Download and try out the vsix to confirm if it works as expected.

@jason53
Copy link
Author

jason53 commented Mar 20, 2022

I installed the build and I now see that I am running version "v0.5.1" of the extension. Is that correct? Just asking b/c I have never manually installed an extension before so not sure if it worked. So how do I switch between Angular projects? I don't see a folder icon in the "Testing" panel. Is there some other way?

@lucono
Copy link
Owner

lucono commented Mar 20, 2022

Yes, v0.5.1 is the right version. The functionality should add a + button next to the refresh button, which can be used for loading other projects. The button will be available only if it is a multi-project Angular workspace open in VSCode.

@jason53
Copy link
Author

jason53 commented Mar 21, 2022

Ok. I see the plus sign now (and the minus sign). I had the default Angular project set in the extension settings so once I cleared that and restarted VSCode the plus sign showed up. This is working as expected and I like that you allow more than one Angular project to be in the panel. Thank you! This extension is working great.

@jason53
Copy link
Author

jason53 commented Mar 23, 2022

@lucono i wanted to follow-up on some behavior i am seeing with this version. when i first start VSCode the default Angular project is loaded. i can then set breakpoints and debug my tests and successfully hit the breakpoints i set. next i click the "+" button and add another Angular projects to the test panel. if i set breakpoints in the Angular project that was just added and debug the tests the breakpoints are never hit. it behaves like i clicked the run button and not debug. additionally, if i remove the first Angular project from the test panel and try and debug the tests from the second project i get an error saying a timeout occurred when trying to run the test.

@lucono
Copy link
Owner

lucono commented Mar 25, 2022

@jason53 Can you attach environment information (same ones in the bug template) and debug logs for both projects - that would help identify the issue.

lucono added a commit that referenced this issue Apr 7, 2022
Resolves issues #22, #25, and adds feature #27 for v0.6.0
@lucono
Copy link
Owner

lucono commented Apr 7, 2022

Released in v0.6.0

@lucono lucono closed this as completed Apr 7, 2022
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

No branches or pull requests

2 participants