You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[email protected] breaks my (admittedly weird) .vscodeignore configuration #576
So I think something changed in how the .vscodeignore file is handled. Here's my ignore file, I think the "weird hack" I was using doesn't work anymore:
Reacted by Lars Hvam, Marcell Legeza, David Sherret, Jonas Schievink, nickImbirev, Roberto Aloi, Johannes-B-stock, SPGoding, Dima Abramovich, Wang Weixuan and 3 more
changed the title [-][email protected] breaks my (admittedly) weird .vscodeignore configuration[/-][+][email protected] breaks my (admittedly weird) .vscodeignore configuration[/+]on Jun 6, 2021
Example to exclude everything except a specific directory foo/bar (note the /* - without the slash, the wildcard would also exclude everything within foo/bar):
Using webpack to build my project, for some reason we external the prettier and @iceworks/code-generator.
So we ignore the node_modules but keep these two packages.
yangfan (@fyangstudio) It's a good point, we maybe should. I wasn't aware of the massive breakage. At the same time, the ignore rules weren't documented at all. Now they are actually defined to be 100% matching what .gitignore does.
.vscode/**
**/*.ts
**/*.map
.gitignore
**/tsconfig.json
**/tsconfig.base.json
contributing.md
.travis.yml
client/node_modules/**
!client/node_modules/vscode-jsonrpc/** <-- the following lines will not be included because the parent is ignored.
!client/node_modules/vscode-languageclient/**
!client/node_modules/vscode-languageserver-protocol/**
!client/node_modules/vscode-languageserver-types/**
!client/node_modules/semver/**
Activity
[-][email protected] breaks my (admittedly) weird .vscodeignore configuration[/-][+][email protected] breaks my (admittedly weird) .vscodeignore configuration[/+]fyangstudio commentedon Jun 7, 2021
me too
the
node_modules/prettiernot existlarshp commentedon Jun 7, 2021
same issue here,
vsce lsgives following files for different vsce versions, reproduce with https://github.com/abaplint/vscode-abaplint1.88.0,
1.92.0,
feat: fix microsoft#576
joaomoreno commentedon Jun 7, 2021
Having adopted ignore, vsce now follows the exact rules of
.gitignore. Sorry for the breakage.Loris Bettazza (@Pustur), see in the .gitignore documentation:
That would mean for you:
yangfan (@fyangstudio) If you give me a pointer to your repo, I can try to figure out what adoption you need.
Lars Hvam (@larshp) Can you try this?
Pustur commentedon Jun 7, 2021
Thanks João Moreno (@joaomoreno) your solution works perfectly for me.
Feel free to close the issue or keep it open in case someone needs further assistance.
larshp commentedon Jun 7, 2021
yea, thanks, I'll figure it out 👍
fyangstudio commentedon Jun 7, 2021
My extension:https://github.com/appworks-lab/pack/tree/master/extensions/material-helper
.vscodeignore:
Using webpack to build my project, for some reason we external the
prettierand@iceworks/code-generator.So we ignore the node_modules but keep these two packages.
Unfortunately, it not working with [email protected].
joaomoreno commentedon Jun 7, 2021
yangfan (@fyangstudio) It's exactly the same suggestion as for the others, can you try this:
fyangstudio commentedon Jun 7, 2021
thx a lot
Update allowlist in .vscodeignore
fyangstudio commentedon Jun 7, 2021
By the way João Moreno (@joaomoreno) why this break change not upgrade to 2.0.0
joaomoreno commentedon Jun 7, 2021
yangfan (@fyangstudio) It's a good point, we maybe should. I wasn't aware of the massive breakage. At the same time, the ignore rules weren't documented at all. Now they are actually defined to be 100% matching what
.gitignoredoes.kitsonk commentedon Jun 8, 2021
Just commenting that it broke publishing of https://marketplace.visualstudio.com/items?itemName=denoland.vscode-deno. Suddenly getting reports that the extension is broken, and narrowed it down that v1.91.0 works but v1.92.0 and later breaks. Going to have to figure out what to change to make it work again. 😢
12 remaining items
Fix vscodeignore
Timmmm commentedon Jun 24, 2021
So as I understand it there's now no way to ignore everything by default and then whitelist files to include?
Timmmm commentedon Jun 24, 2021
In particular, the official LSP extension example surely no longer works?
joaomoreno commentedon Jun 25, 2021
Correct, just like gitignore.
I'll fix it accordingly.
Revert "Fix .vscodeignore for microsoft/vscode-vsce#576"
ci: fix VSCE
Revert "Fix .vscodeignore for microsoft/vscode-vsce#576"
Fix .vscodeignore for microsoft/vscode-vsce#576
Revert "Fix .vscodeignore for microsoft/vscode-vsce#576"
Fix .vscodeignore for microsoft/vscode-vsce#576
Revert "Fix .vscodeignore for microsoft/vscode-vsce#576"
🙈 Update .vscodeignore