redhat-developer / redhat-developer/vscode-java
Exclude default folders from file watching
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 546
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
In my scenario I'm working with Gradle projects, but the context should also apply to Maven and normal project.
After opening project it would be nice if .gradle/** and build/** were automatically excluded from fileWatch by this extension, for Maven I believe it's target/**. Whether to exclude bin/** is up to you, but for me it makes no sense to watch it too, since IDE should be aware of its own folders?
Obviously these folders are configurable so mby this should be also some kind of config based on type of project import?
The point of this is to prevent unnecessary autoBuild triggers and similar, which may even result in permanent refresh loop like this
Environment
- note: env should be irrelevant for this issue
- Operating System: Win 11 pro, latest update
- JDK version: 21
- Visual Studio Code version:
- Java extension version:
Steps To Reproduce
- Open Gradle project
- Notify any file in eg. build
- See extension being notified of file change
Current Result
Entire project being file watched, causing unnecessary eclipse-jdtls trigger
Expected Result
Don't watch files that aren't "source" relevant
Additional Informations
May provide my .vscode/settings.json if needed
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先使用一个 Gradle 项目,并在 build/** 下进行更改,以复现文件监视行为;将其与 .gradle/** 和 Maven target/** 的预期行为进行比较。跟踪扩展的文件监视配置,并确定应如何通过项目导入类型或用户配置提供排除项。完成的标准是:生成的文件夹不再触发不必要的扩展通知或自动构建活动,同时源文件的更改仍会被监视。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, typescript
- 领域
- devtools, tooling
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100