-
Notifications
You must be signed in to change notification settings - Fork 676
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
Pass a semicolon-delimited list of files excluded from VS Code. #2171
Conversation
This is the extension side of dotnet#1990
Codecov Report
@@ Coverage Diff @@
## master #2171 +/- ##
=========================================
Coverage ? 88.72%
=========================================
Files ? 59
Lines ? 1587
Branches ? 89
=========================================
Hits ? 1408
Misses ? 168
Partials ? 11
Continue to review full report at Codecov.
|
Can we make the list an array instead of a string? This will be easier for users to edit, to diff.. |
Also, a test would be useful :) |
And are the files consisting of relative paths? Relative to what? What happens if I switch launch targets? |
Users define this data by editing artifacts in their repo or in vs code settings. The string generated here will be passed to O# as a command line arg. Arguably, it could be json, but that's not very user-friendly for anyone invoking o# outside of the C# extension.
They're paths relative to the workspace root. Maybe there's some normalizing we need to do if the working directory for o# isn't the workspace root.
Ok fine :) |
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.
Since OmniSharp now has built in support for globbing, and that is exposed over the standard OmniSharp configuration system, you should use that instead, instead of creating custom arguments. Then things will just work automatically, without any other changes required.
OmniSharp allows overriding of its configuration if you pass the args like this:
omnisharp {any other args} fileOptions:excludeSearchPatterns:0=**/foo/**/* fileOptions:excludeSearchPatterns:1=**/bar/**/*
Note that this exact approach is already used for passing formatting options when starting OmniSharp from the extension.
actually, based on my own comment here OmniSharp/omnisharp-roslyn#1161 (comment) you should pass those settings as |
Is this still being worked? |
cc @rchande |
@rchande Do you have the time to finalize this PR? If not I can give it a go. |
I am interested in this feature. We want to turn on the system diagnostics but want to exclude certain generated code. |
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.
LGTM! sorry for the delay, I somehow missed your message 😀
just needs the conflict resolution and it should be good to go
Is this still being worked on? It would be a very useful feature. |
Better late than never, this is ready to merge. |
Fixes #1990