redhat-developer / redhat-developer/vscode-java

Formatter merges pipelines (and everything, including documentation comments) in a single row

Open
#812 7 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

formatter
Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

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}}]" 
+ "  },"
  1. 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 */ )

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named in the issue. Reproduce the formatter behavior with the provided Java and documentation-comment examples using Alt+Shift+F or cmd+k,f, then verify that existing line breaks, especially lines beginning with a dot, remain unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.