-
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
Auto path flag broken in latest version (17.5.0) #1086
Comments
Yea, this is expected. We check if there's project option, and if there is, then we don't pre-fill the path. We had to do this because all the different ways generators use the path/directory option. For example:
I hope that clears it up a bit for you 😅 Btw, what generator are you trying to use? |
Oh I didn't realize there were so many uses for this tool, I should have been more specific! I am mainly using it for angular schematics, but I noticed the path was missing while generating components, so So you're saying the path should be missing for that schematic? If so, how was it working before the latest version? And is there any way I could get that behavior back? |
It was working before because the angular schematic expected the full relative path to the workspace root. When we generated from the context menu, we always got the full path, and it worked well for the angular schematic. So because the angular schematic has the project option (you should see that your project is prefilled when choosing this), the path isn't filled out anymore. We had to do this because of all the different use cases. We could probably have a special case to see if the schematic is @schematics/angular and just put the path in there too. |
To be clear, this was the main benefit of using your extension in VSCode with angular for me. Now I have to copy the path manually before. The problem is (at least on windows) the path is written with back-slashes and not forward slashes. To correct the path everytime is more work than going on with the old way and using the cli again. UPDATE: I found a workaround for the forward-slash-problem. |
Ok, we'll add a check to see if the schematics/generators are angular, use the old behaviour. 👍🏼 |
The component generation shouldn't have been affected... 🤔 We'll double check on that as well |
17.4.1 was the last version where the path was populated on my machine. thank you for a wonderful project, truly a life saver in terms of time and speed. |
We were taking advantage of this for custom generators we built as well. It made it easy to generate things in place of the context menu. Maybe there could be some field we could add to the schema.json file to opt in to this behavior? |
As of today's update this seems to no longer be working for |
@dannymcgee can you create a new issue with details of your workspace (angular only, angular+nx, nx only), versions of all those, and OS. Thank you! |
nvm @dannymcgee I have a fix up with #1192, it should be released with 17.3.1 |
Beat me to it — thank you! |
When generating new schematics from the context menu in the file explorer, the path flag is no longer filled out with the correct path.
The text was updated successfully, but these errors were encountered: