atlassian / atlassian/atlascode

Add hook to pretty print code to show in diff in pull requests

Open
#113 0 comments 1 reaction 0 assignees View on GitHub
feature request
Dominant language
TypeScript
Stars
129
Forks
82
Avg merge
3h 3m
Merged PRs (30d)
6

Description

**Is your feature request related to a problem? Please describe.**
I often work in ABAP, which is case insensitive, and my diffs are often noisy:

![Image](https://github.com/user-attachments/assets/d7640abd-491a-4603-b6d8-6370c544c1ad)

I would like to add a pretty printer hook to atlascode so I can mask most of the irrelevant differences:

![Image](https://github.com/user-attachments/assets/2e81e748-9bde-482c-bef2-02cfdbbd7d9e)

Another use case could be for instance unminifying javascript, or format and sort json

was https://bitbucket.org/atlassianlabs/atlascode/issues/5433/add-hook-to-pretty-print-code-to-show-in

**Describe the solution you'd like**
See the diff between formatted code rather than raw
I do want the ability to see the raw diff, just not as the default
Formatter is provided by another, language specific extension

I already have this working, will send a PR soon

**Describe alternatives you've considered**
Postprocess in my extension: works but I lose commenting and stuss like that

**Additional context**
Add any other context or screenshots about the feature request here.

Contributor guide

Open the contributing guide

Research direction

No repository files, tests, or entry points are named. Start by tracing atlascode’s pull-request diff rendering and the integration point for language-specific formatters; done means formatted diffs are the default, raw diffs remain selectable, and commenting still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.