Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork391
feat: support per library ignoreDir when library path prefix matched#3225
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:master
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
8178c9b to6a5b559CompareCppCXY commentedJul 7, 2025
我认为应该支持使用 "${lib:idx}"和${workspaceFolder:name} |
Issues-translate-bot commentedJul 7, 2025
I think the use of "${lib:idx}" and ${workspaceFolder:name} should be supported |
tomlau10 commentedJul 7, 2025
確實是個好想法 👍
如果有必要支持 multi root workspace 中針對不同 |
Issues-translate-bot commentedJul 7, 2025
It's a good idea indeed
If necessary, support ignoreDir for different |
This adds support forper library setting in
ignoreDiras 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 withNO change to existing API while maintaining backward compatibility:
ignoreDirpath is asubpath of any library path/Example Config
{"workspace.library": ["/path/to/lib","/path/to/lib2" ],"workspace.ignoreDir": ["/path/to/lib/**/lib-ignore",// extracted pattern will be "/**/lib-ignore" and only applies to "/path/to/lib""global-ignore"// this will still apply to all of "/path/to/lib", "/path/to/lib2", current workspace ]}中文版
支持
workspace.ignoreDir配置只應用在指定 library 的 pattern修改方式
ignoreDir,檢查是否屬於任意 library 的subpath/以換成1個 absolute 的 gitignore pattern