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

Revert changes ignore file semantic #588

Closed
2 of 3 tasks
joaomoreno opened this issue Jun 25, 2021 · 4 comments
Closed
2 of 3 tasks

Revert changes ignore file semantic #588

joaomoreno opened this issue Jun 25, 2021 · 4 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug
Milestone

Comments

@joaomoreno
Copy link
Member

joaomoreno commented Jun 25, 2021

In #418 we fixed #417 by adopting npm's ignore module for our .vscodeignore semantics. This actually broke a lot of extensions:

Semantic differences

It used to be possible to write such a rule:

node_modules
!node_modules/highlight.js/styles

With npm's ignore module, we're force to do this instead:

node_modules/*
!node_modules/highlight.js
node_modules/highlight.js/*
!node_modules/highlight.js/styles

Plan

Apart from being a breaking change, I argue this is a change in behavior for the worse. For those two reasons, I propose to simply revert the change for 1.95.0.

  • Revert change
  • Write test cases which lock us in our semantics for future changes
  • Create PRs to revert the damage done

Sorry

Finally, thanks all for the patience and the persistence in filling issues. I apologise for my stubborness. We should've caught this early on and optimized for compatibility. 🙇‍♂️

cc @aeschli @Pustur @fyangstudio @larshp @kitsonk @Timmmm @juli1 @orph @GordonSmith @ntotten @PeterWone

@joaomoreno joaomoreno added the bug Issue identified by VS Code Team member as probable bug label Jun 25, 2021
@joaomoreno joaomoreno added this to the June 2021 milestone Jun 25, 2021
@joaomoreno joaomoreno self-assigned this Jun 25, 2021
@GordonSmith
Copy link

GordonSmith commented Jun 25, 2021

@joaomoreno any thoughts on simply supporting the "files" section in package.json to specify which files should go into the vsix?

@joaomoreno
Copy link
Member Author

No thoughts.

@larshp
Copy link

larshp commented Jun 25, 2021

note this change was published in 1.95.0

@Timmmm
Copy link

Timmmm commented Jun 25, 2021

@joaomoreno any thoughts on simply supporting the "files" section in package.json to specify which files should go into the vsix?

I agree that would be more intuitive. Definitely feels weird for everything to be published by default!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

4 participants