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.
The most significant changes include the addition of a new class
PluginCloseMessage
to handle the closing of a plugin, the creation of aProfileService
class to manage user profiles, and the modification ofPluginViewModel.cs
to include a new methodRemovePlugin
andCanRemovePlugin
. Additionally, thePluginsViewModel
class was updated to handlePluginCloseMessage
messages and use theProfileService
to manage the list of opened plugins. Lastly, changes were made to the user interface, including the addition of a new button inPluginsView.axaml
to remove a plugin.PluginCloseMessage
was added toPluginOpenMessage.cs
in thePromptPlayground.ViewModels
namespace. This class extendsFileOrFolderOpenMessage
and is used to handle the closing of a plugin.ProfileService
class was added toProfileService.cs
. This class is used to manage user profiles. It includes methods for getting the profile path, getting the profile, and saving the profile.PromptService
class inPromptService.cs
was modified. The changes appear to be mostly formatting, with no significant changes to the functionality of the class.ConfigViewModel.cs
, theConfigAttribute.AzureDeployment
attribute was added to theRequiredAttributes
array.GenerateResult
class inGenerateResult.cs
was modified. The changes appear to be mostly formatting, with no significant changes to the functionality of the class.PluginViewModel.cs
, a new methodRemovePlugin
was added, which sends aPluginCloseMessage
if the plugin's folder exists. TheCanRemovePlugin
method was also added to check if the plugin's folder exists. TheDefaultName
constant andDefaultNamePattern
regex were also updated.PluginsViewModel
class inPluginsViewModel.cs
was modified to handlePluginCloseMessage
messages. It now uses theProfileService
to save and load the list of opened plugins. TheDefaultPlugin
constant was also added.SemanticFunctionViewModel
class inSemanticFunctionViewModel.cs
was modified. The changes appear to be mostly formatting, with no significant changes to the functionality of the class.EditorView.axaml
, theDocumentTextBindingBehavior
was modified to be more readable by splitting the properties onto separate lines.MainView.axaml.cs
, the default function name was changed from "[New Function]" to "[Unsaved]".PluginsView.axaml
, a new button was added to remove a plugin. This button is only visible when the plugin can be removed.