Skip to content

Option to use a particular .vscodeignore file #255

Closed

Description

Is there an option to use a particular .vscodeignore file (which may not be present directly in the current working directory or one with a different name) ?

Activity

  1. TheRealPiotrP commented on Apr 5, 2018

    @TheRealPiotrP

    The ability to specify .vscodeignore files to vsce would help extensions like C# increase the determinism of their builds. Extensions like ours require access to the internet at runtime to download platform-specific components [in our case this is OmniSharp as well as a .NET Debugger implementation]. It is necessary for us to build two flavors of our VSIX, one that downloads these assets on the fly and another, much larger, that includes platform-specific components. The portable package explicitly needs to ignore the platform specific components used during its own build. The platform specific flavor, conversely, needs to include these components.

    We currently achieve this behavior through a combination of implicit build timing as well as a .vscodeignore file that is the lowest common denominator of these two package flavors. This is quite fragile, as you might imagine, and has recently become impossible due to capabilities we want to add to our build.

    We are currently going to work around this problem by generating the .vscodeignore file during the packaging process. This solution is sub-optimal for a number of reasons:

    • we need to generate a build artifact into the project's root directory. This replaces one type of complexity with another. Our scenario requires we undertake this tradeoff, but it's far from ideal.
    • The default vsce package experience will run with an arbitrary .vscodeignore file, or none if it has yet to be generated. Given the importance of this file to the VSCE experience, it would be great if vsce could produce a warning if it sees multiple .vscodeignore files and one is not specified, perhaps an error even.
  2. joaomoreno commented on Apr 5, 2018

    @joaomoreno
    Contributor

    Sure, we'll take a PR for this. Shouldn't be too hard.

    Maybe a --ignore-file FILE_PATH option?

  3. added this to the milestone on Apr 5, 2018
  4. added
    feature-request
    help wanted
    on Sep 20, 2018
  5. removed this from the milestone on Oct 11, 2019
  6. added
    verification-needed
    on Dec 3, 2019
  7. added
    verified
    on Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requesthelp wantedverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions