Skip to content

Commit

Permalink
Remove Quickstart Playground Experimental Features
Browse files Browse the repository at this point in the history
  • Loading branch information
krschau committed Oct 29, 2024
1 parent 640b1c8 commit faaec7c
Show file tree
Hide file tree
Showing 28 changed files with 0 additions and 2,312 deletions.
3 changes: 0 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,3 @@ spelling_exclusion_path = .\exclusion.dic

# CS8305: Type is for evaluation purposes only and is subject to change or removal in future updates.
dotnet_diagnostic.CS8305.severity = suggestion

[src/AzureExtension/Assets/QuickStartPlayground/Samples/csharp-hello-world/Program.cs]
dotnet_diagnostic.SA1633.severity = none
3 changes: 0 additions & 3 deletions src/AzureExtension/AzureExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using DevHomeAzureExtension.DevBox;
using DevHomeAzureExtension.DeveloperId;
using DevHomeAzureExtension.Providers;
using DevHomeAzureExtension.QuickStartPlayground;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Windows.DevHome.SDK;
Expand Down Expand Up @@ -46,8 +45,6 @@ public AzureExtension(ManualResetEvent extensionDisposedEvent, IHost host)
return new object();
case ProviderType.ComputeSystem:
return _host.Services.GetService<DevBoxProvider>();
case ProviderType.QuickStartProject:
return _host.Services.GetQuickStartProjectProviders();
case ProviderType.Settings:
return _host.Services.GetService<SettingsProvider>();
default:
Expand Down
6 changes: 0 additions & 6 deletions src/AzureExtension/AzureExtension.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -206,12 +206,6 @@
</Content>
</ItemGroup>

<ItemGroup>
<Content Include="Assets\QuickStartPlayground\Samples\**\*">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>

<ItemGroup>
<None Update="Providers\SettingsCardTemplate.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
Expand Down
2 changes: 0 additions & 2 deletions src/AzureExtension/Providers/SettingsCardData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ namespace DevHomeAzureExtension.Providers;

internal sealed class SettingsCardData
{
public bool HasOpenAIKey { get; set; }

public string NotificationsEnabled { get; set; } = string.Empty;

public string CacheLastUpdated { get; set; } = string.Empty;
Expand Down
11 changes: 0 additions & 11 deletions src/AzureExtension/Providers/SettingsCardTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,6 @@
{
"type": "Container",
"items": [
{
"type": "ActionSet",
"actions": [
{
"type": "Action.Execute",
"title": "%QuickstartPlayground_OpenAI_ClearKey%",
"verb": "ClearOpenAIKey",
"isEnabled": "${HasOpenAIKey}"
}
]
},
{
"type": "ActionSet",
"actions": [
Expand Down
10 changes: 0 additions & 10 deletions src/AzureExtension/Providers/SettingsUIController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using DevHomeAzureExtension.Contracts;
using DevHomeAzureExtension.DataManager;
using DevHomeAzureExtension.Helpers;
using DevHomeAzureExtension.QuickStartPlayground;
using Microsoft.Windows.DevHome.SDK;
using Serilog;
using Windows.Foundation;
Expand Down Expand Up @@ -62,11 +61,6 @@ public IAsyncOperation<ProviderOperationResult> OnAction(string action, string i
_log.Debug($"Verb: {verb}");
switch (verb)
{
case "ClearOpenAIKey":
_log.Information("Clearing OpenAI key");
_aiCredentialService.RemoveCredentials(OpenAIDevContainerQuickStartProjectProvider.LoginId, OpenAIDevContainerQuickStartProjectProvider.LoginId);
break;

case "ToggleNotifications":
var currentNotificationsEnabled = LocalSettings.ReadSettingAsync<string>(_notificationsEnabledString).Result ?? "true";
await LocalSettings.SaveSettingAsync(_notificationsEnabledString, currentNotificationsEnabled == "true" ? "false" : "true");
Expand Down Expand Up @@ -101,8 +95,6 @@ private ProviderOperationResult UpdateCard()
{
try
{
var hasOpenAIKey = _aiCredentialService.GetCredentials(OpenAIDevContainerQuickStartProjectProvider.LoginId, OpenAIDevContainerQuickStartProjectProvider.LoginId) is not null;

var notificationsEnabled = LocalSettings.ReadSettingAsync<string>(_notificationsEnabledString).Result ?? "true";
var notificationsEnabledString = (notificationsEnabled == "true") ? Resources.GetResource("Settings_NotificationsEnabled", _log) : Resources.GetResource("Settings_NotificationsDisabled", _log);

Expand All @@ -121,7 +113,6 @@ private ProviderOperationResult UpdateCard()

var settingsCardData = new SettingsCardData
{
HasOpenAIKey = hasOpenAIKey,
NotificationsEnabled = notificationsEnabledString,
CacheLastUpdated = lastUpdatedString,
UpdateAzureData = updateAzureDataString,
Expand Down Expand Up @@ -167,7 +158,6 @@ private static string[] GetSettingsCardResourceIdentifiers()
{
return
[
"QuickstartPlayground_OpenAI_ClearKey",
"Settings_ViewLogs",
];
}
Expand Down
120 changes: 0 additions & 120 deletions src/AzureExtension/QuickStartPlayground/AICredentialService.cs

This file was deleted.

This file was deleted.

Loading

0 comments on commit faaec7c

Please sign in to comment.