From 8404bfbebb9b02faad945948843cd47acd7bec2b Mon Sep 17 00:00:00 2001 From: Niels Laute Date: Tue, 10 Mar 2026 20:07:39 +0100 Subject: [PATCH] CmdPal-New extension - Show error when path does not exist (#46037) ## Summary of the Pull Request If path does not exist, error message is shown vs nothing image ## PR Checklist - [x] Closes: #38320 - [ ] **Communication:** I've discussed this with core contributors already. If the work hasn't been agreed, this work might be rejected - [ ] **Tests:** Added/updated and all pass - [ ] **Localization:** All end-user-facing strings can be localized - [ ] **Dev docs:** Added/updated - [ ] **New binaries:** Added on the required places - [ ] [JSON for signing](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ESRPSigning_core.json) for new binaries - [ ] [WXS for installer](https://github.com/microsoft/PowerToys/blob/main/installer/PowerToysSetup/Product.wxs) for new binaries and localization folder - [ ] [YML for CI pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ci/templates/build-powertoys-steps.yml) for new test projects - [ ] [YML for signed pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/release.yml) - [ ] **Documentation updated:** If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/windows-uwp/tree/docs/hub/powertoys) and link it here: #xxx ## Detailed Description of the Pull Request / Additional comments ## Validation Steps Performed --- .../Commands/NewExtensionForm.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/Commands/NewExtensionForm.cs b/src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/Commands/NewExtensionForm.cs index 62301714e9..c7f23535cd 100644 --- a/src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/Commands/NewExtensionForm.cs +++ b/src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/Commands/NewExtensionForm.cs @@ -30,7 +30,8 @@ internal sealed partial class NewExtensionForm : NewExtensionFormBase { "type": "TextBlock", "text": {{FormatJsonString(Properties.Resources.builtin_create_extension_page_title)}}, - "size": "large" + "size": "medium", + "weight": "bolder" }, { "type": "Input.Text", @@ -122,9 +123,8 @@ internal sealed partial class NewExtensionForm : NewExtensionFormBase } catch (Exception e) { - BuiltinsExtensionHost.Instance.HideStatus(_creatingMessage); - _creatingMessage.State = MessageState.Error; + _creatingMessage.Progress = null; _creatingMessage.Message = $"Error: {e.Message}"; }