Skip to content

Add task type selector for code suggestions

Max Woolf requested to merge mw/code-suggestions/magic-comment-1 into master

What does this MR do and why?

Add task type selector for code suggestions

This commit adds a new class ModelSelector in the CodeSuggestions module that determines the type of code suggestion task based on the prefix and suffix. It uses a regex to look for specific 'magic comments' that can trigger different types of code suggestions.

This will enable more dynamic and contextually appropriate code suggestions based on user input.

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.

Related to #421316 (closed)

Edited by Max Woolf

Merge request reports