redhat-developer / redhat-developer/vscode-java
Formatter merges pipelines (and everything, including documentation comments) in a single row
未关闭
还没有人认领这个 Issue。
formatter
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 546
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
Steps To Reproduce
1.1
return extractId(req).flatMap(cmsID -> service.find(cmsID))
.flatMap(item -> ServerResponse.ok().syncBody(item))
.doOnError(e -> log.debug(e.getMessage()))
.onErrorResume(this::handleError);
1.2
+ " spherical: true,"
+ " query: {"
+ " status: 'publish',"
+ " $or: [{endDate: {$gt: new Date()}}, {endDate: {$exists: false}}]"
+ " },"
- Alt Shift F / cmd k, f
Current Result
1.1
return extractId(req).flatMap(cmsID -> service.find(cmsID)).flatMap(item -> ServerResponse.ok().syncBody(item))
.doOnError(e -> log.debug(e.getMessage())).onErrorResume(this::handleError);
1.2
+ " spherical: true," + " query: {" + " status: 'publish',"
+ " $or: [{endDate: {$gt: new Date()}}, {endDate: {$exists: false}}]" + " },"
Expected Result
do not touch line breaks, please.
...or do not touch line breaks, when line starts with dot
(code, /** doc comments */ )
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
issue 中没有指定源文件或测试。使用提供的 Java 和文档注释示例,通过 Alt+Shift+F 或 cmd+k,f 重现 formatter 的行为,然后验证现有的换行,尤其是以点开头的行,保持不变。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, typescript
- 领域
- tooling
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100