Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
My goal here was to try and get the AI to convert a TableView into a non-TableView format.
In my mind, the table view is more a vertical stack in a scroll.
Visual Studio
The default VS copilot chat with the models were really bad. It refused to give me what I asked and then also started to get angry and gave me invalid code. It got worse and worse, even after resetting the chat. It was like spite.
VSCode
I switched to use the agent mode in VSCode and right out the box it was better. I still had to add a copilot-instructions.md to give it some basic guidance on what things were obsolete. But I assume that most of this was because the types were not marked as obsolete. For example, it tried Frame and then saw it was obsolete and switched.
The AI loved to replace things with an advanced CollectionView with all sorts of templating. But, when I wrote this file it stopped and used the VSL. The default copilot chat just got angry and returned invalid XAML for the CollectionView that would not even compile.
My prompt:
Can you fix the issues in this file?
This was my instructions file:
Summary
Overall, the agent mode was nothing short of replacing me. The VS GitHub Chat (non agent) got angry and started being spiteful. Not making mistakes, but I am sure it got angry. The things that it was happy to do before it just ignored me and gave me wrong results. Only way to fix it was to restart VS.
Playing with the agent mode gives me some ideas on how better to annotate the maui codebase so it can make better changes.
Questions
[Obsolete]
will make it try something else, but what if we want more than that?