-
Notifications
You must be signed in to change notification settings - Fork 214
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: project tree view #1390
feat: project tree view #1390
Conversation
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 2ee8d50. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this branch ✅ Successfully ran 6 targets
Sent with 💌 from NxCloud. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey this looks really good! I haven't been able to look at everything yet but some small stuff could be fixed. Good job tho looks great
I was also thing of changing the config setting from a boolean to a string (enum). In case that another view would be added. One that I could think of would be grouped by tag. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your work. I think it's a great solution and will help many. Just a few things to fix :)
I also pushed a small commit renaming some functions
libs/vscode/nx-project-view/src/lib/views/nx-project-base-view.ts
Outdated
Show resolved
Hide resolved
libs/vscode/nx-project-view/src/lib/views/nx-project-tree-view.ts
Outdated
Show resolved
Hide resolved
libs/vscode/nx-project-view/src/lib/views/nx-project-tree-view.ts
Outdated
Show resolved
Hide resolved
libs/vscode/nx-project-view/src/lib/views/nx-project-tree-view.ts
Outdated
Show resolved
Hide resolved
Just read through the review comments and I agree with your suggestions. I was also wondering it it makes sense to cache the result of |
@MaxKless I think I will skip the optimizations in this PR, and only focus on the feature for now. I would rather create a second PR to address them and have the feature ready. Is that fine for you? |
Yes you can skip the memoization and extra features for now :) just the bugfix stuff and naming clarity I would like to see |
If I did not miss anything, then I should be again ready for review 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright we're getting there!
Sadly, I've found one major problem with the new tree view: compatibility with angular workspaces. As you can see from the screenshot, the view is just empty currently.
To work on it, you can copy the testworkspace-ng folder from the vscode-e2e
app and test it out!
I know I've been saying it a lot but thanks again for your work and the super fast iteration times!!
libs/vscode/nx-project-view/src/lib/views/nx-project-tree-view.ts
Outdated
Show resolved
Hide resolved
libs/vscode/nx-project-view/src/lib/views/nx-project-base-view.ts
Outdated
Show resolved
Hide resolved
I have a suspicion that the tree view does not work for angular projects which have sub-projects. |
Thank you for the nice words :) |
As expected. |
@MaxKless Do you also have any requirements regarding the git history? |
@NicoVogel we squash all prs into master. So whatever is set as the title of this PR will be the commit message that appears on master. |
dc4e155
to
6a8359d
Compare
Fixed with the latest commit. @MaxKless @Cammisuli Can you provide a fresh review? |
Oh, I think we need to bump the node version for the ci to get the |
So far everything looks good, thank you! I'm just going to do smoke test on windows and if everything runs well there, I'll merge it in. Thank you for the contribution and your patience with our feedback 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again!
@MaxKless I validated the performance of the TreeView. Actions I did
Measures
|
The whole of Nx console is about to be quicker with #1402 as well. Basically the longest running operation that plagued console is now handled in the language server, which is in a separate process 🙂 |
Awesome @NicoVogel thx for all the effort in this PR. Really high quality contribution. I would give a shoutout on twitter but you don't have one do you? :O |
An implementation for the request #1181.
Changes:
I know that there is already a PR for it, but A) I could not simply extend the existing PR to what was required and B) there is no guarantee that even if I extend the other PR, that the person will actually merge my suggestions.
Non the less, I want to thank @rickvandermey to get this feature going. Because without his involvement, I would probably not have implement the feature myself.
closes #1338
resolves #1181