Open
Description
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.