Skip to content

Polish GenerateSettingsIndex.ps1 and propagate changes#19907

Merged
carlos-zamora merged 3 commits intomainfrom
dev/cazamor/sui/refactor-pwsh-script
Feb 26, 2026
Merged

Polish GenerateSettingsIndex.ps1 and propagate changes#19907
carlos-zamora merged 3 commits intomainfrom
dev/cazamor/sui/refactor-pwsh-script

Conversation

@carlos-zamora
Copy link
Member

Summary of the Pull Request

Cleans up GenerateSettingsIndex.ps1 by addressing the feedback Dustin left in #19519

Validation Steps Performed

✅ SUI search works

@github-actions

This comment has been minimized.

"Microsoft::Terminal::Settings::Editor::Launch" = @{
ResourceName = "Nav_Launch/Content"
NavigationParam = "Launch_Nav"
SubPage = "BreadcrumbSubPage::None"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: you could also leave this off and default it to None if it is not present

#include <LibraryResources.h>

// In Debug builds, USES_RESOURCE() expands to a lambda (for resource validation),
// which prevents constexpr evaluation. In Release it's a no-op identity macro.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AHHH CLEVER

return entries;
}

const std::array<IndexEntry, $($profileEntries.Count)>& LoadProfileIndex()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because you are just returning the array directly, you can make this auto and not have to ever repeat the type again

Suggested change
const std::array<IndexEntry, $($profileEntries.Count)>& LoadProfileIndex()
const auto& LoadProfileIndex()

@github-actions

This comment has been minimized.

@carlos-zamora carlos-zamora enabled auto-merge (squash) February 26, 2026 22:21
@github-actions

This comment was marked as resolved.

@carlos-zamora carlos-zamora merged commit fbd48e7 into main Feb 26, 2026
18 of 20 checks passed
@carlos-zamora carlos-zamora deleted the dev/cazamor/sui/refactor-pwsh-script branch February 26, 2026 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants