TJ-Bot
TJ-Bot copied to clipboard
ChatGPT - Code formatter
We have a code formatting feature, somewhere around CodeAction (FormatterCodeAction maybe?).
The existing formatter is totally fine, but we should add a ChatGPT powered layer before it. If the ChatGPT service (OpenAiService) returns Optional.empty(), the code should fall back to our existing formatter instead.
To save money, the feature should not consider the ChatGPT layer for really long code.
Care must be taken that ChatGPT only formats the code and doesnt otherwise change it.
This issue is stale because it has been open 30 days with no activity. Remove stale label, comment or add the valid label or this will be closed in 5 days.