-
Notifications
You must be signed in to change notification settings - Fork 789
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
VFT: add new item to project categories doesn't have a root element #804
Comments
This is very cool and excellent bug report! 👍 I often notice this, but I didn't realize that F# project's item template behave differently from C#. Maybe it's time to revisit the use of Visual Studio CPS instead of the current F# project model. |
Can you explain and/or add details how to repro? I tried this with VS2015, Enterprise Ed, an F# 4.0 project (w/o Update 1), F# PowerTools installed, and I right-click in the solution like this: Then I get the following screen (which, also surprisingly, shows two identical items and when selecting either of them, they always add the wrong standard open-statements |
I get the same on two machines on which I just installed Community Edition (Update 1). The screen shot I took was on pretty much vanilla VS that I just installed. I can't repro on VS 2013 Professional installed on one of my machines and will check tomorrow on the other. I also notice that in a websharper project (I installed the vsix after I reported this bug so it's not related to it) the dialog is just empty and I can't use the Add New Item dialog on the project, but it works for other projects in the same solution.
|
Actually, when I first launch Visual Studio, I pick the C++ environment (I'm used to the keyboard shortcuts) and it has an effect on the template tree. I think that might be the reason why I'm seeing this. |
Any update on this issue with VS 15 preview? On a default install with F# ticked, after choosing C++ style on first launch splash screen, is the hierarchy correct? |
@saul, this seems to work properly in VS2017, I've picked C++ environment. |
When I right click on a F# project and choose "Add New Item...", I get shown this dialog:
While for a C# project, I get shown this dialog:
It doesn't make sense to have to pick "Code" in the F# dialog to be able to add a simple code file.
I guess the proper fix would be to have "Visual F# Items" node scoping "Data", "General" and "Code" items.
It would be nice to have "Add Module" similar to C# "Add Class", "Add Component" etc, so most of the time we won't deal with the dialog.
The text was updated successfully, but these errors were encountered: