feat: support per library ignoreDir when library path prefix matched #3225
+42
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds support for per library setting in
ignoreDir
as requested in #3213.Use case
Ignore a same named folder in the library path, but not in current workspace.
For more details please refer to the discussion link above.
Proposed Solution
After in-depth discussion, we come up with the following approach with NO change to existing API while maintaining backward compatibility:
ignoreDir
path is a subpath of any library path/
Example Config
中文版
支持
workspace.ignoreDir
配置 只應用在指定 library 的 pattern修改方式
ignoreDir
,檢查是否屬於任意 library 的 subpath/
以換成1個 absolute 的 gitignore pattern