vscode-advanced-new-file icon indicating copy to clipboard operation
vscode-advanced-new-file copied to clipboard

.gitignore located at subdirectories should be respected

Open floydwch opened this issue 4 years ago • 2 comments

In a micro-service oriented project, it would have different .gitignore files in different subdirectories.

The current implementation of advanced new file collects the .gitignore file from project dir to the system's root, and it doesn't consider the .gitignore files located at subdirectories.

floydwch avatar Sep 19 '20 01:09 floydwch

@floydwch good idea! Perhaps a workaround for the time being: if you open each git repo as its own root in a multi-root workspace (instead of opening the parent dir), all the gitignores should be honored.

patbenatar avatar Sep 20 '20 15:09 patbenatar

@patbenatar yeah, it's how I'm dealing with it in the meanwhile.

floydwch avatar Sep 21 '20 10:09 floydwch