Skip to content
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 a setting for problems.exclude #43135

Closed
firelizzard18 opened this issue Feb 7, 2018 · 4 comments
Closed

Add a setting for problems.exclude #43135

firelizzard18 opened this issue Feb 7, 2018 · 4 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@firelizzard18
Copy link

Add a setting for problems.exclude that will exclude problem results from A) the problems pane and B) the explorer problem decorations. Use the same syntax as files.exclude or search.exclude.

Example syntax:

  "problems.exclude": {
    "**/BadProject1": true,
    "**/BadProject2": true,
    "**/GoodProject/BadFile": true,
    "**/GoodProject/BadFolder": true,
  },
@vscodebot vscodebot bot added the search Search widget and operation issues label Feb 7, 2018
@firelizzard18
Copy link
Author

Example usage - When I have code that I am no longer maintaining, but might need again at a later date, instead of outright deleting it, I 'archive' it by moving it into an archive directory. However, some VSCode extensions have no support for excluding directories from their validation, so they report problems for this code. I would like to be able to exclude these directories via my proposed mechanism. I.E.:

"problems.exclude": {
    "**/archive/**: true
}

@roblourens roblourens assigned sandy081 and unassigned roblourens Feb 7, 2018
@firelizzard18
Copy link
Author

Example usage - I am working on a large ecosystem of C# projects, with many cross-repo dependencies. For my day-to-day work, I clone all of the relevant repositories into the same parent directory, and I use relative references for cross-repo dependencies. However, for continuous integration, I have all of the dependencies I need as submodules, and I update dependency references to point at a submodule instead of a sibling repo (I don't actually update any files; MSBuild is smart). However, OmniSharp gets very upset with this setup and reports hundreds or thousands of spurious errors (I didn't count). So I would very much like to be able to exclude specific directories, such as the one where I have my submodules.

Dev setup:

  • Work
    • Apps (git)
      • MainApp
        • references ../../Libs/MainLib/MainLib.csproj
    • Libs (git)
      • MainLib

CI setup:

  • Apps (git)
    • .libs - I want to exclude problems from this directory
      • Libs (git submodule)
        • MainLib
    • MainApp
      • references ../.libs/Libs/MainLib/MainLib.csproj

@sandy081 sandy081 removed the search Search widget and operation issues label Feb 8, 2018
@sandy081
Copy link
Member

sandy081 commented Feb 8, 2018

Duplicate of #22289

@sandy081 sandy081 marked this as a duplicate of #22289 Feb 8, 2018
@sandy081 sandy081 added the *duplicate Issue identified as a duplicate of another issue(s) label Feb 8, 2018
@vscodebot
Copy link

vscodebot bot commented Feb 8, 2018

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Feb 8, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Mar 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

3 participants