coder / coder/code-server

settings files.watcherExclude not working?

未关闭
#7,505 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug triage
主要语言
TypeScript
星标
79.3k
派生
6.8k
平均合并
2 天 6 小时
30 天内合并 PR
41

描述

### Is there an existing issue for this?

- [x] I have searched the existing issues

### OS/Web Information

- Web Browser: latest Chrome
- Local OS: Windows
- Remote OS: RHEL 9
- Remote Architecture: x86_64
- `code-server --version`: 4.104.2 b0992ddb3e3b398371da6bcfbe21a70b4d66eb8d with Code 1.104.2

### Steps to Reproduce

Our main project folder contains subfolders that make use of autofs + rclone. We do not want code-server attempting to traverse the MANY remote endpoints configured. The solution should be to use VS Code settings `files.watcherExclude` as implemented from https://github.com/microsoft/vscode/issues/150174

I have this setting in both the FOLDER (/files) and Workspace settings, but it appears to be ignored. Or is there another place to best handle this override?

```json
{
"files.watcherExclude": {
"**/**": true,
"**": true,
"*": true
}
}
```

That should effectively disable files watching completely. Optimally, I would like to use targeted filtering instead (_which also does not have any effect_) of globally excluding:

```json
{
"files.watcherExclude": {
"/*files/cifs/**": true,
"/*files/nfs/**": true,
"/*files/s3/**": true,
"/*files/sftp/**": true
}
}
```

### Expected

When I do `df`, I should not see any remote filesystems mounted.

### Actual

As soon as I open the project workspace, it begins to crawl through all of the folders, which in turn, begins to mount every endpoint to do more crawling -- ugh!!

### Logs

```shell

```

### Screenshot/Video

_No response_

### Does this bug reproduce in native VS Code?

Yes, this is also broken in native VS Code

### Does this bug reproduce in GitHub Codespaces?

Yes, this is also broken in GitHub Codespaces

### Are you accessing code-server over a secure context?

- [ ] I am using a secure context.

### Notes

_No response_

贡献指南

打开贡献指南

调研方向

在 Windows 上使用 RHEL 9 远程工作区和提供的 files.watcherExclude 设置复现该行为,然后将结果与报告中的原生 VS Code 和 GitHub Codespaces 进行比较。跟踪 code-server 如何将这些设置传递给文件监视器,并验证针对性的排除项是否能阻止 autofs 和 rclone 端点被挂载;完成标准是被排除的路径不会被遍历或挂载。

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript, vscode
领域
devtools
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。