Skip to content

Commit a4c69cf

Browse files
committed
clean up some TODOs
1 parent e5ea645 commit a4c69cf

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

tools/GenerateSettingsIndex.ps1

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ Directory to place generated C++ files.
1212
#>
1313
[CmdletBinding()]
1414
param(
15-
# TODO CARLOS: set mandatory to true and remove default params
16-
[Parameter(Mandatory=$false)][string]$SourceDir='D:\projects\terminal\src\cascadia\TerminalSettingsEditor\',
17-
[Parameter(Mandatory=$false)][string]$OutputDir='D:\projects\terminal\src\cascadia\TerminalSettingsEditor\Generated Files\'
15+
[Parameter(Mandatory=$false)][string]$SourceDir,
16+
[Parameter(Mandatory=$false)][string]$OutputDir
1817
)
1918

2019
# Prohibited UIDs (exact match, case-insensitive by default)
@@ -32,7 +31,8 @@ $ProhibitedXamlFiles = @(
3231
'CommonResources.xaml',
3332
'KeyChordListener.xaml',
3433
'NullableColorPicker.xaml',
35-
'SettingContainerStyle.xaml'
34+
'SettingContainerStyle.xaml',
35+
'AISettings.xaml'
3636
)
3737

3838
if (-not (Test-Path $SourceDir)) { throw "SourceDir not found: $SourceDir" }
@@ -378,13 +378,6 @@ Get-ChildItem -Path $SourceDir -Recurse -Filter *.xaml | ForEach-Object {
378378
{
379379
# populate with color scheme name at runtime
380380
$navigationParam = 'nullptr'
381-
382-
# TODO CARLOS: Not sure if I need this. Turns out the issue is that EditColorScheme doesn't have a BringIntoViewWhenLoaded()!
383-
if ($uid -match 'ColorScheme_SetAsDefault')
384-
{
385-
# SetAsDefault should focus SetAsDefaultButton, not wrapping SetAsDefaultContainer
386-
$name = 'SetAsDefaultButton'
387-
}
388381
}
389382
elseif ($pageClass -match 'Editor::GlobalAppearance')
390383
{
@@ -442,11 +435,6 @@ foreach ($e in $entries)
442435
$e.ParentPage -match 'Profiles_Terminal' -or
443436
$e.ParentPage -match 'Profiles_Advanced'))
444437
{
445-
# TODO CARLOS: needs special ElementToFocus (maybe I should be adding it earlier so that this works on Profiles.Defaults too)
446-
# if ($e.File -eq 'Appearances.xaml')
447-
# {
448-
#
449-
# }
450438
$profileEntries += $formattedEntry
451439
}
452440
elseif ($e.SubPage -eq 'BreadcrumbSubPage::ColorSchemes_Edit')

0 commit comments

Comments
 (0)