Vscode-vsce: Revert changes ignore file semantic

Created on 25 Jun 2021  ·  4Comments  ·  Source: microsoft/vscode-vsce

In https://github.com/microsoft/vscode-vsce/pull/418 we fixed https://github.com/microsoft/vscode-vsce/issues/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.

  • [x] Revert change
  • [x] 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

bug

Most helpful comment

note this change was published in 1.95.0

All 4 comments

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

No thoughts.

note this change was published in 1.95.0

@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!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SamVerschueren picture SamVerschueren  ·  5Comments

iliazeus picture iliazeus  ·  6Comments

vazexqi picture vazexqi  ·  4Comments

kobelobster picture kobelobster  ·  4Comments

RomaDev94 picture RomaDev94  ·  5Comments