Skip to content

Use code generation for new files

Rajendra Kadam requested to merge use-code-generation-for-new-files into master

What does this MR do and why?

Resolves #425445 (closed)

Adds a prompt to use code-bison for code generation in case the file is nearly empty or there is no instruction comment.

If we have code less than 5 lines then we consider it as a code generation intent. If the instruction is too small and code lines are < 5, then that is also a case for code generation.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Rajendra Kadam

Merge request reports