Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add helper classes for very simple settings #141

Merged
merged 15 commits into from
Nov 12, 2024

Conversation

zadjii-msft
Copy link
Owner

This updates the spec to enable CmdPal to host settings for extensions. Extensions can provide us essentially, a FormPage, and we'll give that special treatment as the settings for the extension. We're gonna use this in #100 in the future.

For now, I also added a helper set of classes for quickly constructing a Settings object, which is basically just a dictionary. Notably though, it lets us define simple control types for each of these settings, which we can then turn into the IFormPage on the developer's behalf.

See the SampleSettingsPage.cs for an example.

Closes #123

@zadjii zadjii mentioned this pull request Nov 11, 2024
@zadjii-msft zadjii-msft merged commit b96ab5e into main Nov 12, 2024
zadjii-msft added a commit that referenced this pull request Nov 12, 2024
As discussed in #121. 

Adds a new `IListItem.TextToSuggest` property. If an extension populates that, and the user hits right-arrow when the item is selected, we'll set the `SearchText` to that text. 

I didn't give it a UI treatment, because 
1. I'm not good at XAML
2. As noted in #121 (comment), there's complicated edge cases here. You have to track what's actually been typed, and then also have a ghost suggestion for the very first item (before the user types/up/downs at all). 

I didn't think it was valuable to implement that right now before we have A Real App. 

* targets #144 
  * which targets #142 
    * which targets #141 

and those guys are all merged as of #150
@zadjii-msft zadjii-msft linked an issue Nov 12, 2024 that may be closed by this pull request
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.

Write Settings helpers to abstract away working with settings Spec out how extensions provide settings to us
1 participant