-
Notifications
You must be signed in to change notification settings - Fork 677
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
Add activation events for *.csproj and *.sln #1592
Add activation events for *.csproj and *.sln #1592
Conversation
cc @eamodio |
can we also add |
Is this actually a problem for *.csx? Note that the extension already activates on *.csx files when they're opened because that's how the "csharp" language is defined in VS Code (link). Note I'm not adding *.cs because that seems a bit too invasive. Could you explain how *.csx would be different. |
I'm totally willing to discuss this bit. That's my first gut feeling, but I'm not 100% certain it's something I should be concerned about. I definitely wouldn't want to add |
I think A standalone It would be nice to open a folder with some
|
How does this help that? After all, you have to have a file open to go to definition, no? |
sorry, I meant "go to symbol" |
I suppose that's true. OK. I'll add *.csx as well. I still think *.cs is too much though. Do you disagree? |
no, I think you right about that 👍 |
@@ -340,7 +340,9 @@ | |||
"onCommand:csharp.downloadDebugger", | |||
"onCommand:csharp.listProcess", | |||
"onCommand:csharp.listRemoteProcess", | |||
"workspaceContains:project.json" | |||
"workspaceContains:project.json", | |||
"workspaceContains:*.csproj", |
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.
@DustinCampbell
I'm not 100% sure, but should those be workspaceContains:**/*.csproj
so that it could be in any folder? It may already be handled though
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.
I intentionally didn't do that but I'm open to discussing it. I feared that this might be a bit invasive.
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.
Ah -- personally I would definitely want that. We typically open vscode to the root of the repository, and it doesn't have any projects or anything in it -- they are all nested under sub-folders. What are the cases you are thinking about where you wouldn't want that behavior?
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.
I was thinking of scenarios like the one described by #1328.
OK. I've added patterns for *.csx and globs to search subfolders. I'm planning to ship 1.11 shortly and would like to hold this change for 1.12 to let folks play with it to ensure it feels good. Does that work for everybody? |
sounds like a plan 👍 |
OK. I'm going to go ahead and merge this for 1.12. |
Should fix #1375 and improve #1150.