Compare commits

...

560 Commits

Author SHA1 Message Date
Yu Leng (from Dev Box)
17afafdad1 Merge branch 'main' into yuleng/cmdpal/AddGotoPage 2025-04-30 15:54:28 +08:00
Yu Leng (from Dev Box)
96cf83b3df merge main 2025-04-18 14:39:10 +08:00
Yu Leng (from Dev Box)
393903607b Merge branch 'main' into yuleng/cmdpal/AddGotoPage 2025-04-07 13:29:38 +08:00
Yu Leng (from Dev Box)
0ff400f71e Implement push args. 2025-03-24 15:33:38 +08:00
Yu Leng (from Dev Box)
60ee9bda0d Merge branch 'main' into yuleng/cmdpal/AddGotoPage 2025-03-24 14:03:40 +08:00
Yu Leng (from Dev Box)
44cf682a5d Merge branch 'main' into yuleng/cmdpal/AddGotoPage 2025-03-20 02:26:44 +08:00
Yu Leng (from Dev Box)
1da748c145 merge main 2025-03-19 17:45:16 +08:00
Yu Leng (from Dev Box)
49fff645b5 init 2025-03-19 17:39:00 +08:00
Mike Griese
3278146589 Merge pull request #582 from zadjii-msft/dev/migrie/merge-upstream-again-again
the last one (probably)
2025-03-18 20:43:06 -05:00
Mike Griese
37cab3800c Merge remote-tracking branch 'upstream/main' into dev/migrie/merge-upstream-again-again 2025-03-18 20:40:46 -05:00
Mike Griese
edad8bf784 Add a new icon for run (#574)
Couple other hotfixes:

* We broke FastUpToDate in #559. `PreserveNewest` fixes this
* Winget would fetch ALL the details before displaying the list. Big yikes. Lazy load that!
* We needed to better handle the case where we fetched items in response to a `ItemsChanged`, Loading is set to false, && there's an EmptyContent - we shouldn't flash the empty state before displaying the results
* Details had itsy-bitsy text (regressed in #482)
2025-03-18 15:00:50 -07:00
Mike Griese
df65e2a568 get rid of the thumbnail setting (#575) 2025-03-18 15:00:33 -07:00
Niels Laute
1d33f2b645 Minor UX tweaks (#562)
- Tweaking the empty-screen icon + text visualization
- Fixed a bug in the details pane that clipped the content when scrolling (we were using padding on the scrollviewer vs. margin on the child grid)
- Vertically center the tags on the item line
2025-03-18 11:32:48 -07:00
moooyo
e6acb4deb6 Migrate system commands extension (#452)
## Summary of the Pull Request


Ports the PT System commands to CmdPal. 

Tooltips have been replaced with Details on those list items. 

CommandResult.Confirm was used for most of the MessageBox usages (the only remaining one is after the recycle bin is emptied)

https://github.com/user-attachments/assets/5b849f56-8346-4a6d-9ecb-13757aed738a


## PR Checklist

- [x] **Closes:** #384 

---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>
2025-03-18 11:26:33 -07:00
Seraphima Zykova
973b3323fe Thumbnails fix (#573)
Fixed the crash related to thumbnails.
* Set the Unicode charset for the native SHFILEINFO
* Ensure proper releasing of the icon handle

<!-- Please review the items on the PR checklist before submitting-->
## PR Checklist

- [x] **Closes:** https://github.com/zadjii-msft/PowerToys/issues/440
2025-03-18 11:22:14 -07:00
moooyo
997c8acb46 Fix the MSI installer issue when App plugin is running. (#557)
Our App plugin used the ShellLink.Open to retrieve the FullPath. But it would open the ink file exclusively. This may cause some problem. Especially when we try to upgrade some installed App through MSI installer, installer would throw exception and show a prompt to user.

Original discussion here:

1. https://github.com/microsoft/PowerToys/pull/37654
2. https://github.com/microsoft/PowerToys/pull/37924
3. https://github.com/microsoft/PowerToys/pull/37987

Tested locally with VS.


---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>
2025-03-18 11:21:04 -07:00
Stefan Markovic
dc9bc113d8 Provide a bit better Settings/OOBE screenshots (#570)
just a bit better placeholders so we don't merge current FIX THIS ones
2025-03-18 07:40:13 -07:00
Mike Griese
4e30d9ce88 Some better logging for extension startup (#571)
The E_PATH_NOT_FOUND happens if you just delete an extension, without uninstall

This should make extension startup easier to track (at the least)
2025-03-18 09:28:01 -05:00
Niels Laute
bab156763d ToastWindows tweak (#569)
- Using default acrylic which is fine for notifications (it's not activated anyways because the window does not have focus..), and it removes a bunch of C# code.
- Minor tweaks to the padding of the toastwindow so it's more similar to OS toasts
2025-03-18 07:18:38 -07:00
moooyo
56f6f144bd Add Icon for TimeDate extension in settings page. (#565)
1. Remove unused file
2. Fix Icon in Extensions setting page.
3. Fix save settings issue

---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>
2025-03-18 06:25:02 -07:00
Niels Laute
6dcaa8dca4 Searchbox with suggest text + cursor fix (#482)
- Re-templated the search box template to use the TextBox `Description` property as the suggested text
- Created a custom background color in lightmode so that the cursor has enough contrast and shows. As a result, the Acrylic is less intense in light mode :(.

Closes #348 
Closes #427 

---------

Co-authored-by: Mike Griese <migrie@microsoft.com>
2025-03-18 06:23:48 -07:00
Mike Griese
47d0538a2f Make sure all the MinVersion's are 19041 (#568)
Closes #493
2025-03-18 06:23:27 -07:00
Mike Griese
df64a02738 Mildly reduce memory leakage (#564)
This doesn't totally resolve the leak tracked in #545, but it's dramatically less bad now. 

* Use a `WeakReference` to the page context for all extension objects.
  - actually makes the code much cleaner to read. 
* Revoke all event handlers we attach to ExtensionObjects


Because it got mangled into this commit history:
This also has the code we need to call for #546, but it doesn't work. I'll reach out to Mano for this.
2025-03-18 06:23:18 -07:00
Stefan Markovic
78c8195668 try fix ci 2 (#567) 2025-03-18 11:07:51 +01:00
Stefan Markovic
728b36420c Try fix ci (#566) 2025-03-18 09:55:15 +01:00
Mike Griese
90d9bca81d more nits (#563)
* MTAThread considered harmful
* a bunch of spel
* more spel
* it helps to save files
* Don't add a toggle if it doesn't do anything
* ffs code just trim trailing whitespace on save

---------

Co-authored-by: Mike Griese <zadjii@gmail.com>
2025-03-17 13:48:30 -07:00
Stefan Markovic
180ac1e84e Various fixes. See description (#558)
1) Clicking CmdPal in PT quick access flyout now shows CmdPal
2) Removed New badge from settings. For now! we'll bring it back properly once we are close to the release!
3) Reverted unrelated file (src/modules/registrypreview/RegistryPreviewUILib/MonacoEditorControl.xaml.cs) change 
4) Fix package name in customaction.cpp to fix package uninstall on PT uninstall
5) Reverted unrelated file  (src/modules/launcher/PowerLauncher/Helper/ThemeManager.cs) change
6) Fix wrongly added words in expect.txt
7) Fix local build - do not include cmdpal
8) Revert unrelated change - src/common/AllExperiments/Logger.cs
9) Revert unrelated change - src/modules/AdvancedPaste/AdvancedPasteModuleInterface/dllmain.cpp
2025-03-17 09:05:17 -07:00
Niels Laute
0e77697e2a Colored icons (#559)
* AllApps

* File Explorer

* Windows Settings

* Windows Terminal

* DateTime

* Calculator

* Registry

* WinGet

* WebSearch

* Use PNGs instead of SVGs for better rendering
2025-03-17 06:36:33 -07:00
Jaime Bernardo
57c193a2d0 Fix CommandPalette package checking at runtime (#556)
<!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? -->
## Summary of the Pull Request

After 33ec492389 , The logic for Command Palette module interface to verify if the package is installed is wrong because Command Palette's version doesn't track PowerToys version.

This PR makes the version check optional so we can have a different logic when checking the package for Command Palette.

<!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well -->
## Validation Steps Performed
Tested build from Dart and PowerToys started Command Palette correctly.
2025-03-17 06:31:49 -07:00
Mike Griese
6d07dba9e2 Add some tooltips, and tighten up some phrasing (#555)
* Tags have their tooltip default to their text, if no `ToolTip` is explicitly set
* add a `ctrl+k` tooltip to the more commands button
* change the naming of "indexer" to be "file search" (which is what folks really care about)
* change the naming of "shell commands" to be "Run commands" (again, this is more intuitive)
2025-03-16 06:08:31 -05:00
Mike Griese
18ff9d4b99 Add support for a startup task (#554)
Closes #98
2025-03-16 06:08:15 -05:00
Mike Griese
f762f0dc37 Lazy-init details for app items (#552)
Use less memory on apps by lazy-init'ing details, icons
2025-03-16 06:07:56 -05:00
Mike Griese
16650db1c9 A pair of threading issues: MoreCommands and Tags (#553)
* Issue the first: This hit with the media controls sample. I'm not really sure how it happened, with the menu changing which we were initializing it? But it happens, and now it doesn't
* Issues the second: `Tags` was an `ObservableCollection`, and that was getting created off the UI thread, then updated on the UI thread, and everyone was upset, and there was a pile of COM WRONG_THREAD issues. 
* ISSUE THE THIRD: FIXES THE TAG COLORS! Closes #365
2025-03-15 20:02:11 -05:00
Jaime Bernardo
ef085c532a [OOBE]Fix crash when opening OOBE (#551)
<!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? -->
## Summary of the Pull Request

Oobe changes were missing the insert of a module, causing Settings to crash when we tried to open OOBE.

<!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well -->
## Validation Steps Performed

Run PowerToys Settings and click "Welcome to PowerToys" and verify it doesn't crash.
2025-03-14 22:08:06 -05:00
Mike Griese
4cb35e2954 [MAIN] this is so bad (#550)
(cherry picked from commit ddbfbd7b89105a9d3843b7a0284ff03ed367b808)
(cherry picked from commit 803d800923f2144c61a484484a4796667ae57727)

Co-authored-by: Mike Griese <zadjii@gmail.com>
2025-03-14 10:54:27 -07:00
Seraphima Zykova
cc92362f54 [File Search] Fix unresponsive UI after scrolling (#535)
UI could become unresponsive after searching and scrolling through files (to reproduce, I needed around 180-260 items in the list).

The fix forces triggering loading more on a non-UI thread and ensures non-simultaneous loading.
2025-03-14 10:44:19 -07:00
Mike Griese
fd5606bcfa [build] fix the bindir (#547)
Co-authored-by: Mike Griese <zadjii@gmail.com>
2025-03-13 14:50:40 -07:00
Jaime Bernardo
28f129dc16 [Deps]Align Webview2 versions to fix deps.json check (#544)
<!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? -->
## Summary of the Pull Request
Bring back the WebView2 references that were removed in 9365bc1a7b

<!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well -->
## Validation Steps Performed
deps.json local check is OK

---------

Co-authored-by: Mike Griese <migrie@microsoft.com>
2025-03-13 11:32:41 -07:00
Mike Griese
b728c341fa Add viewmodels to ConfirmResultArgs (#543)
From #536 originally

Also adds more elaborate samples for them.

Closes #399

---------

Co-authored-by: moooyo <42196638+moooyo@users.noreply.github.com>
2025-03-13 11:32:03 -07:00
Kayla Cinnamon
b92525f9aa update banner on Run page (#540)
Updates the description of Command Palette on the settings page
Updates the banner on the Run settings page promoting Command Palette
2025-03-13 08:20:55 -07:00
Mike Griese
9365bc1a7b A bunch of PR nits (#541)
* update template

* Start drafting a doc for our core values

mostly just stashing

* Add more text

* some pr nits

* PG-SP-ID not needed after all

* look a dependency we didn't need

* more deps we didn't need

* pretty sure these were removed upstream

* Trying to merge expect.txt

* okay sure

* Revert "Trying to merge expect.txt"

This reverts commit 96750a69161e36400acf270573a2f08200c8c7e5.

* unnecessary local

* enable nullable on clipboard history

---------

Co-authored-by: Mike Griese <zadjii@gmail.com>
2025-03-13 08:06:06 -07:00
Mike Griese
916998ff25 Merge pull request #542 from zadjii-msft/dev/migrie/merge-upstream-again
Merges the upstream changes to expect.txt, which the PR is very confused about
2025-03-13 09:35:10 -05:00
Mike Griese
13d41e0b27 Merge remote-tracking branch 'upstream/main' into dev/migrie/merge-upstream-again 2025-03-13 09:32:31 -05:00
Mike Griese
174cd5d99e Merge pull request #539 from zadjii-msft/dev/migrie/sync-upstream
Already kinda did this in #537, but git doesn't know that
2025-03-12 13:05:35 -05:00
Mike Griese
4c420b59d9 Merge remote-tracking branch 'upstream/main' into dev/migrie/sync-upstream 2025-03-12 13:02:39 -05:00
Mike Griese
ffab2db1f9 Add a README (#538)
Also fix one bug with the bookmarks and quit extensions
2025-03-12 04:55:46 -07:00
Mike Griese
2bb66b5404 [Deps]Update dependencies to .NET 9.0.3 (#537)
* [Deps]Update dependencies to .NET 9.0.3

* Sometimes mike, you should build before rolling a CI build

---------

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
2025-03-12 04:23:23 -07:00
Jaime Bernardo
abdc556ce6 [Deps]Update CommunityToolkit.WinUI to 8.2.250129-preview2 (#534)
<!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? -->
## Summary of the Pull Request
Update CommunityToolkit.WinUI dependencies to 8.2.250129-preview2 .
Related to #245 - fixes the part about PowerToys Settings crashing when opening the Dashboard page.

<!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well -->
## Validation Steps Performed
Open PowerToys settings and it opens in the Dashboard page without crashing.
2025-03-12 03:53:18 -07:00
Mike Griese
b9df74d227 Bump the remaining vcxproj's to the new WASDK version (#533)
This is from #531
2025-03-11 11:04:59 -07:00
Mike Griese
a025870da2 Format, and bump the project template to 0.0.9 (#532)
Closes #492
Closes #484
2025-03-11 10:43:48 -07:00
Mike Griese
3dcf93a3b3 Merge pull request #531 from zadjii-msft/dev/jaime/merge-latest-main
<!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? -->
## Summary of the Pull Request
Merges latest upstream main, so we can update to Windows App SDK 1.6.250205002 and CsWinRT 2.20

This is required as a preliminary step to update WinUI toolkit controls to fix the crash in the Settings Dashboard page.
2025-03-11 12:41:30 -05:00
Jaime Bernardo
88677e6b37 proper fix for spellcheck 2025-03-11 15:25:02 +00:00
Jaime Bernardo
d11ee7d320 Fix spellcheck 2025-03-11 15:20:22 +00:00
Jaime Bernardo
5b1d7722bf Merge remote-tracking branch 'upstream/main' into main 2025-03-11 14:45:15 +00:00
Mike Griese
ab576c6d3e Remove all the old samples that we can't ship ourselves (#530)
There were some absolutely critical examples in here to make sure that the APIs
worked, but at this point, those are usually exercised in a different sample
somewhere.

RIP in peace spongebot. You'll be missed.

Closes #133
Closes #154
2025-03-11 07:01:41 -07:00
Mike Griese
4fca47201d Localize all the remaining in-app resources (#521)
There's a couple things I left un-translated, but those are typically:
* exception text, that I thought should be left un-translated
* weird things like the `quit` or `reload` command, that depend on literally typing `quit`


Closes #352 
Closes #124
2025-03-11 06:57:18 -07:00
Mike Griese
971aaceaa3 Last API breaks before 0.1 (#529)
* Removes `ExtensionHost.HostingHwnd`
  * This closes #477 
* Removes `ExtensionHost.LanguageOverride`
  * This closes #135 (as not planned, frankly. Having a different locale than the OS has always been fraught with pain for the Terminal, not about to repeat that here)
* This also removes the straggling `IFormPage`, `IForm`, `IMarkdownPage`, which were all replaced with `IContent`
* Adds `StatusContext` to `ShowStatus`, so that messages can just be displayed on the page they're from
  * Closes #471
2025-03-11 06:42:44 -07:00
Mike Griese
bb40313443 Uhg, I broke everything (#528)
This is stuff that regressed in #518, for the large part. 

This is also about the time I discovered #525, #526 and #527
2025-03-11 06:09:22 -07:00
Stefan Markovic
03db033bba Fix scrolling when many items (e.g. All Apps) and fix Details labels update (#498)
Closes #407 (at least well enough)
Closes #466
Closes #481 

Related to #365, but doesn't fix that.
2025-03-10 12:16:45 -05:00
Jaime Bernardo
68cc9b84f4 [GPO]Add a policy for controlling CmdPal enabled state (#503)
As bad as the title sounds. 

Fix is as easy as you'd think.

Closes #512.
2025-03-10 06:51:16 -07:00
Mike Griese
013881783a fix handling command invokes ON THE UI THREAD (#518)
As bad as the title sounds. 

Fix is as easy as you'd think.

Closes #512.
2025-03-10 06:49:31 -07:00
Mike Griese
5002889e27 virtual on all, and other toolkit changes (#515)
Closes #254 
Closes #472 
Closes #491
2025-03-10 06:49:24 -07:00
Mike Griese
6df8685b96 Fix bookmarks bugs by tidying code (#513)
The bookmarks code was always a little wacky. This is 100% less wack.

Fixes #467
Fixes #468
2025-03-10 06:49:13 -07:00
Mike Griese
26c663e396 Add support for alt+left to go back (#487)
Closes #398
2025-03-07 19:59:53 -06:00
Mike Griese
27797d031a Add support for svg icons (#486)
Yep, it was this easy to add an SVG as an ImageSource on WinUI 3

Pretty sure it's impossible in WinUI 2 though

This is related to #182, but I think we should also like allow for `<path>` icons too
2025-03-07 19:59:08 -06:00
Mike Griese
92106e60de Don't fetch all the items all at once (#501)
_targets #499_

closes #389 
closes #390 
closes #391
Probably also closes #388 

but also creates #502, and I think that's a reasonable tradeoff
2025-03-07 19:58:21 -06:00
Mike Griese
5147b26a01 Browse command and EmptyContent (#499)
Due to the nature of FHL I didn't do a great job disentangling the following two big features:

* Support for `EmptyContent`
  * closes #261
* Support for a "Browse" `DirectoryPage` which is like a file explorer. 
  * Folder bookmarks can open it
  * So can folders in the file search
* Also adds a fallback command for if you type a file path, we'll show that


drive-by fixes the icon on the context menu flyout, if the Command has an icon that's different from the list item. We'll prefer the Command's icon to the CommandItem's icon
2025-03-07 19:55:54 -06:00
Mike Griese
abdd298c3c Add support for commands on content pages (#495)
Basically just abstracts what we already had for list items, and uses that abstraction for contentpageviewmodel too


Closes #476
2025-03-05 14:08:14 -08:00
Mike Griese
5accdc636f Include the extension name in the weight of the item (#496)
This better matches the way vscode works, even if it doesn't explicitly show the extension name in the item

Weighting might need work, but it probably all needs work so 🤷
2025-03-05 14:07:57 -08:00
Mike Griese
9dc04d8f27 This should make details observable (#497)
This doesn't take care of #466, but it is a bug nonetheless
2025-03-05 14:07:41 -08:00
Mike Griese
fcc350a73c Merge pull request #469 from zadjii-msft/stefan/try_fix_git_history
Merge upstream PT #14 and try fix git history
2025-02-28 12:45:18 -06:00
Stefan Markovic
aaa226f99f Merge remote-tracking branch 'mainPT/main' 2025-02-28 15:06:18 +01:00
Mike Griese
29c5c78eb3 Bump template to 0.0.7 SDK (#464)
Bump template to 0.0.7 SDK
2025-02-27 13:04:01 -08:00
Stefan Markovic
d349e3374e Merge upstream PT #13 (#462)
* [Workspaces] implement the move feature (#35480)

* [Workspaces] Add move functionality

* spell checker

* [Workspaces] Modify Arranger to move apps without launch

* moved ipc helper

* removed callback

* use LauncherStatus in WindowArranger

* wait for launching next app

* launch in a separate thread and protect by mutexes

* update app version in advance

* changed canceling launch

* increased waiting time

* Fix optional parameter load from json

* changed arranger waiting time

* additional waiting time for Outlook

* added app id

* ensure ids before launch

* set id in editor

* minor updates

* [Workspaces] Move: Get the nearest window when moving a window

* [Workspaces] convert optional boolean to enum to avoid json problems

* Handle case when the new Application Property "moveIfExists" does not exist

* Re-implementing app-window pairing for moving feature.

* spell checker

* XAML formatting

* Fixing bug: IPC message not arriving

* spell checker

* Removing app-level-setting for move app. Also fixed compiler errors due styling.

* Updating editor window layout

* Re-implementing window positioning UI elements

* XAML formatting

* Code review findings

* Code cleanup

* Code cleanup

* Code cleanup

* code cleanup

* Code cleanup

* Code cleanup

* fix Move attribute after launch and snapshot

* Extend WindowArranger with PWA functionality to detect different PWA apps. PwaHelper moved to the common library

* fix repeat counter in the editor

* Code optimization

* code cleanup, optimization

* fix double-processing window

---------

Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: donlaci <donlaci@yahoo.com>

* [KeyboardManager]Fix mapping shift to numpad (#35890)

* Keyboard Manger fix numpad as shift

Fixed shift not being released if a numpad key as shift.

* Added comments

* Fix typo

* Fix the numpad unlocked key not working if the locked version is overridden by shift

* Fix spelling check.

* Revert the VK_CLEAR change.

---------

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* [Analyzers] Update .editorconfig with rules to relax IDE errors (#36095)

* [Analyzers] Remove duplicate pascal case style from .editorconfig

* [Analyzers] Configured severity for individual IDE and CA rules showing as errors in VS

Set severity for IDE0005, IDE0008, IDE0016, IDE0018, IDE0019, IDE0021, IDE0022, IDE0023, IDE0025, IDE0027, IDE0028, IDE0029, IDE0031, IDE0032, IDE0034, IDE0036, IDE0039, IDE0042, IDE0044, IDE0045, IDE0046, IDE0047, IDE0057, IDE0051, IDE0052, IDE0054, IDE0055, IDE0056, IDE0057, IDE0059, IDE0060, IDE0061, IDE0063, IDE0071, IDE0073, IDE0074, IDE0075, IDE0077, IDE0078, IDE0083, IDE0090, IDE0100, IDE0130, IDE160, IDE180, IDE0200, IDE0240, IDE0250, IDE0251, IDE0260, IDE0270, IDE0290, IDE0300, IDE0301, IDE0305, IDE1005, IDE1006, CA1859, CA2022, CA2263

* [Analyzers] Fix mismatched analyzer descriptions

* [Analyzers] Fix misspelling

* Update .editorconfig

Made the following style rules `silent` instead of `suggestion`: 
- Use explicit type instead of 'var'
- Use expression body for ...
- Use block-scoped namespace

* [Analyzers] Set IDE0290 to silent

* [Analyzers] Remove IDE1006 configuration from .editorconfig in favor of making exclusions for the few entries

* [Analyzers][Indexer] Add IDE1006 suppressions

* [Analyzers][Peek] Add IDE1006 suppression

* [Analyzers][MWB] Add IDE1006 suppression.

* [Analyzers][Plugins] Add IDE1006 suppression

* [Analyzers][ImageResizer] Suppress IDE0073 to retain original copyright

* [Analyzers] Remove IDE0073 severity change in .editorconfig

---------

Co-authored-by: Ani <115020168+drawbyperpetual@users.noreply.github.com>

* [Workspaces] PWA follow-up (#36217)

* [PTRun][Calculator]Allow scientific notation with lowercase 'e' (#36187)

* [Workspaces] Add encoder parameter to bitmap.save() (#36228)

* [Workspaces] Add encoder parameter to bitmap.save()

* 1 more call fixed

* Move repeated code to the csharp library

* [Workspaces] Implement store of app window's size and position (#36086)

* [Workspaces] Implement store of app window's size and position

* Modifying the default values to -1. The program will use the original default values for the first run.

* [ScreenRuler]Add setting to show the measurement in an extra unit (#35887)

* display ruler: supporting millimeter and other units

* Measurement Tool: UI Setting for an extra unit

* Update images

* spelling

* spelling

* suit code style

* Fix for code review

* remove weird file

* rename field

* [Deps]Update MSTest from 3.5.0 to 3.6.3 (#36115)

* Update MSTest from 3.5.0 to 3.6.3

* Use STA attributes that are now part of MSTest

* Adding Jerry to community.md (#36232)

Update COMMUNITY.md

* [Workspaces] Arranger: smart timer (#36096)

* [Workspaces] Add move functionality

* spell checker

* [Workspaces] Modify Arranger to move apps without launch

* moved ipc helper

* removed callback

* use LauncherStatus in WindowArranger

* wait for launching next app

* launch in a separate thread and protect by mutexes

* update app version in advance

* changed canceling launch

* increased waiting time

* Fix optional parameter load from json

* changed arranger waiting time

* additional waiting time for Outlook

* added app id

* ensure ids before launch

* set id in editor

* minor updates

* [Workspaces] Move: Get the nearest window when moving a window

* [Workspaces] convert optional boolean to enum to avoid json problems

* Handle case when the new Application Property "moveIfExists" does not exist

* Re-implementing app-window pairing for moving feature.

* spell checker

* XAML formatting

* Fixing bug: IPC message not arriving

* spell checker

* Removing app-level-setting for move app. Also fixed compiler errors due styling.

* Updating editor window layout

* Re-implementing window positioning UI elements

* XAML formatting

* Code review findings

* Code cleanup

* Code cleanup

* Code cleanup

* code cleanup

* Code cleanup

* Code cleanup

* [Workspaces] Arranger: Reset wait timer after each successful arrange action

* fix merge error

---------

Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: donlaci <donlaci@yahoo.com>

* Upgrade to check-spelling v0.0.24 (#36235)

This upgrades to [v0.0.24](https://github.com/check-spelling/check-spelling/releases/tag/v0.0.24).

A number of GitHub APIs are being turned off shortly, so you need to upgrade or various uncertain outcomes will occur.

There's a new accessibility forbidden pattern:

> Do not use `(click) here` links
> For more information, see:
> * https://www.w3.org/QA/Tips/noClickHere
> * https://webaim.org/techniques/hypertext/link_text
> * https://granicus.com/blog/why-click-here-links-are-bad/
> * https://heyoka.medium.com/dont-use-click-here-f32f445d1021
```pl
(?i)(?:>|\[)(?:(?:click |)here|link|(?:read |)more)(?:</|\]\()
```

There are some minor bugs that I'm aware of and which I've fixed since this release, but I don't expect to make another release this month.

I've added a pair of patterns for includes and pragmas. My argument is that the **compiler** will _generally_ tell you if you've misspelled an include and the **linker** will _generally_ tell you if you misspell a lib.

- There's a caveat here: If your include case-insensitively matches the referenced file (but doesn't properly match it), then unless you either use a case-sensitive file system (as opposed to case-preserving) or beg clang to warn, you won't notice when you make this specific mistake -- this matters in that a couple of Windows headers (e.g. Unknwn.h) have particular case and repositories don't tend to consistently/properly write them.

* Adjust to community.md, shifting jerry's github user name (#36242)

Update COMMUNITY.md

* [AOT compatible] Resolve AOT Build Error in Peek.UI (#36194)

* add partial for aot support

* add Microsoft.NET.ILLink.Tasks to packages.props

* format

* Revert "format"

This reverts commit 742d5e2214.

* add Microsoft.NET.ILLink.Tasks to notice.md

* add auto reference

* update script to remove the 'Auto-reference line'

---------

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Awake Updates - `TILLSON_11272024` (#36049)

* Update with bug fixes for tray icon and support for parent process

* Process information enum

* Update the docs

* Fix spelling

* Make sure that PID is used in PT config flow

* Logic for checks based on #34148

* Update with link to PR

* Fixes #34717

* Small cleanup

* Proper task segmentation in a function

* Cleanup the code

* Fix synchronization context issue

* Update planning doc

* Test disabling caching to see if that manages to pass CI

* Cleanup to make sure that we're logging things properly.

* Update ci.yml

* Disable cache to pass CI

* Retry logic

* Cleanup

* Code cleanup

* Fixes #35848

* Update notes and codename

* After third attempt, log error instead of throwing exception

* More cleanup to avoid double execution

* Add expected word

* Safeguards for bad values for timed keep-awake

* More updates to make sure I am using uint

* Update error message

* Update packages

* Fix notice and revert CsWinRT upgrade

* Codename update

* Update expect.txt

* Update the struct

* Ensuring we're properly awaiting tray initialization

* Update to make sure tray reflects the bound process

* Cleanup, proper JSON serialization for logs.

* Not needed.

* Add command validation logic

* Moving the initialization logic earlier

* Make sure we show the display state in the tooltip

* Update tray string

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update logic for icon resets

* Update doc

* Simplify function for setting mode shell icon

* Issues should be properly linked

* Minor cleanup

* Update timed behavior

---------

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>

* [Workspaces] detecting right app version (#36100)

* [Workspaces] Add move functionality

* spell checker

* [Workspaces] Modify Arranger to move apps without launch

* moved ipc helper

* removed callback

* use LauncherStatus in WindowArranger

* wait for launching next app

* launch in a separate thread and protect by mutexes

* update app version in advance

* changed canceling launch

* increased waiting time

* Fix optional parameter load from json

* changed arranger waiting time

* additional waiting time for Outlook

* added app id

* ensure ids before launch

* set id in editor

* minor updates

* [Workspaces] Move: Get the nearest window when moving a window

* [Workspaces] convert optional boolean to enum to avoid json problems

* Handle case when the new Application Property "moveIfExists" does not exist

* Re-implementing app-window pairing for moving feature.

* spell checker

* XAML formatting

* Fixing bug: IPC message not arriving

* spell checker

* Removing app-level-setting for move app. Also fixed compiler errors due styling.

* Updating editor window layout

* Re-implementing window positioning UI elements

* XAML formatting

* Code review findings

* Code cleanup

* Code cleanup

* Code cleanup

* code cleanup

* Code cleanup

* Code cleanup

* [Workspaces] fix detection of specific version of apps

---------

Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: donlaci <donlaci@yahoo.com>

* Move the XamlStyler config to src/ (#36202)

my never ending goal to minimize files in the root dir

* [AdvancedPaste]Add Semantic Kernel opt-in to allow chaining of paste actions (#35902)

* [AdvancedPaste] Semantic Kernel support

* Changed log-line with potentially sensitive info

* Spellcheck issues

* Various improvements for Semantic Kernel

* Spellcheck issue

* Refactored Clipboard routines

* Added integration tests for KernelService

* Extra telemetry for AdvancedPaste

* Added 'Hotkey' suffix to AdvancedPaste_Settings telemetry event

* Added IsSavedQuery

* Added KernelQueryCache

* Refactoring

* Added KernelQueryCache to BugReportTool delete list

* Added opt-n for Semantic Kernel

* Fixed bug with KernelQueryCache

* Ability to view last AI chat message on error

* Improved kernel query cache

* Used System.IO.Abstractions and improved tests

* Fixed under-count of token usage

* Used Semantic Kernel icon

* Cleanup

* Add missing EndProject line

* Fix dependency version conflicts

* Fix NOTICE.md

* Correct place of SemanticKernel in NOTICE.md

* Unlinked CustomPreview toggle from AI

* Added Microsoft.Bcl.AsyncInterfaces dependency to AdvancedPaste

* Fixed NOTICE.md order

* Moved Custom Preview to behaviour section

* Made Image to Text raise error on empty output

* Added AIServiceBatchIntegrationTests

* Updated AIServiceBatchIntegrationTests

* Added prompt moderation

* Moved GPO Infobar to better location

* [Launcher]Port from WPF-UI to .NET 9 WPF (#36215)

* Initial implementation

* Fix fluent style

* Fix no endline

* Update expect.txt

* Fix formatting

* Fix light theme looking bad on Windows 10

* fix formatting

* test change

* Now really fixed W10

* Add a comment

* Fix typos

* Fix spellcheck errors

* Fix spellcheck pattern for websites

* Change patterns for spellcheck in the right file

* Fix XAML styling

* Fix contrast colors on W11

* Fix formatting

* Removed emty line

* Fix formatting

* Added comment to fluentHC file

* fix comment

* Fix Windows10 again.
Adress feedback.

* W11 fix chaning from high contrast to normal not having correct background

* W10 Fix high contrast not working after switching from light/dark moed

* Address feedback

* Fix formatting

* Second W11 fix chaning from high contrast to normal not having correct background

* [UX]Updating New+ and Settings icons (#36290)

* Updated icons

* Updating more icons and icos

* [Settings][Dashboard] Accessibility fixes (#36280)

* make narrator announce buttons/toggles

* add toggles module name

* [ci]Sign OpenAI dll that's not signed (#36299)

* Update CODEOWNERS to include gordon, jerry and kayla (#36308)

* Update CODEOWNERS

* Update names.txt

* Making the powertoys-code-owners team code owners (#36310)

* Update CODEOWNERS

* Update names.txt

* Update CODEOWNERS

* [FZEditor]Fix Create new layout dialog radio buttons IsChecked values  (#36320)

* 0.87 changelog (#36335)

* 0.87 changelog

* Fix spellcheck

* Update README.md

Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

---------

Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

* [PTRun]Fix WPF transparent border issue on Windows 10 (#36392)

* Added border on W10

* Added a comment

---------
Co-authored-by: Davide Giacometti <25966642+davidegiacometti@users.noreply.github.com>

* [PTRun]Fix .NET 9 crash in OneNote (#36417)

* Fix crash in OneNote Run

* added better comment

* [AdvancedPaste]Fix NullReferenceException on Dispose (#36428)

[AdvancedPaste] Fixed NullReferenceException on Dispose

* [Fuzz] Add fuzz testing for AdvancedPaste and new pipeline for onboarding OneFuzz (#36329)

* add fuzz

* install .net8

* add spelling check

* refine the pipeline

* add readme and update the test code

* fix spelling error

* change to weekly run

* Add New CI Pipeline for Latest WindowsAppSDK (#36282)

This PR introduces the following changes to the CI pipeline and version management:

Pipeline Enhancements:
1. Added a new script UpdateVersions.ps1 to automate the update of Microsoft.WindowsAppSDK versions across various project files.
2. Introduced a new pipeline configuration ci-using-the-latest-winappsdk.yml to build using the latest Microsoft.WindowsAppSDK.
3. Updated existing pipeline configurations to support the new useLatestWinAppSDK parameter.

Pipeline Configuration Updates:
1. Updated job-build-project.yml to handle the useLatestWinAppSDK parameter and adjust the RestoreAdditionalProjectSourcesArg accordingly.
2. Added a new template steps-update-winappsdk-and-restore-nuget.yml for updating and restoring NuGet packages with the latest Microsoft.WindowsAppSDK.
3. Added WinAPPSDK version selection, the pipeline can be manually triggered to use the specified version.

---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>

* [AOT compatible] Make HostsUILib become AOT compatible (#36136)

* Remove AOT configuration

* Refer to AOT compatibility props

---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>

* [AOT compatible] Clean up some AOT build issue in FilePreviewCommon and MarkdownPreviewHandler (#36207)

* Use AppContext.BaseDirectory to replace assembly.GetExeAseembly.Location.
Fix json serilizer aot issue.

* clean up some AOT build issue

* Update src/modules/previewpane/MarkdownPreviewHandler/MarkdownPreviewHandlerControl.cs

Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

* Update src/common/FilePreviewCommon/Formatters/JsonFormatter.cs

Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>
Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

* Add new pipeline using the latest webview2 from Edge Canary (#36317)

* using the latest webview2 for testing


---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>

* [Bug fix] Making the OpenAI key configuration page scrollable. (#36359)

* Fixed #34470

---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>

* [Bug fix] Add a format validation step before format conversion. (#36404)

This PR aims to fix the bug #35225 by introducing a new method IsJson to determine if a given text is in JSON format.
The IsJson method is then utilized in the ToJsonFromXmlOrCsvAsync method to optimize the processing logic.
If the text is already in JSON format, it is returned directly without further conversion from XML or CSV.

Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>
Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

* Add more STCA team members (#36438)

* Add more STCA team members

* Include more spelling check errors

* Remove non-alpha in dictionary

* Add Zhaopeng Wang

* Fix spell checking error

* Remove "prerelease: true" (#36484)

* Remove "prerelease: true"

The Microsoft.WinGet.DSC module is GA so prerelease: true is no longer needed.

* Update expect.txt

fixing spellcheck warning

---------

Co-authored-by: Clint Rutkas <clint@rutkas.com>

* [Docs]Update README for 0.87.1 release (#36534)

* [CI] Enhance build Pipeline Reliability with Retry Logic and Improved Error Messaging (#36529)

* update pipeline with retry

* remove tests

* Add team member (#36590)

* [New+]Don't override New actions from Explorer on Windows 10 (#36467)

* [New+]Don't override New actions from Explorer

* Update src/modules/NewPlus/NewShellExtensionContextMenu.win10/shell_context_menu_win10.cpp

* Update src/modules/NewPlus/NewShellExtensionContextMenu.win10/shell_context_menu_win10.cpp

* Add pattern for learn.microsoft links

* Also only Query for context menu

* [PTRun][Calculator]Handle hexadecimal numbers to not return divide by 0 error (#36390)

* add '0x' handling for divide by 0 scenarios

* fix comment on division by 0 check

---------

Co-authored-by: Connor Plante <connor.plante@gmail.com>

* [TextExtractor]Minor UI/Accessibility fixes in the overlay UI (#36356)

minor UI and accessibility fixes

* [PTRun][Calculator]Update mages to v3.0.0 and support for `randi(n)` (#36560)

* update to mages 3.0.0

* allow randi() in calculator plugin

* fix tests and input validation

* fix spell check

* [QuickAccent]Added ć for Slovenian (#36336) (#36338)

* Fix snapping Workspaces Editor to Fancy Zones (#36463)

* Remove Workspaces Editor from Fancy Zone's excluded app list

* removed unused string

---------

Co-authored-by: Seraphima <zykovas91@gmail.com>

* [PTRun]Fix drag on .NET 9 WPF (#36635)

* [CQ]Continued to move stuff out of root - Solution.props (#36244)

* [QuickAccent]Add Proto-Indo-European (#36408)

* Add ḱ to PowerAccent for Proto-Indo-European

* Fix Spelling Check

* Add more letters to PIE

* Order PIE after PI

---------

Co-authored-by: Hao Liu (from Dev Box) <haoliu3@microsoft.com>
Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* [PTRun]Add context buttons for VSCodeWorkspaces plugin (#36517)

* [Settings][QuickAccent]Change 'character set' to plural form (#36565)

* [PTRun][Calculator]Fix unit tests on non-english systems (#36569)

* fix tests

* update comment

* [PTRun][Calc]Improve handling of non-base 10 numbers (#36700)

* [Settings][PTRun]Show plugin version and website (#36580)

* [Monaco]Add support for .resx and .resw preview support. (#36499)

Added support for .resx and .resw preview support. These files are XML based files so I added the file extensions as part of the registerAdditionalLanguage("xmlExt"...) function.

* [Settings] Add Workspaces' workspaces.json file to backup/restore list (#36714)

* [Localization] Fix loc pipeline to send downloaded localized files to TDBuild upon retry after failure (#36766)

* [AdvancedPaste]Fixed issues with Screen Reader integration (#36778)

* Remove Advent calendar from README (#36777)

* Remove Advent calendar from README

* Update hero image

* Delete doc/images/overview/PT_holiday_hero_image.png

* [AdvancedPaste]Add all BitmapDecoder supported image filetypes to ImageToText (#35600)

Adds support to ImageToText for all image filetypes supported by BitmapDecoder.

* [AOT]Clean up some AOT build issues in PowerAccent.Core (#36264)

* init

* Use AotCompatibility instead

* Replace typeof(Lanaguge) with GetValues<Language>

* Create new folder to place source generation context file.

---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>

* [WinUI3]Fix Windows 10 title bar borders (#36429)

* Fix borders for windows in the Settings UI

* Fix HOSTS window

* Fix Advanced Paste

* Fix Environment Variables

* Fix File Locksmith

* Fix Peek, with a caveat

* Fix Registry Preview

* Remove unused imports

* Clean up imports in OobeShellPage

* Move OSVersionHelper from Common.UI up into ManagedCommon

* [QuickAccent]Fix unstable language loading (#36721)

* [Peek]Bring into foreground if previously minimized (#36506)

Added Activate() to bring Peek.UI window into focus upon Toggle. This allows the UI to be presented even if it was previously minimized.

* Update Run docs README (#36857)

* Update Run docs README

* Remove System dupe

* [Monaco]Make minimap toggleable (#33742)

* [Monaco]Fix Json format preview setting (#36867)

* [KBM]Added option for exact match shortcut (#36000)

* Added option for exact match shortcut

* Fix spell-check

* [Deps][Security]Update .NET Packages from 9.0.0 to 9.0.1  (#36879)

* [Deps] Update NuGet packages to version 9.0.1

Updated several NuGet packages from version 9.0.0 to 9.0.1, including:
- Microsoft.Data.Sqlite
- Microsoft.Bcl.AsyncInterfaces
- Microsoft.Extensions.DependencyInjection
- Microsoft.Extensions.Logging
- Microsoft.Extensions.Logging.Abstractions
- Microsoft.Extensions.Hosting
- Microsoft.Extensions.Hosting.WindowsServices
- Microsoft.Win32.SystemEvents
- Microsoft.Windows.Compatibility
- System.CodeDom
- System.ComponentModel.Composition
- System.Configuration.ConfigurationManager
- System.Data.OleDb
- System.Diagnostics.EventLog
- System.Diagnostics.PerformanceCounter
- System.Drawing.Common
- System.Management
- System.Runtime.Caching
- System.ServiceProcess.ServiceController
- System.Text.Encoding.CodePages
- System.Text.Json

* [Deps] Update NOTICE.md

* [Peek]Fix using the correct Monaco assets at runtime (#36890)

* [Workspaces] fixing bug: editor starts outside of visible desktop area (#36769)

* [Workspaces] fixing bug: editor starts outside of visible desktop area

* Update src/modules/Workspaces/WorkspacesEditor/MainWindow.xaml.cs

Co-authored-by: Seraphima Zykova <zykovas91@gmail.com>

---------

Co-authored-by: Seraphima Zykova <zykovas91@gmail.com>

* [Workspaces] Saving app properties on launch and recapture (#36751)

* [Workspaces] Implementing set and get GUID to/from HWND to distinguish windows moved by the Workspaces tool

* After launch and capture copy the CLI args from the "original" project

* Fix getting GUID

* spell check

* modification to be able to handle different data sizes on different systems

* code optimisation

* Replacing string parameter by InvokePoint

* renaming variable

* [AdvancedPaste]Use background thread for interactions between runner and Advanced Paste (#36858)

* [Advanced Paste] Use background thread for runner-Advanced Paste interaction

* Fixed typo

* [VCM]Deprecate the Video Conference Mute utility (#36772)

* Remove all VideoConferenceMute related code and files

* Clean up vcm driver registry keys

* Also remove the Webcam report tool

* Also clean out video conference on the installer

* Fix spellcheck

* Remove comment about video conf

* Update gpo files revision

* Revert removing the VCM policies

* Deprecate VCM GPO policy

* Change deprecation message to show first supported version

* Tweak supported strings in the adml

* Goodbye friends, you are forever part of the team (#36905)

* Goodbye friends

Forever part of the team 😢

* Update COMMUNITY.md

* Fix formatting issues in COMMUNITY.md

* [New utility]Sysinternals ZoomIt (#35880)

* ZoomIt initial code dump

* Change vcxproj to normalize dependency versions

* Fix code quality to build

* Add to PowerToys solution

* Clean out C-style casts

* Fix some more analyzer errors

* Constexpr a function

* Disable some warnings locally that it seemed better not to touch

* Add ZoomIt module interface

* Add GPO

* Add Settings page with Enable button

* Output as PowerToys.ZoomIt.exe

* Extract ZoomIt Settings definition to its own header

* Make ZoomItModuleInterface build with ZoomItSettings too

* WinRT C++ interop for ZoomItSettings

* From Registry To PowerToys Json

* Properly fix const_cast analyzer error

* Initial Settings page loading from registry

* Zoom mode settings

* Save settings

* Add file picker and DemoType file support

* Remaining DemoType settings

* Have ZoomIt properly reloading Settings and exiting

* Remove context menu entries for Options and Exit

* ZoomIt simple Break Options

* Break advanced options

* Simple Record settings

* Record Microphone setting

* Fix break background file picker title

* Font setting

* Fix build issues after merge

* Add ZoomIt conflict warning to Settings

* Exclude Eula from spell checking

* Fix spellcheck errors

* Fix spell check for accelerated menu items

* Remove cursor files from spellcheck. They're binary

* Fix forbidden patterns

* Fix XAML style

* Fix C# analyzers

* Fix signing

* Also sign module interface dll

* Use actual ZoomIt icon

* Add OOBE page for ZoomIt

* ZoomIt image for Settings

* Flyout and Dashboard entries

* Fix type speed slider labels

* Correctly load default Font

* Correctly register shortcuts on ZoomIt startup first run

* Fix modifier keys not changing until restart

* Show MsgBox on taken shortcut

* Start PowerToys Settings

* Normalize ZoomIt file properties with rest of PowerToys

* Add attribution

* Add ZoomIt team to Community.md

* More copyright adjustments

* Fix spellcheck

* Fix MsgBox simultaneous instance to the front

* Add mention of capturevideosample code use

* Add ZoomIt to process lists

* Add telemetry

* Add logging

* React to gpo

* Normalize code to space identation

* Fix installer build

* Localize percent setting

* Fix XAML styling

* Update src/settings-ui/Settings.UI/Strings/en-us/Resources.resw

Co-authored-by: Stefan Markovic <57057282+stefansjfw@users.noreply.github.com>

* Fix spellcheck

* One more spellcheck fix

* Integrate LiveDraw feature changes from upstream

* Fix name reuse in same scope

* Fix c-style casts

* Also register LIVEDRAW_HOTKEY

* Fix newLiveZoomToggleKey

* Update LiveZoom description in Settings to take LiveDraw into account

* Fix spellcheck

* Fix more spellcheck

* Fix Sysinternals capitalization

* Fix ARM64 Debug build

* Support Sysinternals build (#36873)

* Remove unneeded files

* Make build compatible with Sysinternals

* Separate PowerToys ZoomIt product name (#36887)

* Separate PowerToys ZoomIt product name

To help maintain the Sysinternals branding in the standalone version.

* Clarify branding-related includes

* Remove ZoomIt.sln

* Add foxmsft to spell-check names

* Add ZoomIt to README

* Add ZoomIt to GH templates

* Add ZoomIt events to DATA_AND_PRIVACY.md

* Remove publish_config.json

* Remove publish_config.json from vcxproj too

---------

Co-authored-by: Mark Russinovich <markruss@microsoft.com>
Co-authored-by: Alex Mihaiuc <69110671+foxmsft@users.noreply.github.com>
Co-authored-by: John Stephens <johnstep@microsoft.com>
Co-authored-by: Stefan Markovic <57057282+stefansjfw@users.noreply.github.com>

* [PTRun]Add hotkey to the show telemetry event (#36869)

* [PTRun]Update the code for .NET 9.0.1 - remove workarounds (#36909)

* Revove some unneeded changes after pdating to .net9.1

* [RegistryPreview]Copy context menu, data tooltip, MULTI_SZ fix (#36631)

* add context menus

* string resources for contextmenu

* fix line break parsing for MULTI_SZ

* better presentation of multiline values and value tooltip

* cleanup

* [MWB] - refactoring "Common" classes - Common.Log.cs, Common.Receiver.cs (#35726)

* [PTRun]Add setting for different trigonometric units in Calculator (#36717)

* Added angle units to PowerToys Run Calculator plugin.

* Update Resources.resx

* Added GitHub SpellCheck rule for 'gradians'.

---------

Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

* [ci]Remove steps to build abstracted utilities packages (#36934)

* [Settings]Update GPO infobar icon, improve some pages and fix bugs (#33703)

* changes part 1

* fix xaml code

* changes part 2

* fix cmdNotFound page

* Update PowerOcrPage

* More Pages changed

* More Pages changed

* revert temporary change

* fix spelling

* add resw comment

* add resw comment

* Update MouseWihtoutBorderPage.xaml

* PowerPreview page

* workspaces page

* fix awake page gpo handling

* NewPlus page

* update new+ page!

* AdvancedPaste.xaml: Move Info bar.

* Update MouseJumpPanel.xaml

* Update GeneralPage.xaml

* fix position of info bar and some ui quirks

* fix xaml style

* fix string resources

* string changes

* prepare megre main

* update new+ page

* zoomit page

* various fixes

* [Common]NotificationUtil helper class with FileWatcher (#36720)

* add NotificationUtil helper with file watcher and cache

* fix spellcheck

* indentation

* [PTRun][Docs]Add YubicoOauthOTP to Third-Party plugins (#36761)

* [PTRun]Fixed typo in Value Generator messages (#36951)

* [AOT] Clean up some AOT issues in Advanced Paste module (#36297)

* Clean up the aot build issue.

* Merge main and clean up new AOT build issue

* Update LogEvent define.

* Update src/modules/AdvancedPaste/AdvancedPaste/Helpers/LogEvent.cs

Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

* update typo bug

* Remove unused allow list item

* Create a new folder to place source generation context

* Merge main and rename LogEvent to AIServiceFormatEvent

---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>
Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

* [ZoomIt]React to gpo setting when run as standalone (#36975)

* [Settings]ImageResizer settings accessibility updates, fixes and refactor (#36903)

* Fix issue with missing Image Resizer unit and fit information in settings description.

* Fix accessibility issues on Edit and Remove buttons. Fix various issues and refactor view model and ImageSize. New resources for accessibility text formats.

* Fix unit test because of change to new preset width and height. Fix 2 unit tests having incorrect expected/actual orderings.

* Post-review update: accessibility strings now formatted within the converter, instead of via format strings; simplified encoder GUID collection declaration and retrieval.

* Minor example text fix.

* [Settings]Update "Back up" mentions when it should be used as a verb (#36965)

* Update Back up name

* Rename Backup to Back up

* [New+]Update last modified date to now for all templates created (#36133)

* Update last modified date to now for all templates created

* Now also set last update for directories. Thank you htcfreek!

* [ImageResizer][ci]Fix XAML style errors (#37009)

* [Settings] Add "new" labels to navigation for new utilities (#36939)

* initial implementation

* move new label to zoomit

* cleanup

* more cleanup

* fix XAML formatting

* update padding to 4px

* add badge to dashboard item

* fix XAML formatting

* Tweaking UX

---------

Co-authored-by: Niels Laute <niels.laute@live.nl>
Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* [MWB]Fix helper process termination issue in service mode (#36892)

* [MWB] Changed to suppress the flow of the execution context

* Fix build after merge

* [MWB] Fix helper process termination issue in service mode

* Add some comments

* [runner]Fix crashes caused by wrong setting AllowDataDiagnostics registry value (#37015)

* Fix setting registry value

* Prevent future similar crashes

* [PTRun][Calculator]Error check when loading trigonometry mode (#37033)

* [ZoomIt]Fix transparent draw after changing another setting (#37042)

* [Settings]Fix ZoomIt page changing current directory (#37052)

* [ci]Remove vc tools version workaround (#37098)

* 0.88 changelog (#37056)

* 0.88 changelog

* Update README.md

Co-authored-by: Clint Rutkas <clint@rutkas.com>

* Add installer hashes

* Fix aka.ms link for ZoomIt

* Add mention to the PTRun plugin's dll file version

* Update README.md

Co-authored-by: Kayla Cinnamon <cinnamon@microsoft.com>

---------

Co-authored-by: Clint Rutkas <clint@rutkas.com>
Co-authored-by: Kayla Cinnamon <cinnamon@microsoft.com>

* Update README.md - update What's Planned to 0.89 (#37157)

Update README.md

Just a tiny update, as reference to 0.88 was missed.

* [ci]Proper workaround for the vc tools version check (#37130)

* Revert "[ci]Remove vc tools version workaround (#37098)"

This reverts commit 2c069ce708.

* Adopt the same workaround as in Terminal

* build: add a couple more signing variables to ESRP (#37328)

This is in support of some identity changes we need to make.

* [Docs] Update runner-ipc.md to fix broken links (#36994)

Update runner-ipc.md

Fix broken file links.

* [ContextMenu]Update win11 msix menus if wrong version is detected (#37289)

* [ContextMenus]Update win11 msix menus if wrong version

* Remove extra line in code

* [Build]Compatibility with VS17.3 and later, for C++23 <expected>(#37321)

[Build] compatibility with VS17.3 and later, for C++23 <expected> has been introduced in VS17.3.6, and std::expected has conflict/inconsistent with the makeshift (expected-lite)

* [Deps]Update .NET Packages from 9.0.1 to 9.0.2 (#37400)

* [Deps] Update NuGet package versions to 9.0.2

* [CI] Update NOTICE.md

* Ignore 0.0.0.0 versions as well for PowerToys files

* Verify we're not shipping any 0.0.0.0 files

* Add MSFT file that's expected as 0.0.0.0

* Fix spellcheck

---------

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* [ci]Fix OutOfMemory in download by separating test-only artifacts and filtering unused files before publishing (#37403)

* chunk download

* change pipeline

* update pipeline

* filter

* for testing

* use Variable

* rebase file

* add new line

* rebase the pipeline

* [GPO][MWB]Add policy to disable service mode (#37366)

* [MWB]Add policy to disable service mode

* Add restart note

* Tweak settings to disable setting

* Tweak infobars

* Policy should be machine only

* [GPO]Add policy to define the run at startup setting (#37385)

* [GPO]Add policy to define the run at startup setting

* Use message for single setting managed by policy instead

* [Zoomit]Fix warning C4706 and related error C2220 (#37283)

* [KeyboardManager WinUI3] Create WinUI3 project and wrapper for Keyboard Manager Editor (#37427)

* Set up KBM WinUI3 Editor UI project

* Test invoking the KBM library via wrapper for WinUI3 C# UI

* Set up Editor Library Wrapper and enable logging

* fix spelling

* update spacing and remove unused file

* fix formatting

* update sln

* update wrapper project config

* import common props

* update UI reference

* gate the new editor with the experimentation toggle in settings

* [Workspaces] Fix case: monitor not present at launch (#37005)

* [Workspaces] Fix case: monitor not present at launch

* Fix DPI multiplicator calculation when monitor not present

* [PowerRename] Fix negative enumerate start parameter parse bug.   (#37375)

Fix reg bug to make PowerRename accept negative number as start parameter

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>

* Use system default web browser when opening links through Monaco in RegistryPreview (#37466)

* Handled NewWindowRequested WebView2 event, to allow links opened through Registry Preview to open in the system default web browser, rather than a new WebView2 window.

* Modified RegistryPreview implementatiion to use the open URI dialog that is currently used in Peek.

* [QuickAccent]Add more letters with caron to IPA (#37369)

Co-authored-by: Stefan Markovic <stefan@janeasystems.com>

* [QuickAccent]Added ` (backtick) and ~ (tilde) to VK_OEM_5 (#20333) (#37286)

* [MouseHighlighter]Fix stray highlights stucking (#37309)

* [MouseHighlighter]Fix stray highlights stucking

* Fix spellcheck

---------

Co-authored-by: Stefan Markovic <stefan@janeasystems.com>

* [Settings] Fixed missing accessibility name of secondary links panel (#37014)

Co-authored-by: Stefan Markovic <stefan@janeasystems.com>

* [CI] fix: Use Azure CLI for artifact download to prevent OutOfMemory issues (#37455)

* for testing az

* change file

* update test

* install python

* update

* test

* use powershell

* tes

* update enve

* update

* test

* add

* test

* merge

* az

* change

* update

* test cli

* add debug

* test large

* fix

* use templete

* fix x64 python install

* for testing

* add

* fix

* use 3.11.1

* change for test

* revert some testing file

* update the file name for spelling check

* use azure cli zip

* use aka.ms

* rename the zip file

* Update runner documentation to reflect newest code structure

* [Image Resizer] Added AutomationProperties.HelpText to dimensions combo-box (#37122)

Co-authored-by: Stefan Markovic <stefan@janeasystems.com>

* [Fuzz] Add fuzz testing for Hosts (#37516)

* add hostsfile fuzztests templates code

* modify  typos of hostsfile

* add hosts file

* add hosts fuzz to pipeline

* modify varify depjson rule

* fuzz validIPv4

* update  .net7 to .net 8

* add valid6/validhosts tests on hosts

* catch all exception

* update onefuzzconfig.json to add 3 test cases

* add fuzz writeasync tests and fill exception

* add writeasync onefuzz config

* add dll of writeasync in job dependencies

* for testing az

* change file

* use mock filesystem in hosts tests projct

* fix spell erro

* fix spell erro and change notations

* update test

* fix space erro in code

* install python

* update

* test

* use powershell

* remove unused dll in oneconfig.json


* change download artifacts

* update

* test

* add

* test

* merge

* az

* change

* update

* test cli

* add debug

* test large

* fix

* use templete

* remove pdb file filter in job test project

* fix x64 python install

* for testing

* add

* fix

* use 3.11.1

* change for test

* revert some testing file

* update the file name for spelling check

* use azure cli zip

* use aka.ms

* rename the zip file

* remove test artifactname

* add exception and job dependencies

* Remove the limitation of fuzzing only on hosts

* add fuzz readme

* remove unused changes and space

* fix x86 in sln and remove newtonsoft.json.dll in oneconfig.json

* readd wrapper.dll in oneconfig.json

* drop randomsplit when fuzz writeasync and remove unuseful package

---------

* UITestAutomation Framework (#37461)

* Add UITestAutomation framework

* add code comments

* Optimized code format

* Optimized code format

* Update commons and add keyboard manager ui test project

* Optimized code format

* test scope and fix fancyzone exe path

* Add readme

* Optimize helper functions and UI test method

* Fix spelling errors and restore module UI tests

* Restore Indent

* Update NOTICE.md

* Update comments to Session and Elements

* Update comments for Button and Window

* delete unnecessary code

* change FindElementByName to FindElmenet

* Update comments for ModuleConfigData

* Update readme and comments

* Remove extra comments

* change public property

* Optimize code readability

* add default Attach Function

* change attach function name

* Update comments to XML format

* Hide by internal functions

* Update readme

* Refine the framework

* Fix process start position and update readme

* Remove Enum PowerToysModuleWindow

* Update attach comments

* Update ModuleConfigData comments

---------

Co-authored-by: Zhaopeng Wang (from Dev Box) <zhaopengwang@microsoft.com>
Co-authored-by: Xiaofeng Wang (from Dev Box) <xiaofengwang@microsoft.com>
Co-authored-by: urnotdfs <709586527@qq.com>

* [Fancy Zones] Fixed accessibility text of monitors on Layout Editor (#36997)

Co-authored-by: Stefan Markovic <stefan@janeasystems.com>

* [Run] Fix dark mode detection code, plus refactor (#37324)

* Fix risky int cast in dark mode detection.

* Refactored Helper and Manager classes. New unit tests and changes to support Registry access mocking.

* Spelling update.

* Improve documentation for the registry-related classes.

* Fix issue with UpdateTheme raised in review. Enhance documentation. Rewrite tests to use parameterised unit tests, and expand to cover more cases.

* [MWB] Fix file transfer not working in service mode (#37542)

* [MWB] Fix file transfer not working in service mode

* Spellcheck issues

* Remove "new" label from ZoomIt (#37417)

remove new from zoomit

* [PTRun][Calc]Add list separator handling for different cultures (#36735)

* Ready for Review - [Mouse Without Borders] - refactoring "Common" classes (Part 3) - #35155 (#36950)

* [MWB] - refactoring MachineInf from Common.MachineStuff.cs into MachineInf.cs - #35155

* [MWB] - fixing references to MachineInf - #35155

* [MWB] - cleaning up MachineInf.cs - #35155

* [MWB] - moving MyRectangle from Common.MachineStuff.cs into MyRectangle.cs - #35155

* [MWB] - cleaning up MyRectangle.cs - #35155

* [MWB] - moving Common.MachineStuff.cs to MachineStuff.cs - #35155

* [MWB] - fixing references to MachineStuff - #35155

* [MWB] - cleaning up MachineStuff.cs - #35155

* [MWB] - cleaning up MachineStuff.cs - #35155

* [MWB] - moving Common.DragDrop.cs to DragDrop.cs - #35155

* [MWB] - fixing references to DragDrop - #35155

* [MWB] - fixing unit test - #35155

* [MWB] - cleaning up DragDrop.cs - #35155

* [MWB] - cleaning up DragDrop.cs - #35155

* PowerToys Run Calculator: Add trigonometric angle unit conversion functions (#37475)

* Added trig unit conversion macros to PowerToys Run Calculator plugin.

* Added testing for unit conversions.

* Removed debug messages.

* [PTRun][Docs] Update new plugin checklist (#36789)

[Docs] Update new plugin checklist

* [PowerRename]Add `$`, `^` and quantifiers to RegEx cheatsheet (#37062)

* [PowerRename]Add `$`, `^` and `.*` to RegEx cheatsheet

* Add * and +, remove combinations

* correct spelling

* Add ? and \s

* fix spelling once again

* Update UI-Test Automation Framework (#37597)

* Improve UITest Automation

* Improve UITest Automation

* Exclude all UI-Test projects instead of just fancyZone UITest

* Exclude all UI-Test projects instead of just fancyZone UITest

* Fix code-style

* [Hosts] Add UITest Cases for Hosts Module (#37600)

* Add UI-Tests for Host Module

* [Build] Revert "[Hosts] Add UITest Cases for Hosts Module (#37600)" to fix CI issue (#37606)

Revert "[Hosts] Add UITest Cases for Hosts Module (#37600)"

This reverts commit c656dcc9c5.

* [AOT] clean up AOT issue in Settings.UI (#36559)

* Rename source generation context file

* fix build issue

* fix path bug

---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>

* [AOT] Clean up AOT build issue  in Common.UI (#36376)

* init commit

* Use path.combine

* Add useWPF and useWindowsForms back

---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>

* [ci]Sign and fix KeyboardManagerEditorLibraryWrapper.dll (#37601)

* [ci]Sign KeyboardManagerEditorLibraryWrapper.dll

* Fix dll metadata

* [Settings]Fix ColorPicker dashboard shortcut (#37547)

* Fix color picker dashboard shortcut

* remove not needed code

* Remove comment

* [ImageResizer] Fix issues with blank Width and Height controls (#37373)

* Allow custom preset's dimensions to be blank in the UI while still persisted as 0.

* XAML formatting - reorder namespaces.

* Add "(auto)" text to zero-value Width/Height in Settings. Ensure Width and Height fields in flyout are formatted to empty when their value is 0.

* [Workspaces][ARM64] Bring icon to packaged apps (#37625)

Bring icon to packaged apps

* [PTRun] Disable CETCompat in Launcher (#37550)

* Disable CETCompat in Launcher

* Added comment

* Improved comment

* [AOT] Refactor Logger function to improve performance and mark managedCommon as AOT compatible (#36327)

* Use function to init static value

* Replace GetFileName with GetFileNameWithoutExtension

* Add exception catch for GetCallerInfo

* Remove sourceLineNumber

* Add kernal to allow list

* Remove unused commit

* Add new folder to place source generation context

* update

* fix build issue

* Move line number back

* Use fileName to replace full path

---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>

* [AdvancedPaste]Add paste actions to allow transcoding of media files (#37188)

* [AdvancedPaste] Additional actions, including Image to text

* Spellcheck issue

* [AdvancedPaste] Paste as file and many other improvements

* Fixed typo

* Fixed typo

* [AdvancedPaste] Improved paste window menu layout

* [AdvancedPaste] Improved settings window layout

* [AdvancedPaste] Removed AudioToText for the moment

* Code cleanup

* Minor fixes

* [AdvancedPaste] Semantic Kernel support

* Changed log-line with potentially sensitive info

* Spellcheck issues

* Various improvements for Semantic Kernel

* Spellcheck issue

* Refactored Clipboard routines

* Added integration tests for KernelService

* Extra telemetry for AdvancedPaste

* Added 'Hotkey' suffix to AdvancedPaste_Settings telemetry event

* Added IsSavedQuery

* Added KernelQueryCache

* Refactoring

* Added KernelQueryCache to BugReportTool delete list

* Added opt-n for Semantic Kernel

* Fixed bug with KernelQueryCache

* Ability to view last AI chat message on error

* Improved kernel query cache

* Used System.IO.Abstractions and improved tests

* Fixed under-count of token usage

* Used Semantic Kernel icon

* Cleanup

* Add missing EndProject line

* Fix dependency version conflicts

* Fix NOTICE.md

* Correct place of SemanticKernel in NOTICE.md

* Unlinked CustomPreview toggle from AI

* Added Microsoft.Bcl.AsyncInterfaces dependency to AdvancedPaste

* Fixed NOTICE.md order

* Moved Custom Preview to behaviour section

* Made Image to Text raise error on empty output

* Added AIServiceBatchIntegrationTests

* Updated AIServiceBatchIntegrationTests

* Added prompt moderation

* [AdvancedPaste] Media Transcoding support

* Spellcheck issue

* Improved transcoding output profile and added tests

* Moved GPO Infobar to better location

* Added cancel button and minor bug fixes

* Fixed crash

* Minor cleanups

* Improved transcoding error messages

* Used software back when transcoding fails with hardware accerlation

* Added Reencode to spellcheck

* Spellcheck issue

---------

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
Co-authored-by: Dustin L. Howett <dustin@howett.net>
Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

* [QuickAccent]Add final sigma ( ς ) to the Greek character set (#37611)

* Revert "[Hosts] Add UITest Cases for Hosts Module" (#37619)

* Revert "[Hosts] Add UITest Cases for Hosts Module (#37600)"

This reverts commit c656dcc9c5.

* Matching all UITest projects and UITestAutomation project

* Add back Hosts UITests

---------

Co-authored-by: Jerry Xu <nxu@microsoft.com>

* [Workspaces] Fix regression when capturing minimized apps (#37599)

* [check-spelling] Update metadata

Update for https://github.com/zadjii-msft/PowerToys/actions/runs/13549652582/attempts/1
Accepted in https://github.com/zadjii-msft/PowerToys/pull/462#issuecomment-2685731408

Signed-off-by: check-spelling-bot <check-spelling-bot@users.noreply.github.com>
on-behalf-of: @check-spelling <check-spelling-bot@check-spelling.dev>

* Fix bad merged

---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>
Signed-off-by: check-spelling-bot <check-spelling-bot@users.noreply.github.com>
Co-authored-by: Laszlo Nemeth <57342539+donlaci@users.noreply.github.com>
Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: donlaci <donlaci@yahoo.com>
Co-authored-by: Ionuț Manța <ionut@janeasystems.com>
Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>
Co-authored-by: Ani <115020168+drawbyperpetual@users.noreply.github.com>
Co-authored-by: PesBandi <127593627+PesBandi@users.noreply.github.com>
Co-authored-by: Wenjian Chern <55335597+Sophanatprime@users.noreply.github.com>
Co-authored-by: Youssef Victor <youssefvictor00@gmail.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>
Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Co-authored-by: leileizhang <leilzh@microsoft.com>
Co-authored-by: Den Delimarsky 🔐 <sign@den.dev>
Co-authored-by: Niels Laute <niels.laute@live.nl>
Co-authored-by: Davide Giacometti <25966642+davidegiacometti@users.noreply.github.com>
Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>
Co-authored-by: Shuai Yuan <128874481+shuaiyuanxx@users.noreply.github.com>
Co-authored-by: moooyo <42196638+moooyo@users.noreply.github.com>
Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>
Co-authored-by: Jerry Xu <n.xu@outlook.com>
Co-authored-by: Demitrius Nelon <denelon@microsoft.com>
Co-authored-by: Kai Tao <69313318+vanzue@users.noreply.github.com>
Co-authored-by: Connor Plante <150482134+plante-msft@users.noreply.github.com>
Co-authored-by: Connor Plante <connor.plante@gmail.com>
Co-authored-by: Domen Soklič <soklicd@gmail.com>
Co-authored-by: Hao Liu <liuhaobupt@163.com>
Co-authored-by: Hao Liu (from Dev Box) <haoliu3@microsoft.com>
Co-authored-by: immi <iafullprogrammer@gmail.com>
Co-authored-by: Asif Islam <77113884+asif4318@users.noreply.github.com>
Co-authored-by: Kayla Cinnamon <cinnamon@microsoft.com>
Co-authored-by: Dave Rayment <dave.rayment@gmail.com>
Co-authored-by: Neil McAlister <pingzing@users.noreply.github.com>
Co-authored-by: Mark Russinovich <markruss@microsoft.com>
Co-authored-by: Alex Mihaiuc <69110671+foxmsft@users.noreply.github.com>
Co-authored-by: John Stephens <johnstep@microsoft.com>
Co-authored-by: Michael Clayton <mike@kingslandconsulting.co.uk>
Co-authored-by: Nathan Gill <nathan.j.gill@outlook.com>
Co-authored-by: Daniel Nilsson <daniel.nilsson1989@gmail.com>
Co-authored-by: JackStuart <jack@jstuart.io>
Co-authored-by: Christian Gaarden Gaardmark <cgaarden@hotmail.com>
Co-authored-by: YDKK <YDKK@users.noreply.github.com>
Co-authored-by: Dustin L. Howett <duhowett@microsoft.com>
Co-authored-by: LNKLEO <LinkeyLeo@outlook.com>
Co-authored-by: Massimiliano Alberti <821344+xanatos@users.noreply.github.com>
Co-authored-by: Hao Liu <liuhao3418@gmail.com>
Co-authored-by: chenmy77 <162882040+chenmy77@users.noreply.github.com>
Co-authored-by: dreamstart <33367956+wang563681252@users.noreply.github.com>
Co-authored-by: Zhaopeng Wang (from Dev Box) <zhaopengwang@microsoft.com>
Co-authored-by: Xiaofeng Wang (from Dev Box) <xiaofengwang@microsoft.com>
Co-authored-by: urnotdfs <709586527@qq.com>
Co-authored-by: Henrik Lau Eriksson <henrik.lau.eriksson@gmail.com>
Co-authored-by: Dustin L. Howett <dustin@howett.net>
Co-authored-by: Smeagol <Thesmeagol360@gmail.com>
Co-authored-by: Jerry Xu <ninxu@microsoft.com>
Co-authored-by: Jerry Xu <nxu@microsoft.com>
Co-authored-by: Stefan Markovic <stefansjfw@users.noreply.github.com>
2025-02-27 13:03:37 -08:00
Mike Griese
eda7e503d8 Make a viewmodel for ICommand itself (#463)
Closes #253

This whole `item.Command.Unsafe.Name` buisiness has been weird for far too long
2025-02-26 10:31:38 -08:00
Mike Griese
716d0c2b4b Add to the SUI a setting to control where the window is summoned (#461)
Closes #446

Setting is pretty straightforward. Same as PT Run, with an added "leave it where it is", from the Terminal codebase. 

The `DisplayArea` code is net-new (PT used WPF for that, and Terminal used C++), but it's pretty same-y to everything else. 

Drive-by fixes "holy whitespace batman", by making the SUI less wide.
2025-02-26 08:01:04 -08:00
Mike Griese
626d265f3f Enable editing aliases in the SUI (#460)
This is a very rough UI element for setting aliases in the UI.


* the command weighting from #454 was bad. It would always grant a recent command weight. Probably shouldn't do that
* The tags could soft-crash when opening the SUI? I think that was from the ObservableCollection being created on a COM thread, then "updated" on the main thread. 
  * this may be #426 but I'm not sure
  
Closes #92 (but it isn't pretty)
2025-02-26 03:25:43 -08:00
Mike Griese
5e953dbd94 Officially deprecate FormPage and MarkdownPage (#459)
`ContentPage` is the more generic form of this.
I'm deprecating this here in 0.0.8, and in 0.0.9 I'm gonna outright remove it.
2025-02-26 03:25:13 -08:00
Mike Griese
7e115735fd A pair of drive-by bug fixes (#457)
* Allow trailing commas in terminal `settings.json`
* in the Clipboard history copy, actually use the toast message
2025-02-26 03:24:53 -08:00
Mike Griese
c82a8e875f Implement a basic recently-used-apps algorithm (#454)
This is a very basic frecency implementation, to let MRU apps and commands show up higher in search results. 

Adds support for a `state.json` file, to store this state. Implication is the same as Terminal:
* `settings.json`: These are _your_ settings, take this with you where you go
* `state.json`: this is state _we_ own. You can take it with you at your peril. **We** control this file. 


This seemed good enough to get "VS" to match to "Visual studio" after just a single launch of VS. 

We can iterate on the weighting in the future. 

Closes #317 
This was also half-tracked in closes #147
2025-02-25 03:34:39 -08:00
Mike Griese
cc01986b53 Add edit & delete to Bookmarks (#451)
Re-write the bookmarks extension, to add support for edit and delete commands. This is one of the older extensions in the codebase so it was quite dated. Along the way:

* Resolved a COM threading issue with `CommandResults` (which I never saw before?)
* Also a really good idea I just had: `AnonymousCommand`s, so you can just pass a lambda to a CommandItem and that's the whole command. Don't need to define a whole command class just for that.
* Drive-by:
  * Closes #251
  * Closes #344
2025-02-25 03:34:06 -08:00
Seraphima Zykova
4c4d53ec37 [Search files] Loading more items fix (#453)
<!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? -->
## Summary of the Pull Request

A fix for the issue that not all results in file search are shown when scrolling to the bottom. 

* Added a request to load new items when the user scrolls to the bottom
* Re-request items when facing an error in the file search to ensure we show all results in the list

<!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well -->
## Validation Steps Performed

* Search something that should get more than 20 results (I usually typed a single letter for testing)
* Scroll down to the bottom and check if new entries are loading.


Closes #351
2025-02-25 03:33:31 -08:00
Mike Griese
23c22331e8 add wyhash as an exception (#445)
Boy does PT ever have a lot of sanity checking [[good]]
2025-02-21 05:52:15 -06:00
Mike Griese
86911adb5e fix a 'hang' on quit (#444)
Hey guess what, you need to close all the windows.

regressed in #442
2025-02-20 17:06:49 -06:00
Mike Griese
a4719daf71 Add rudimentary support for Toast messages (#442)
Well, I started by wanting to just close #385. Then I thought, "well, the copy command really needs that toast, doesn't it"

one thing lead to another, and now

![clipboard-history-toast](https://github.com/user-attachments/assets/4d84225c-17bd-4b42-9587-6411888db922)

Closes #385
Closes # what I never filed `ShowToast`, from https://github.com/zadjii-msft/PowerToys/pull/395
2025-02-20 16:10:49 -06:00
Mike Griese
d3b52660e8 Tidy up the clipboard history code (#441)
Tidying from #437
2025-02-20 05:03:59 -08:00
ironyman
e9a8457111 Add Clipboard History built-in command (#437)
This is a resurrection of #151. 
This implements support for the windows clipboard history, as a command palette extension. 

---------

Co-authored-by: joadoumie <98557455+joadoumie@users.noreply.github.com>
Co-authored-by: Jordi Adoumie <jordiadoumie@microsoft.com>
Co-authored-by: Mike Griese <migrie@microsoft.com>
Co-authored-by: Changyu Li <changyl@microsoft.com>
2025-02-20 04:40:20 -08:00
Mike Griese
d214c45cb6 Add a setting to revert back to thumbnails (#436)
This PR adds a setting to revert back to the original exe-based thumbnails. We've set it to use exe's by default, because crashes are no good. 

We can figure this out in post.
2025-02-20 04:27:10 -08:00
Niels Laute
7c9fa6fb6e CommandBarFlyout restyling (#434)
- Restyled the ListView to make it look like a MenuFlyout
- Added support for displaying the optional shortcut
2025-02-20 03:41:14 -08:00
Niels Laute
50fcc4c789 Remove nested ListViewItem (#435)
In `ListPage`, the listview had a ListViewItem inside of a ListViewItem.
2025-02-19 18:03:42 -08:00
Mike Griese
50ee0b7dab Add the ability to bind a global hotkey to anything (#430)
Adds support for binding hotkeys to top-level commands. 

For commands that don't have an ID, we'll generate one. 

Also makes `Tags` observable, because they weren't before

Hugely re-writes how `ShortcutControl` tracks the active hwnd, because it didn't work in 0.0.6

Closes #93
2025-02-19 16:41:55 -06:00
Mike Griese
138039caa4 Fix copy on calc (also, enable observable context menus) (#433)
I was testing #152 and realized that the Copy command on the calculator page was never working quite right.

And to make it work, i had to fix #360 

so, closes #360
2025-02-19 13:09:25 -06:00
Mike Griese
d51c2cc00e Fix the HostingHwnd for built-in (#432)
This static `CommandPaletteHost` instance is definitely problematic, and we should fix that. 

But for now, this fixes the issue where all extensions (including builtins) couldn't access the HWND.

We need this for #151, and it might help resolve what we were seeing in #152
2025-02-19 10:33:00 -06:00
Mike Griese
00dd9b6ba2 Disable PATH apps by default, and the WW explorer error (#431)
No one likes these settings.
The first one causes like, 1000 apps to be loaded, including everything from system32 (yikes)
The second, well, it just doesn't matter.
2025-02-19 10:32:18 -06:00
moooyo
e502a126f3 Migrate TimeDate extension from PowerToys run to CommandPalette (#412)
## Summary of the Pull Request
* Assets: copied from v1 plugin's images folder.
* Helpers folder: Most of them are ported from V1 plugin. Created settings manager to support settings in this extension.
* Pages folder: Created settingsPage for setting UI. And timeDateExtensionPage is our main page for this extension.
* Program.cs and SampleExtension.cs: auto created by new ext ps script.
* TimeDateExtensionCommandsProvider.cs: Title, description and icon. No any special thing in this file.
* AliasManager: populate our alias (')')

Some features that are not ported into V2:
* Global search support (eg: type now in the mian page search box).

Next steps:
* We need to migate the related ut to v2.

<!-- Please review the items on the PR checklist before submitting-->
## PR Checklist

- [ ] **Closes:** #xxx
- [ ] **Communication:** I've discussed this with core contributors already. If work hasn't been agreed, this work might be rejected
- [ ] **Tests:** Added/updated and all pass
Some manual test result:

extension item:
![image](https://github.com/user-attachments/assets/1539af90-cd8d-411c-af13-806a303d89b9)
setting:
![image](https://github.com/user-attachments/assets/dca6cad0-9a00-44c7-a02a-6e88fc3df705)
extension main page (with empty query string):
![image](https://github.com/user-attachments/assets/fad31ea8-5082-48c3-9ef4-413d2af3213c)
Invalid input:
![image](https://github.com/user-attachments/assets/d541b406-57cf-4f59-a3de-1f01f8d40e7a)
unix timestamp
![image](https://github.com/user-attachments/assets/264624a9-2014-479d-9eb4-fdea4b1cc8cd)
now:
![image](https://github.com/user-attachments/assets/44a037d1-1c08-4e62-a946-7912b5bab843)
year:
![image](https://github.com/user-attachments/assets/9d50fdd5-e75e-44a6-b9fd-1440088421ee)


- [ ] **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

<!-- Provide a more detailed description of the PR, other things fixed or any additional comments/features here -->
## Detailed Description of the Pull Request / Additional comments

<!-- Describe how you validated the behavior. Add automated tests wherever possible, but list manual validation steps taken as well -->
## Validation Steps Performed


---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>
2025-02-19 09:50:29 -06:00
Mike Griese
fb8dfa5184 Attempt to fix the crash on launch (#429)
It fixes it On My Machine, but not on Clint's unfortunately
2025-02-19 09:26:51 -06:00
Niels Laute
826bbd4733 ContentIcon (#428)
- Created ContentIcon to host a UIElement
- Moved converters / template selectors from the root folder to the `Converters` folder.
2025-02-17 13:51:34 -06:00
Mike Griese
c3f5cce7ce BUILD fix samples
oops
2025-02-13 18:42:58 -06:00
Mike Griese
f91f591e76 Add settings for All Apps (#424)
Expose a couple of the settings for apps as actual settings in the settings UI
2025-02-13 16:30:08 -06:00
Mike Griese
cd5a541b3e Add a command for quickly creating a new extension (#423)
This adds a new form page for quickly creating a new extension. 

* `ExtensionTemplate/` should be zipped up into `template.zip`. 
* fill in that form, then when you submit the form, we'll unzip the template. 
* You should be able to just open that solution up and just **go**
* I moved the built-in commands lower in the list. The only visible commands it exposes are "Open CmdPal settings" and "Create new extension" (the others are hidden fallbacks, so it doesn't really matter)
* To mitigate that the settings command is lower in the list, I added it to the "page title" spot in the command bar (only on the root view). 

Closes #311
2025-02-13 11:43:19 -06:00
Mike Griese
ef58863fac Add extension settings to the SUI (#419)
closes #100 
closes #276 

Converts the Toolkit settings to be a `ICommandSettings`, to make things a bit easier. 

Adds per-extension settings to the SUI. Each page should list off the commands from that extension, the `CommandProvider.Settings`, and a simple "About" block for that package. 

Also makes the settings window _not gigantic_
2025-02-13 11:43:01 -06:00
Mike Griese
36f42d971c Lock both lists at the same time (#422)
In #416 I tried to lock the lists before we modify them. 

Problem was, on L143 I only locked the `FilteredItems`, when `Items` can change there too. 

One singular lock for both makes the most sense anyways.
2025-02-13 11:32:51 -06:00
Stefan Markovic
38a7f184c3 Port All Apps plugin again (#409)
MISSING:
 - Support arguments passing
~Live app detection (newly installed apps, updates, etc..)~
 ~Localization~
~Cleanup~

Argument passing requires conversion to DynamicListPage and is low priority. Let's merge this first and I'll work on this as a follow up

Closes #76
2025-02-13 11:32:25 -06:00
Mike Griese
b04c04b591 BUILD: xaml format (#421) 2025-02-13 06:18:51 -06:00
Mike Griese
6b9ea06b02 Fix the winget icon (#420)
yea, it was that stupid
2025-02-12 20:04:21 -06:00
Mike Griese
93cad5d5c4 Developer XAML version of TextToSuggest (#416)
This is just a very rough prototype of "TextToSuggest", to make it do _something_. I'll link this to #358, but it's not clean enough to close it. 

I just slapped a TextBlock with the suggested text to the right of the input, just so users can see that there is a suggestion and that you can press `right` to accept it. 

The best extension to test this with is the Registry one, but that crashes heavily in `ListHelpers.InPlaceUpdateList`. I think it's for two reasons:
* a null item in the list? (we should ignore that!)
* and we're modifying the list as we're updating it (definitely shouldn't do that)

I'm guessing the second is actually the cause of #324, though I've had a hard time reproing that as of late.
2025-02-12 20:04:03 -06:00
Stefan Markovic
7f6c25b737 Merge PT #12 (#417)
* [Workspaces] implement the move feature (#35480)

* [Workspaces] Add move functionality

* spell checker

* [Workspaces] Modify Arranger to move apps without launch

* moved ipc helper

* removed callback

* use LauncherStatus in WindowArranger

* wait for launching next app

* launch in a separate thread and protect by mutexes

* update app version in advance

* changed canceling launch

* increased waiting time

* Fix optional parameter load from json

* changed arranger waiting time

* additional waiting time for Outlook

* added app id

* ensure ids before launch

* set id in editor

* minor updates

* [Workspaces] Move: Get the nearest window when moving a window

* [Workspaces] convert optional boolean to enum to avoid json problems

* Handle case when the new Application Property "moveIfExists" does not exist

* Re-implementing app-window pairing for moving feature.

* spell checker

* XAML formatting

* Fixing bug: IPC message not arriving

* spell checker

* Removing app-level-setting for move app. Also fixed compiler errors due styling.

* Updating editor window layout

* Re-implementing window positioning UI elements

* XAML formatting

* Code review findings

* Code cleanup

* Code cleanup

* Code cleanup

* code cleanup

* Code cleanup

* Code cleanup

* fix Move attribute after launch and snapshot

* Extend WindowArranger with PWA functionality to detect different PWA apps. PwaHelper moved to the common library

* fix repeat counter in the editor

* Code optimization

* code cleanup, optimization

* fix double-processing window

---------

Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: donlaci <donlaci@yahoo.com>

* [KeyboardManager]Fix mapping shift to numpad (#35890)

* Keyboard Manger fix numpad as shift

Fixed shift not being released if a numpad key as shift.

* Added comments

* Fix typo

* Fix the numpad unlocked key not working if the locked version is overridden by shift

* Fix spelling check.

* Revert the VK_CLEAR change.

---------

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* [Analyzers] Update .editorconfig with rules to relax IDE errors (#36095)

* [Analyzers] Remove duplicate pascal case style from .editorconfig

* [Analyzers] Configured severity for individual IDE and CA rules showing as errors in VS

Set severity for IDE0005, IDE0008, IDE0016, IDE0018, IDE0019, IDE0021, IDE0022, IDE0023, IDE0025, IDE0027, IDE0028, IDE0029, IDE0031, IDE0032, IDE0034, IDE0036, IDE0039, IDE0042, IDE0044, IDE0045, IDE0046, IDE0047, IDE0057, IDE0051, IDE0052, IDE0054, IDE0055, IDE0056, IDE0057, IDE0059, IDE0060, IDE0061, IDE0063, IDE0071, IDE0073, IDE0074, IDE0075, IDE0077, IDE0078, IDE0083, IDE0090, IDE0100, IDE0130, IDE160, IDE180, IDE0200, IDE0240, IDE0250, IDE0251, IDE0260, IDE0270, IDE0290, IDE0300, IDE0301, IDE0305, IDE1005, IDE1006, CA1859, CA2022, CA2263

* [Analyzers] Fix mismatched analyzer descriptions

* [Analyzers] Fix misspelling

* Update .editorconfig

Made the following style rules `silent` instead of `suggestion`: 
- Use explicit type instead of 'var'
- Use expression body for ...
- Use block-scoped namespace

* [Analyzers] Set IDE0290 to silent

* [Analyzers] Remove IDE1006 configuration from .editorconfig in favor of making exclusions for the few entries

* [Analyzers][Indexer] Add IDE1006 suppressions

* [Analyzers][Peek] Add IDE1006 suppression

* [Analyzers][MWB] Add IDE1006 suppression.

* [Analyzers][Plugins] Add IDE1006 suppression

* [Analyzers][ImageResizer] Suppress IDE0073 to retain original copyright

* [Analyzers] Remove IDE0073 severity change in .editorconfig

---------

Co-authored-by: Ani <115020168+drawbyperpetual@users.noreply.github.com>

* [Workspaces] PWA follow-up (#36217)

* [PTRun][Calculator]Allow scientific notation with lowercase 'e' (#36187)

* [Workspaces] Add encoder parameter to bitmap.save() (#36228)

* [Workspaces] Add encoder parameter to bitmap.save()

* 1 more call fixed

* Move repeated code to the csharp library

* [Workspaces] Implement store of app window's size and position (#36086)

* [Workspaces] Implement store of app window's size and position

* Modifying the default values to -1. The program will use the original default values for the first run.

* [ScreenRuler]Add setting to show the measurement in an extra unit (#35887)

* display ruler: supporting millimeter and other units

* Measurement Tool: UI Setting for an extra unit

* Update images

* spelling

* spelling

* suit code style

* Fix for code review

* remove weird file

* rename field

* [Deps]Update MSTest from 3.5.0 to 3.6.3 (#36115)

* Update MSTest from 3.5.0 to 3.6.3

* Use STA attributes that are now part of MSTest

* Adding Jerry to community.md (#36232)

Update COMMUNITY.md

* [Workspaces] Arranger: smart timer (#36096)

* [Workspaces] Add move functionality

* spell checker

* [Workspaces] Modify Arranger to move apps without launch

* moved ipc helper

* removed callback

* use LauncherStatus in WindowArranger

* wait for launching next app

* launch in a separate thread and protect by mutexes

* update app version in advance

* changed canceling launch

* increased waiting time

* Fix optional parameter load from json

* changed arranger waiting time

* additional waiting time for Outlook

* added app id

* ensure ids before launch

* set id in editor

* minor updates

* [Workspaces] Move: Get the nearest window when moving a window

* [Workspaces] convert optional boolean to enum to avoid json problems

* Handle case when the new Application Property "moveIfExists" does not exist

* Re-implementing app-window pairing for moving feature.

* spell checker

* XAML formatting

* Fixing bug: IPC message not arriving

* spell checker

* Removing app-level-setting for move app. Also fixed compiler errors due styling.

* Updating editor window layout

* Re-implementing window positioning UI elements

* XAML formatting

* Code review findings

* Code cleanup

* Code cleanup

* Code cleanup

* code cleanup

* Code cleanup

* Code cleanup

* [Workspaces] Arranger: Reset wait timer after each successful arrange action

* fix merge error

---------

Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: donlaci <donlaci@yahoo.com>

* Upgrade to check-spelling v0.0.24 (#36235)

This upgrades to [v0.0.24](https://github.com/check-spelling/check-spelling/releases/tag/v0.0.24).

A number of GitHub APIs are being turned off shortly, so you need to upgrade or various uncertain outcomes will occur.

There's a new accessibility forbidden pattern:

> Do not use `(click) here` links
> For more information, see:
> * https://www.w3.org/QA/Tips/noClickHere
> * https://webaim.org/techniques/hypertext/link_text
> * https://granicus.com/blog/why-click-here-links-are-bad/
> * https://heyoka.medium.com/dont-use-click-here-f32f445d1021
```pl
(?i)(?:>|\[)(?:(?:click |)here|link|(?:read |)more)(?:</|\]\()
```

There are some minor bugs that I'm aware of and which I've fixed since this release, but I don't expect to make another release this month.

I've added a pair of patterns for includes and pragmas. My argument is that the **compiler** will _generally_ tell you if you've misspelled an include and the **linker** will _generally_ tell you if you misspell a lib.

- There's a caveat here: If your include case-insensitively matches the referenced file (but doesn't properly match it), then unless you either use a case-sensitive file system (as opposed to case-preserving) or beg clang to warn, you won't notice when you make this specific mistake -- this matters in that a couple of Windows headers (e.g. Unknwn.h) have particular case and repositories don't tend to consistently/properly write them.

* Adjust to community.md, shifting jerry's github user name (#36242)

Update COMMUNITY.md

* [AOT compatible] Resolve AOT Build Error in Peek.UI (#36194)

* add partial for aot support

* add Microsoft.NET.ILLink.Tasks to packages.props

* format

* Revert "format"

This reverts commit 742d5e2214.

* add Microsoft.NET.ILLink.Tasks to notice.md

* add auto reference

* update script to remove the 'Auto-reference line'

---------

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Awake Updates - `TILLSON_11272024` (#36049)

* Update with bug fixes for tray icon and support for parent process

* Process information enum

* Update the docs

* Fix spelling

* Make sure that PID is used in PT config flow

* Logic for checks based on #34148

* Update with link to PR

* Fixes #34717

* Small cleanup

* Proper task segmentation in a function

* Cleanup the code

* Fix synchronization context issue

* Update planning doc

* Test disabling caching to see if that manages to pass CI

* Cleanup to make sure that we're logging things properly.

* Update ci.yml

* Disable cache to pass CI

* Retry logic

* Cleanup

* Code cleanup

* Fixes #35848

* Update notes and codename

* After third attempt, log error instead of throwing exception

* More cleanup to avoid double execution

* Add expected word

* Safeguards for bad values for timed keep-awake

* More updates to make sure I am using uint

* Update error message

* Update packages

* Fix notice and revert CsWinRT upgrade

* Codename update

* Update expect.txt

* Update the struct

* Ensuring we're properly awaiting tray initialization

* Update to make sure tray reflects the bound process

* Cleanup, proper JSON serialization for logs.

* Not needed.

* Add command validation logic

* Moving the initialization logic earlier

* Make sure we show the display state in the tooltip

* Update tray string

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update logic for icon resets

* Update doc

* Simplify function for setting mode shell icon

* Issues should be properly linked

* Minor cleanup

* Update timed behavior

---------

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>

* [Workspaces] detecting right app version (#36100)

* [Workspaces] Add move functionality

* spell checker

* [Workspaces] Modify Arranger to move apps without launch

* moved ipc helper

* removed callback

* use LauncherStatus in WindowArranger

* wait for launching next app

* launch in a separate thread and protect by mutexes

* update app version in advance

* changed canceling launch

* increased waiting time

* Fix optional parameter load from json

* changed arranger waiting time

* additional waiting time for Outlook

* added app id

* ensure ids before launch

* set id in editor

* minor updates

* [Workspaces] Move: Get the nearest window when moving a window

* [Workspaces] convert optional boolean to enum to avoid json problems

* Handle case when the new Application Property "moveIfExists" does not exist

* Re-implementing app-window pairing for moving feature.

* spell checker

* XAML formatting

* Fixing bug: IPC message not arriving

* spell checker

* Removing app-level-setting for move app. Also fixed compiler errors due styling.

* Updating editor window layout

* Re-implementing window positioning UI elements

* XAML formatting

* Code review findings

* Code cleanup

* Code cleanup

* Code cleanup

* code cleanup

* Code cleanup

* Code cleanup

* [Workspaces] fix detection of specific version of apps

---------

Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: donlaci <donlaci@yahoo.com>

* Move the XamlStyler config to src/ (#36202)

my never ending goal to minimize files in the root dir

* [AdvancedPaste]Add Semantic Kernel opt-in to allow chaining of paste actions (#35902)

* [AdvancedPaste] Semantic Kernel support

* Changed log-line with potentially sensitive info

* Spellcheck issues

* Various improvements for Semantic Kernel

* Spellcheck issue

* Refactored Clipboard routines

* Added integration tests for KernelService

* Extra telemetry for AdvancedPaste

* Added 'Hotkey' suffix to AdvancedPaste_Settings telemetry event

* Added IsSavedQuery

* Added KernelQueryCache

* Refactoring

* Added KernelQueryCache to BugReportTool delete list

* Added opt-n for Semantic Kernel

* Fixed bug with KernelQueryCache

* Ability to view last AI chat message on error

* Improved kernel query cache

* Used System.IO.Abstractions and improved tests

* Fixed under-count of token usage

* Used Semantic Kernel icon

* Cleanup

* Add missing EndProject line

* Fix dependency version conflicts

* Fix NOTICE.md

* Correct place of SemanticKernel in NOTICE.md

* Unlinked CustomPreview toggle from AI

* Added Microsoft.Bcl.AsyncInterfaces dependency to AdvancedPaste

* Fixed NOTICE.md order

* Moved Custom Preview to behaviour section

* Made Image to Text raise error on empty output

* Added AIServiceBatchIntegrationTests

* Updated AIServiceBatchIntegrationTests

* Added prompt moderation

* Moved GPO Infobar to better location

* [Launcher]Port from WPF-UI to .NET 9 WPF (#36215)

* Initial implementation

* Fix fluent style

* Fix no endline

* Update expect.txt

* Fix formatting

* Fix light theme looking bad on Windows 10

* fix formatting

* test change

* Now really fixed W10

* Add a comment

* Fix typos

* Fix spellcheck errors

* Fix spellcheck pattern for websites

* Change patterns for spellcheck in the right file

* Fix XAML styling

* Fix contrast colors on W11

* Fix formatting

* Removed emty line

* Fix formatting

* Added comment to fluentHC file

* fix comment

* Fix Windows10 again.
Adress feedback.

* W11 fix chaning from high contrast to normal not having correct background

* W10 Fix high contrast not working after switching from light/dark moed

* Address feedback

* Fix formatting

* Second W11 fix chaning from high contrast to normal not having correct background

* [UX]Updating New+ and Settings icons (#36290)

* Updated icons

* Updating more icons and icos

* [Settings][Dashboard] Accessibility fixes (#36280)

* make narrator announce buttons/toggles

* add toggles module name

* [ci]Sign OpenAI dll that's not signed (#36299)

* Update CODEOWNERS to include gordon, jerry and kayla (#36308)

* Update CODEOWNERS

* Update names.txt

* Making the powertoys-code-owners team code owners (#36310)

* Update CODEOWNERS

* Update names.txt

* Update CODEOWNERS

* [FZEditor]Fix Create new layout dialog radio buttons IsChecked values  (#36320)

* 0.87 changelog (#36335)

* 0.87 changelog

* Fix spellcheck

* Update README.md

Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

---------

Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

* [PTRun]Fix WPF transparent border issue on Windows 10 (#36392)

* Added border on W10

* Added a comment

---------
Co-authored-by: Davide Giacometti <25966642+davidegiacometti@users.noreply.github.com>

* [PTRun]Fix .NET 9 crash in OneNote (#36417)

* Fix crash in OneNote Run

* added better comment

* [AdvancedPaste]Fix NullReferenceException on Dispose (#36428)

[AdvancedPaste] Fixed NullReferenceException on Dispose

* [Fuzz] Add fuzz testing for AdvancedPaste and new pipeline for onboarding OneFuzz (#36329)

* add fuzz

* install .net8

* add spelling check

* refine the pipeline

* add readme and update the test code

* fix spelling error

* change to weekly run

* Add New CI Pipeline for Latest WindowsAppSDK (#36282)

This PR introduces the following changes to the CI pipeline and version management:

Pipeline Enhancements:
1. Added a new script UpdateVersions.ps1 to automate the update of Microsoft.WindowsAppSDK versions across various project files.
2. Introduced a new pipeline configuration ci-using-the-latest-winappsdk.yml to build using the latest Microsoft.WindowsAppSDK.
3. Updated existing pipeline configurations to support the new useLatestWinAppSDK parameter.

Pipeline Configuration Updates:
1. Updated job-build-project.yml to handle the useLatestWinAppSDK parameter and adjust the RestoreAdditionalProjectSourcesArg accordingly.
2. Added a new template steps-update-winappsdk-and-restore-nuget.yml for updating and restoring NuGet packages with the latest Microsoft.WindowsAppSDK.
3. Added WinAPPSDK version selection, the pipeline can be manually triggered to use the specified version.

---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>

* [AOT compatible] Make HostsUILib become AOT compatible (#36136)

* Remove AOT configuration

* Refer to AOT compatibility props

---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>

* [AOT compatible] Clean up some AOT build issue in FilePreviewCommon and MarkdownPreviewHandler (#36207)

* Use AppContext.BaseDirectory to replace assembly.GetExeAseembly.Location.
Fix json serilizer aot issue.

* clean up some AOT build issue

* Update src/modules/previewpane/MarkdownPreviewHandler/MarkdownPreviewHandlerControl.cs

Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

* Update src/common/FilePreviewCommon/Formatters/JsonFormatter.cs

Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>
Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

* Add new pipeline using the latest webview2 from Edge Canary (#36317)

* using the latest webview2 for testing


---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>

* [Bug fix] Making the OpenAI key configuration page scrollable. (#36359)

* Fixed #34470

---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>

* [Bug fix] Add a format validation step before format conversion. (#36404)

This PR aims to fix the bug #35225 by introducing a new method IsJson to determine if a given text is in JSON format.
The IsJson method is then utilized in the ToJsonFromXmlOrCsvAsync method to optimize the processing logic.
If the text is already in JSON format, it is returned directly without further conversion from XML or CSV.

Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>
Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

* Add more STCA team members (#36438)

* Add more STCA team members

* Include more spelling check errors

* Remove non-alpha in dictionary

* Add Zhaopeng Wang

* Fix spell checking error

* Remove "prerelease: true" (#36484)

* Remove "prerelease: true"

The Microsoft.WinGet.DSC module is GA so prerelease: true is no longer needed.

* Update expect.txt

fixing spellcheck warning

---------

Co-authored-by: Clint Rutkas <clint@rutkas.com>

* [Docs]Update README for 0.87.1 release (#36534)

* [CI] Enhance build Pipeline Reliability with Retry Logic and Improved Error Messaging (#36529)

* update pipeline with retry

* remove tests

* Add team member (#36590)

* [New+]Don't override New actions from Explorer on Windows 10 (#36467)

* [New+]Don't override New actions from Explorer

* Update src/modules/NewPlus/NewShellExtensionContextMenu.win10/shell_context_menu_win10.cpp

* Update src/modules/NewPlus/NewShellExtensionContextMenu.win10/shell_context_menu_win10.cpp

* Add pattern for learn.microsoft links

* Also only Query for context menu

* [PTRun][Calculator]Handle hexadecimal numbers to not return divide by 0 error (#36390)

* add '0x' handling for divide by 0 scenarios

* fix comment on division by 0 check

---------

Co-authored-by: Connor Plante <connor.plante@gmail.com>

* [TextExtractor]Minor UI/Accessibility fixes in the overlay UI (#36356)

minor UI and accessibility fixes

* [PTRun][Calculator]Update mages to v3.0.0 and support for `randi(n)` (#36560)

* update to mages 3.0.0

* allow randi() in calculator plugin

* fix tests and input validation

* fix spell check

* [QuickAccent]Added ć for Slovenian (#36336) (#36338)

* Fix snapping Workspaces Editor to Fancy Zones (#36463)

* Remove Workspaces Editor from Fancy Zone's excluded app list

* removed unused string

---------

Co-authored-by: Seraphima <zykovas91@gmail.com>

* [PTRun]Fix drag on .NET 9 WPF (#36635)

* [CQ]Continued to move stuff out of root - Solution.props (#36244)

* [QuickAccent]Add Proto-Indo-European (#36408)

* Add ḱ to PowerAccent for Proto-Indo-European

* Fix Spelling Check

* Add more letters to PIE

* Order PIE after PI

---------

Co-authored-by: Hao Liu (from Dev Box) <haoliu3@microsoft.com>
Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* [PTRun]Add context buttons for VSCodeWorkspaces plugin (#36517)

* [Settings][QuickAccent]Change 'character set' to plural form (#36565)

* [PTRun][Calculator]Fix unit tests on non-english systems (#36569)

* fix tests

* update comment

* [PTRun][Calc]Improve handling of non-base 10 numbers (#36700)

* [Settings][PTRun]Show plugin version and website (#36580)

* [Monaco]Add support for .resx and .resw preview support. (#36499)

Added support for .resx and .resw preview support. These files are XML based files so I added the file extensions as part of the registerAdditionalLanguage("xmlExt"...) function.

* [Settings] Add Workspaces' workspaces.json file to backup/restore list (#36714)

* [Localization] Fix loc pipeline to send downloaded localized files to TDBuild upon retry after failure (#36766)

* [AdvancedPaste]Fixed issues with Screen Reader integration (#36778)

* Remove Advent calendar from README (#36777)

* Remove Advent calendar from README

* Update hero image

* Delete doc/images/overview/PT_holiday_hero_image.png

* [AdvancedPaste]Add all BitmapDecoder supported image filetypes to ImageToText (#35600)

Adds support to ImageToText for all image filetypes supported by BitmapDecoder.

* [AOT]Clean up some AOT build issues in PowerAccent.Core (#36264)

* init

* Use AotCompatibility instead

* Replace typeof(Lanaguge) with GetValues<Language>

* Create new folder to place source generation context file.

---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>

* [WinUI3]Fix Windows 10 title bar borders (#36429)

* Fix borders for windows in the Settings UI

* Fix HOSTS window

* Fix Advanced Paste

* Fix Environment Variables

* Fix File Locksmith

* Fix Peek, with a caveat

* Fix Registry Preview

* Remove unused imports

* Clean up imports in OobeShellPage

* Move OSVersionHelper from Common.UI up into ManagedCommon

* [QuickAccent]Fix unstable language loading (#36721)

* [Peek]Bring into foreground if previously minimized (#36506)

Added Activate() to bring Peek.UI window into focus upon Toggle. This allows the UI to be presented even if it was previously minimized.

* Update Run docs README (#36857)

* Update Run docs README

* Remove System dupe

* [Monaco]Make minimap toggleable (#33742)

* [Monaco]Fix Json format preview setting (#36867)

* [KBM]Added option for exact match shortcut (#36000)

* Added option for exact match shortcut

* Fix spell-check

* [Deps][Security]Update .NET Packages from 9.0.0 to 9.0.1  (#36879)

* [Deps] Update NuGet packages to version 9.0.1

Updated several NuGet packages from version 9.0.0 to 9.0.1, including:
- Microsoft.Data.Sqlite
- Microsoft.Bcl.AsyncInterfaces
- Microsoft.Extensions.DependencyInjection
- Microsoft.Extensions.Logging
- Microsoft.Extensions.Logging.Abstractions
- Microsoft.Extensions.Hosting
- Microsoft.Extensions.Hosting.WindowsServices
- Microsoft.Win32.SystemEvents
- Microsoft.Windows.Compatibility
- System.CodeDom
- System.ComponentModel.Composition
- System.Configuration.ConfigurationManager
- System.Data.OleDb
- System.Diagnostics.EventLog
- System.Diagnostics.PerformanceCounter
- System.Drawing.Common
- System.Management
- System.Runtime.Caching
- System.ServiceProcess.ServiceController
- System.Text.Encoding.CodePages
- System.Text.Json

* [Deps] Update NOTICE.md

* [Peek]Fix using the correct Monaco assets at runtime (#36890)

* [Workspaces] fixing bug: editor starts outside of visible desktop area (#36769)

* [Workspaces] fixing bug: editor starts outside of visible desktop area

* Update src/modules/Workspaces/WorkspacesEditor/MainWindow.xaml.cs

Co-authored-by: Seraphima Zykova <zykovas91@gmail.com>

---------

Co-authored-by: Seraphima Zykova <zykovas91@gmail.com>

* [Workspaces] Saving app properties on launch and recapture (#36751)

* [Workspaces] Implementing set and get GUID to/from HWND to distinguish windows moved by the Workspaces tool

* After launch and capture copy the CLI args from the "original" project

* Fix getting GUID

* spell check

* modification to be able to handle different data sizes on different systems

* code optimisation

* Replacing string parameter by InvokePoint

* renaming variable

* [AdvancedPaste]Use background thread for interactions between runner and Advanced Paste (#36858)

* [Advanced Paste] Use background thread for runner-Advanced Paste interaction

* Fixed typo

* [VCM]Deprecate the Video Conference Mute utility (#36772)

* Remove all VideoConferenceMute related code and files

* Clean up vcm driver registry keys

* Also remove the Webcam report tool

* Also clean out video conference on the installer

* Fix spellcheck

* Remove comment about video conf

* Update gpo files revision

* Revert removing the VCM policies

* Deprecate VCM GPO policy

* Change deprecation message to show first supported version

* Tweak supported strings in the adml

* Goodbye friends, you are forever part of the team (#36905)

* Goodbye friends

Forever part of the team 😢

* Update COMMUNITY.md

* Fix formatting issues in COMMUNITY.md

* [New utility]Sysinternals ZoomIt (#35880)

* ZoomIt initial code dump

* Change vcxproj to normalize dependency versions

* Fix code quality to build

* Add to PowerToys solution

* Clean out C-style casts

* Fix some more analyzer errors

* Constexpr a function

* Disable some warnings locally that it seemed better not to touch

* Add ZoomIt module interface

* Add GPO

* Add Settings page with Enable button

* Output as PowerToys.ZoomIt.exe

* Extract ZoomIt Settings definition to its own header

* Make ZoomItModuleInterface build with ZoomItSettings too

* WinRT C++ interop for ZoomItSettings

* From Registry To PowerToys Json

* Properly fix const_cast analyzer error

* Initial Settings page loading from registry

* Zoom mode settings

* Save settings

* Add file picker and DemoType file support

* Remaining DemoType settings

* Have ZoomIt properly reloading Settings and exiting

* Remove context menu entries for Options and Exit

* ZoomIt simple Break Options

* Break advanced options

* Simple Record settings

* Record Microphone setting

* Fix break background file picker title

* Font setting

* Fix build issues after merge

* Add ZoomIt conflict warning to Settings

* Exclude Eula from spell checking

* Fix spellcheck errors

* Fix spell check for accelerated menu items

* Remove cursor files from spellcheck. They're binary

* Fix forbidden patterns

* Fix XAML style

* Fix C# analyzers

* Fix signing

* Also sign module interface dll

* Use actual ZoomIt icon

* Add OOBE page for ZoomIt

* ZoomIt image for Settings

* Flyout and Dashboard entries

* Fix type speed slider labels

* Correctly load default Font

* Correctly register shortcuts on ZoomIt startup first run

* Fix modifier keys not changing until restart

* Show MsgBox on taken shortcut

* Start PowerToys Settings

* Normalize ZoomIt file properties with rest of PowerToys

* Add attribution

* Add ZoomIt team to Community.md

* More copyright adjustments

* Fix spellcheck

* Fix MsgBox simultaneous instance to the front

* Add mention of capturevideosample code use

* Add ZoomIt to process lists

* Add telemetry

* Add logging

* React to gpo

* Normalize code to space identation

* Fix installer build

* Localize percent setting

* Fix XAML styling

* Update src/settings-ui/Settings.UI/Strings/en-us/Resources.resw

Co-authored-by: Stefan Markovic <57057282+stefansjfw@users.noreply.github.com>

* Fix spellcheck

* One more spellcheck fix

* Integrate LiveDraw feature changes from upstream

* Fix name reuse in same scope

* Fix c-style casts

* Also register LIVEDRAW_HOTKEY

* Fix newLiveZoomToggleKey

* Update LiveZoom description in Settings to take LiveDraw into account

* Fix spellcheck

* Fix more spellcheck

* Fix Sysinternals capitalization

* Fix ARM64 Debug build

* Support Sysinternals build (#36873)

* Remove unneeded files

* Make build compatible with Sysinternals

* Separate PowerToys ZoomIt product name (#36887)

* Separate PowerToys ZoomIt product name

To help maintain the Sysinternals branding in the standalone version.

* Clarify branding-related includes

* Remove ZoomIt.sln

* Add foxmsft to spell-check names

* Add ZoomIt to README

* Add ZoomIt to GH templates

* Add ZoomIt events to DATA_AND_PRIVACY.md

* Remove publish_config.json

* Remove publish_config.json from vcxproj too

---------

Co-authored-by: Mark Russinovich <markruss@microsoft.com>
Co-authored-by: Alex Mihaiuc <69110671+foxmsft@users.noreply.github.com>
Co-authored-by: John Stephens <johnstep@microsoft.com>
Co-authored-by: Stefan Markovic <57057282+stefansjfw@users.noreply.github.com>

* [PTRun]Add hotkey to the show telemetry event (#36869)

* [PTRun]Update the code for .NET 9.0.1 - remove workarounds (#36909)

* Revove some unneeded changes after pdating to .net9.1

* [RegistryPreview]Copy context menu, data tooltip, MULTI_SZ fix (#36631)

* add context menus

* string resources for contextmenu

* fix line break parsing for MULTI_SZ

* better presentation of multiline values and value tooltip

* cleanup

* [MWB] - refactoring "Common" classes - Common.Log.cs, Common.Receiver.cs (#35726)

* [PTRun]Add setting for different trigonometric units in Calculator (#36717)

* Added angle units to PowerToys Run Calculator plugin.

* Update Resources.resx

* Added GitHub SpellCheck rule for 'gradians'.

---------

Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

* [ci]Remove steps to build abstracted utilities packages (#36934)

* [Settings]Update GPO infobar icon, improve some pages and fix bugs (#33703)

* changes part 1

* fix xaml code

* changes part 2

* fix cmdNotFound page

* Update PowerOcrPage

* More Pages changed

* More Pages changed

* revert temporary change

* fix spelling

* add resw comment

* add resw comment

* Update MouseWihtoutBorderPage.xaml

* PowerPreview page

* workspaces page

* fix awake page gpo handling

* NewPlus page

* update new+ page!

* AdvancedPaste.xaml: Move Info bar.

* Update MouseJumpPanel.xaml

* Update GeneralPage.xaml

* fix position of info bar and some ui quirks

* fix xaml style

* fix string resources

* string changes

* prepare megre main

* update new+ page

* zoomit page

* various fixes

* [Common]NotificationUtil helper class with FileWatcher (#36720)

* add NotificationUtil helper with file watcher and cache

* fix spellcheck

* indentation

* [PTRun][Docs]Add YubicoOauthOTP to Third-Party plugins (#36761)

* [PTRun]Fixed typo in Value Generator messages (#36951)

* [AOT] Clean up some AOT issues in Advanced Paste module (#36297)

* Clean up the aot build issue.

* Merge main and clean up new AOT build issue

* Update LogEvent define.

* Update src/modules/AdvancedPaste/AdvancedPaste/Helpers/LogEvent.cs

Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

* update typo bug

* Remove unused allow list item

* Create a new folder to place source generation context

* Merge main and rename LogEvent to AIServiceFormatEvent

---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>
Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

* [ZoomIt]React to gpo setting when run as standalone (#36975)

* [Settings]ImageResizer settings accessibility updates, fixes and refactor (#36903)

* Fix issue with missing Image Resizer unit and fit information in settings description.

* Fix accessibility issues on Edit and Remove buttons. Fix various issues and refactor view model and ImageSize. New resources for accessibility text formats.

* Fix unit test because of change to new preset width and height. Fix 2 unit tests having incorrect expected/actual orderings.

* Post-review update: accessibility strings now formatted within the converter, instead of via format strings; simplified encoder GUID collection declaration and retrieval.

* Minor example text fix.

* [Settings]Update "Back up" mentions when it should be used as a verb (#36965)

* Update Back up name

* Rename Backup to Back up

* [New+]Update last modified date to now for all templates created (#36133)

* Update last modified date to now for all templates created

* Now also set last update for directories. Thank you htcfreek!

* [ImageResizer][ci]Fix XAML style errors (#37009)

* [Settings] Add "new" labels to navigation for new utilities (#36939)

* initial implementation

* move new label to zoomit

* cleanup

* more cleanup

* fix XAML formatting

* update padding to 4px

* add badge to dashboard item

* fix XAML formatting

* Tweaking UX

---------

Co-authored-by: Niels Laute <niels.laute@live.nl>
Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* [MWB]Fix helper process termination issue in service mode (#36892)

* [MWB] Changed to suppress the flow of the execution context

* Fix build after merge

* [MWB] Fix helper process termination issue in service mode

* Add some comments

* [runner]Fix crashes caused by wrong setting AllowDataDiagnostics registry value (#37015)

* Fix setting registry value

* Prevent future similar crashes

* [PTRun][Calculator]Error check when loading trigonometry mode (#37033)

* [ZoomIt]Fix transparent draw after changing another setting (#37042)

* [Settings]Fix ZoomIt page changing current directory (#37052)

* [ci]Remove vc tools version workaround (#37098)

* 0.88 changelog (#37056)

* 0.88 changelog

* Update README.md

Co-authored-by: Clint Rutkas <clint@rutkas.com>

* Add installer hashes

* Fix aka.ms link for ZoomIt

* Add mention to the PTRun plugin's dll file version

* Update README.md

Co-authored-by: Kayla Cinnamon <cinnamon@microsoft.com>

---------

Co-authored-by: Clint Rutkas <clint@rutkas.com>
Co-authored-by: Kayla Cinnamon <cinnamon@microsoft.com>

* Update README.md - update What's Planned to 0.89 (#37157)

Update README.md

Just a tiny update, as reference to 0.88 was missed.

* [ci]Proper workaround for the vc tools version check (#37130)

* Revert "[ci]Remove vc tools version workaround (#37098)"

This reverts commit 2c069ce708.

* Adopt the same workaround as in Terminal

* build: add a couple more signing variables to ESRP (#37328)

This is in support of some identity changes we need to make.

* [Docs] Update runner-ipc.md to fix broken links (#36994)

Update runner-ipc.md

Fix broken file links.

* [ContextMenu]Update win11 msix menus if wrong version is detected (#37289)

* [ContextMenus]Update win11 msix menus if wrong version

* Remove extra line in code

* [Build]Compatibility with VS17.3 and later, for C++23 <expected>(#37321)

[Build] compatibility with VS17.3 and later, for C++23 <expected> has been introduced in VS17.3.6, and std::expected has conflict/inconsistent with the makeshift (expected-lite)

* [Deps]Update .NET Packages from 9.0.1 to 9.0.2 (#37400)

* [Deps] Update NuGet package versions to 9.0.2

* [CI] Update NOTICE.md

* Ignore 0.0.0.0 versions as well for PowerToys files

* Verify we're not shipping any 0.0.0.0 files

* Add MSFT file that's expected as 0.0.0.0

* Fix spellcheck

---------

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Fix bad merge

---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>
Co-authored-by: Laszlo Nemeth <57342539+donlaci@users.noreply.github.com>
Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: donlaci <donlaci@yahoo.com>
Co-authored-by: Ionuț Manța <ionut@janeasystems.com>
Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>
Co-authored-by: Ani <115020168+drawbyperpetual@users.noreply.github.com>
Co-authored-by: PesBandi <127593627+PesBandi@users.noreply.github.com>
Co-authored-by: Wenjian Chern <55335597+Sophanatprime@users.noreply.github.com>
Co-authored-by: Youssef Victor <youssefvictor00@gmail.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>
Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Co-authored-by: leileizhang <leilzh@microsoft.com>
Co-authored-by: Den Delimarsky 🔐 <sign@den.dev>
Co-authored-by: Niels Laute <niels.laute@live.nl>
Co-authored-by: Davide Giacometti <25966642+davidegiacometti@users.noreply.github.com>
Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>
Co-authored-by: Shuai Yuan <128874481+shuaiyuanxx@users.noreply.github.com>
Co-authored-by: moooyo <42196638+moooyo@users.noreply.github.com>
Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>
Co-authored-by: Jerry Xu <n.xu@outlook.com>
Co-authored-by: Demitrius Nelon <denelon@microsoft.com>
Co-authored-by: Kai Tao <69313318+vanzue@users.noreply.github.com>
Co-authored-by: Connor Plante <150482134+plante-msft@users.noreply.github.com>
Co-authored-by: Connor Plante <connor.plante@gmail.com>
Co-authored-by: Domen Soklič <soklicd@gmail.com>
Co-authored-by: Hao Liu <liuhaobupt@163.com>
Co-authored-by: Hao Liu (from Dev Box) <haoliu3@microsoft.com>
Co-authored-by: immi <iafullprogrammer@gmail.com>
Co-authored-by: Asif Islam <77113884+asif4318@users.noreply.github.com>
Co-authored-by: Kayla Cinnamon <cinnamon@microsoft.com>
Co-authored-by: Dave Rayment <dave.rayment@gmail.com>
Co-authored-by: Neil McAlister <pingzing@users.noreply.github.com>
Co-authored-by: Mark Russinovich <markruss@microsoft.com>
Co-authored-by: Alex Mihaiuc <69110671+foxmsft@users.noreply.github.com>
Co-authored-by: John Stephens <johnstep@microsoft.com>
Co-authored-by: Michael Clayton <mike@kingslandconsulting.co.uk>
Co-authored-by: Nathan Gill <nathan.j.gill@outlook.com>
Co-authored-by: Daniel Nilsson <daniel.nilsson1989@gmail.com>
Co-authored-by: JackStuart <jack@jstuart.io>
Co-authored-by: Christian Gaarden Gaardmark <cgaarden@hotmail.com>
Co-authored-by: YDKK <YDKK@users.noreply.github.com>
Co-authored-by: Dustin L. Howett <duhowett@microsoft.com>
Co-authored-by: LNKLEO <LinkeyLeo@outlook.com>
Co-authored-by: Mike Griese <migrie@microsoft.com>
2025-02-12 20:03:40 -06:00
Mike Griese
d93e5f5bd7 Add a license to our nuget (#418)
title
2025-02-12 15:24:44 -06:00
Mike Griese
43bae6f922 Add the form data too (#414)
Hey turns out that commented out `dataString` was important!

This isn't _terribly_ breaking, because `IFormContent` is new.
2025-02-07 10:44:22 -06:00
Mike Griese
066ebe104e Prepare for a new template project (#410)
This moves the extension template out to its own solution (with the SDK manually packed into it for now)

I've tested that I can now zip this up, then unzip and string replace on it, and we'll get a fully deployable, runnable extension, like 🫰
2025-02-07 10:44:07 -06:00
Seraphima Zykova
595fd3b6ee [Indexer] File icons (#343)
- [x] **Closes:** #316

![image](https://github.com/user-attachments/assets/4daeff29-4f56-41c3-8648-8d866b971382)
2025-02-07 10:43:40 -06:00
Mike Griese
4d696e1cfc BUILD: Fix signing the SDK (#413)
thanks dustin

This needed to also happen when we merged the upstream PT in #411
2025-02-07 05:15:29 -06:00
Stefan Markovic
c2245be456 Merge upstream PT #11 (#411)
* [Workspaces] implement the move feature (#35480)

* [Workspaces] Add move functionality

* spell checker

* [Workspaces] Modify Arranger to move apps without launch

* moved ipc helper

* removed callback

* use LauncherStatus in WindowArranger

* wait for launching next app

* launch in a separate thread and protect by mutexes

* update app version in advance

* changed canceling launch

* increased waiting time

* Fix optional parameter load from json

* changed arranger waiting time

* additional waiting time for Outlook

* added app id

* ensure ids before launch

* set id in editor

* minor updates

* [Workspaces] Move: Get the nearest window when moving a window

* [Workspaces] convert optional boolean to enum to avoid json problems

* Handle case when the new Application Property "moveIfExists" does not exist

* Re-implementing app-window pairing for moving feature.

* spell checker

* XAML formatting

* Fixing bug: IPC message not arriving

* spell checker

* Removing app-level-setting for move app. Also fixed compiler errors due styling.

* Updating editor window layout

* Re-implementing window positioning UI elements

* XAML formatting

* Code review findings

* Code cleanup

* Code cleanup

* Code cleanup

* code cleanup

* Code cleanup

* Code cleanup

* fix Move attribute after launch and snapshot

* Extend WindowArranger with PWA functionality to detect different PWA apps. PwaHelper moved to the common library

* fix repeat counter in the editor

* Code optimization

* code cleanup, optimization

* fix double-processing window

---------

Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: donlaci <donlaci@yahoo.com>

* [KeyboardManager]Fix mapping shift to numpad (#35890)

* Keyboard Manger fix numpad as shift

Fixed shift not being released if a numpad key as shift.

* Added comments

* Fix typo

* Fix the numpad unlocked key not working if the locked version is overridden by shift

* Fix spelling check.

* Revert the VK_CLEAR change.

---------

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* [Analyzers] Update .editorconfig with rules to relax IDE errors (#36095)

* [Analyzers] Remove duplicate pascal case style from .editorconfig

* [Analyzers] Configured severity for individual IDE and CA rules showing as errors in VS

Set severity for IDE0005, IDE0008, IDE0016, IDE0018, IDE0019, IDE0021, IDE0022, IDE0023, IDE0025, IDE0027, IDE0028, IDE0029, IDE0031, IDE0032, IDE0034, IDE0036, IDE0039, IDE0042, IDE0044, IDE0045, IDE0046, IDE0047, IDE0057, IDE0051, IDE0052, IDE0054, IDE0055, IDE0056, IDE0057, IDE0059, IDE0060, IDE0061, IDE0063, IDE0071, IDE0073, IDE0074, IDE0075, IDE0077, IDE0078, IDE0083, IDE0090, IDE0100, IDE0130, IDE160, IDE180, IDE0200, IDE0240, IDE0250, IDE0251, IDE0260, IDE0270, IDE0290, IDE0300, IDE0301, IDE0305, IDE1005, IDE1006, CA1859, CA2022, CA2263

* [Analyzers] Fix mismatched analyzer descriptions

* [Analyzers] Fix misspelling

* Update .editorconfig

Made the following style rules `silent` instead of `suggestion`: 
- Use explicit type instead of 'var'
- Use expression body for ...
- Use block-scoped namespace

* [Analyzers] Set IDE0290 to silent

* [Analyzers] Remove IDE1006 configuration from .editorconfig in favor of making exclusions for the few entries

* [Analyzers][Indexer] Add IDE1006 suppressions

* [Analyzers][Peek] Add IDE1006 suppression

* [Analyzers][MWB] Add IDE1006 suppression.

* [Analyzers][Plugins] Add IDE1006 suppression

* [Analyzers][ImageResizer] Suppress IDE0073 to retain original copyright

* [Analyzers] Remove IDE0073 severity change in .editorconfig

---------

Co-authored-by: Ani <115020168+drawbyperpetual@users.noreply.github.com>

* [Workspaces] PWA follow-up (#36217)

* [PTRun][Calculator]Allow scientific notation with lowercase 'e' (#36187)

* [Workspaces] Add encoder parameter to bitmap.save() (#36228)

* [Workspaces] Add encoder parameter to bitmap.save()

* 1 more call fixed

* Move repeated code to the csharp library

* [Workspaces] Implement store of app window's size and position (#36086)

* [Workspaces] Implement store of app window's size and position

* Modifying the default values to -1. The program will use the original default values for the first run.

* [ScreenRuler]Add setting to show the measurement in an extra unit (#35887)

* display ruler: supporting millimeter and other units

* Measurement Tool: UI Setting for an extra unit

* Update images

* spelling

* spelling

* suit code style

* Fix for code review

* remove weird file

* rename field

* [Deps]Update MSTest from 3.5.0 to 3.6.3 (#36115)

* Update MSTest from 3.5.0 to 3.6.3

* Use STA attributes that are now part of MSTest

* Adding Jerry to community.md (#36232)

Update COMMUNITY.md

* [Workspaces] Arranger: smart timer (#36096)

* [Workspaces] Add move functionality

* spell checker

* [Workspaces] Modify Arranger to move apps without launch

* moved ipc helper

* removed callback

* use LauncherStatus in WindowArranger

* wait for launching next app

* launch in a separate thread and protect by mutexes

* update app version in advance

* changed canceling launch

* increased waiting time

* Fix optional parameter load from json

* changed arranger waiting time

* additional waiting time for Outlook

* added app id

* ensure ids before launch

* set id in editor

* minor updates

* [Workspaces] Move: Get the nearest window when moving a window

* [Workspaces] convert optional boolean to enum to avoid json problems

* Handle case when the new Application Property "moveIfExists" does not exist

* Re-implementing app-window pairing for moving feature.

* spell checker

* XAML formatting

* Fixing bug: IPC message not arriving

* spell checker

* Removing app-level-setting for move app. Also fixed compiler errors due styling.

* Updating editor window layout

* Re-implementing window positioning UI elements

* XAML formatting

* Code review findings

* Code cleanup

* Code cleanup

* Code cleanup

* code cleanup

* Code cleanup

* Code cleanup

* [Workspaces] Arranger: Reset wait timer after each successful arrange action

* fix merge error

---------

Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: donlaci <donlaci@yahoo.com>

* Upgrade to check-spelling v0.0.24 (#36235)

This upgrades to [v0.0.24](https://github.com/check-spelling/check-spelling/releases/tag/v0.0.24).

A number of GitHub APIs are being turned off shortly, so you need to upgrade or various uncertain outcomes will occur.

There's a new accessibility forbidden pattern:

> Do not use `(click) here` links
> For more information, see:
> * https://www.w3.org/QA/Tips/noClickHere
> * https://webaim.org/techniques/hypertext/link_text
> * https://granicus.com/blog/why-click-here-links-are-bad/
> * https://heyoka.medium.com/dont-use-click-here-f32f445d1021
```pl
(?i)(?:>|\[)(?:(?:click |)here|link|(?:read |)more)(?:</|\]\()
```

There are some minor bugs that I'm aware of and which I've fixed since this release, but I don't expect to make another release this month.

I've added a pair of patterns for includes and pragmas. My argument is that the **compiler** will _generally_ tell you if you've misspelled an include and the **linker** will _generally_ tell you if you misspell a lib.

- There's a caveat here: If your include case-insensitively matches the referenced file (but doesn't properly match it), then unless you either use a case-sensitive file system (as opposed to case-preserving) or beg clang to warn, you won't notice when you make this specific mistake -- this matters in that a couple of Windows headers (e.g. Unknwn.h) have particular case and repositories don't tend to consistently/properly write them.

* Adjust to community.md, shifting jerry's github user name (#36242)

Update COMMUNITY.md

* [AOT compatible] Resolve AOT Build Error in Peek.UI (#36194)

* add partial for aot support

* add Microsoft.NET.ILLink.Tasks to packages.props

* format

* Revert "format"

This reverts commit 742d5e2214.

* add Microsoft.NET.ILLink.Tasks to notice.md

* add auto reference

* update script to remove the 'Auto-reference line'

---------

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Awake Updates - `TILLSON_11272024` (#36049)

* Update with bug fixes for tray icon and support for parent process

* Process information enum

* Update the docs

* Fix spelling

* Make sure that PID is used in PT config flow

* Logic for checks based on #34148

* Update with link to PR

* Fixes #34717

* Small cleanup

* Proper task segmentation in a function

* Cleanup the code

* Fix synchronization context issue

* Update planning doc

* Test disabling caching to see if that manages to pass CI

* Cleanup to make sure that we're logging things properly.

* Update ci.yml

* Disable cache to pass CI

* Retry logic

* Cleanup

* Code cleanup

* Fixes #35848

* Update notes and codename

* After third attempt, log error instead of throwing exception

* More cleanup to avoid double execution

* Add expected word

* Safeguards for bad values for timed keep-awake

* More updates to make sure I am using uint

* Update error message

* Update packages

* Fix notice and revert CsWinRT upgrade

* Codename update

* Update expect.txt

* Update the struct

* Ensuring we're properly awaiting tray initialization

* Update to make sure tray reflects the bound process

* Cleanup, proper JSON serialization for logs.

* Not needed.

* Add command validation logic

* Moving the initialization logic earlier

* Make sure we show the display state in the tooltip

* Update tray string

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update logic for icon resets

* Update doc

* Simplify function for setting mode shell icon

* Issues should be properly linked

* Minor cleanup

* Update timed behavior

---------

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>

* [Workspaces] detecting right app version (#36100)

* [Workspaces] Add move functionality

* spell checker

* [Workspaces] Modify Arranger to move apps without launch

* moved ipc helper

* removed callback

* use LauncherStatus in WindowArranger

* wait for launching next app

* launch in a separate thread and protect by mutexes

* update app version in advance

* changed canceling launch

* increased waiting time

* Fix optional parameter load from json

* changed arranger waiting time

* additional waiting time for Outlook

* added app id

* ensure ids before launch

* set id in editor

* minor updates

* [Workspaces] Move: Get the nearest window when moving a window

* [Workspaces] convert optional boolean to enum to avoid json problems

* Handle case when the new Application Property "moveIfExists" does not exist

* Re-implementing app-window pairing for moving feature.

* spell checker

* XAML formatting

* Fixing bug: IPC message not arriving

* spell checker

* Removing app-level-setting for move app. Also fixed compiler errors due styling.

* Updating editor window layout

* Re-implementing window positioning UI elements

* XAML formatting

* Code review findings

* Code cleanup

* Code cleanup

* Code cleanup

* code cleanup

* Code cleanup

* Code cleanup

* [Workspaces] fix detection of specific version of apps

---------

Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: donlaci <donlaci@yahoo.com>

* Move the XamlStyler config to src/ (#36202)

my never ending goal to minimize files in the root dir

* [AdvancedPaste]Add Semantic Kernel opt-in to allow chaining of paste actions (#35902)

* [AdvancedPaste] Semantic Kernel support

* Changed log-line with potentially sensitive info

* Spellcheck issues

* Various improvements for Semantic Kernel

* Spellcheck issue

* Refactored Clipboard routines

* Added integration tests for KernelService

* Extra telemetry for AdvancedPaste

* Added 'Hotkey' suffix to AdvancedPaste_Settings telemetry event

* Added IsSavedQuery

* Added KernelQueryCache

* Refactoring

* Added KernelQueryCache to BugReportTool delete list

* Added opt-n for Semantic Kernel

* Fixed bug with KernelQueryCache

* Ability to view last AI chat message on error

* Improved kernel query cache

* Used System.IO.Abstractions and improved tests

* Fixed under-count of token usage

* Used Semantic Kernel icon

* Cleanup

* Add missing EndProject line

* Fix dependency version conflicts

* Fix NOTICE.md

* Correct place of SemanticKernel in NOTICE.md

* Unlinked CustomPreview toggle from AI

* Added Microsoft.Bcl.AsyncInterfaces dependency to AdvancedPaste

* Fixed NOTICE.md order

* Moved Custom Preview to behaviour section

* Made Image to Text raise error on empty output

* Added AIServiceBatchIntegrationTests

* Updated AIServiceBatchIntegrationTests

* Added prompt moderation

* Moved GPO Infobar to better location

* [Launcher]Port from WPF-UI to .NET 9 WPF (#36215)

* Initial implementation

* Fix fluent style

* Fix no endline

* Update expect.txt

* Fix formatting

* Fix light theme looking bad on Windows 10

* fix formatting

* test change

* Now really fixed W10

* Add a comment

* Fix typos

* Fix spellcheck errors

* Fix spellcheck pattern for websites

* Change patterns for spellcheck in the right file

* Fix XAML styling

* Fix contrast colors on W11

* Fix formatting

* Removed emty line

* Fix formatting

* Added comment to fluentHC file

* fix comment

* Fix Windows10 again.
Adress feedback.

* W11 fix chaning from high contrast to normal not having correct background

* W10 Fix high contrast not working after switching from light/dark moed

* Address feedback

* Fix formatting

* Second W11 fix chaning from high contrast to normal not having correct background

* [UX]Updating New+ and Settings icons (#36290)

* Updated icons

* Updating more icons and icos

* [Settings][Dashboard] Accessibility fixes (#36280)

* make narrator announce buttons/toggles

* add toggles module name

* [ci]Sign OpenAI dll that's not signed (#36299)

* Update CODEOWNERS to include gordon, jerry and kayla (#36308)

* Update CODEOWNERS

* Update names.txt

* Making the powertoys-code-owners team code owners (#36310)

* Update CODEOWNERS

* Update names.txt

* Update CODEOWNERS

* [FZEditor]Fix Create new layout dialog radio buttons IsChecked values  (#36320)

* 0.87 changelog (#36335)

* 0.87 changelog

* Fix spellcheck

* Update README.md

Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

---------

Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

* [PTRun]Fix WPF transparent border issue on Windows 10 (#36392)

* Added border on W10

* Added a comment

---------
Co-authored-by: Davide Giacometti <25966642+davidegiacometti@users.noreply.github.com>

* [PTRun]Fix .NET 9 crash in OneNote (#36417)

* Fix crash in OneNote Run

* added better comment

* [AdvancedPaste]Fix NullReferenceException on Dispose (#36428)

[AdvancedPaste] Fixed NullReferenceException on Dispose

* [Fuzz] Add fuzz testing for AdvancedPaste and new pipeline for onboarding OneFuzz (#36329)

* add fuzz

* install .net8

* add spelling check

* refine the pipeline

* add readme and update the test code

* fix spelling error

* change to weekly run

* Add New CI Pipeline for Latest WindowsAppSDK (#36282)

This PR introduces the following changes to the CI pipeline and version management:

Pipeline Enhancements:
1. Added a new script UpdateVersions.ps1 to automate the update of Microsoft.WindowsAppSDK versions across various project files.
2. Introduced a new pipeline configuration ci-using-the-latest-winappsdk.yml to build using the latest Microsoft.WindowsAppSDK.
3. Updated existing pipeline configurations to support the new useLatestWinAppSDK parameter.

Pipeline Configuration Updates:
1. Updated job-build-project.yml to handle the useLatestWinAppSDK parameter and adjust the RestoreAdditionalProjectSourcesArg accordingly.
2. Added a new template steps-update-winappsdk-and-restore-nuget.yml for updating and restoring NuGet packages with the latest Microsoft.WindowsAppSDK.
3. Added WinAPPSDK version selection, the pipeline can be manually triggered to use the specified version.

---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>

* [AOT compatible] Make HostsUILib become AOT compatible (#36136)

* Remove AOT configuration

* Refer to AOT compatibility props

---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>

* [AOT compatible] Clean up some AOT build issue in FilePreviewCommon and MarkdownPreviewHandler (#36207)

* Use AppContext.BaseDirectory to replace assembly.GetExeAseembly.Location.
Fix json serilizer aot issue.

* clean up some AOT build issue

* Update src/modules/previewpane/MarkdownPreviewHandler/MarkdownPreviewHandlerControl.cs

Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

* Update src/common/FilePreviewCommon/Formatters/JsonFormatter.cs

Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>
Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

* Add new pipeline using the latest webview2 from Edge Canary (#36317)

* using the latest webview2 for testing


---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>

* [Bug fix] Making the OpenAI key configuration page scrollable. (#36359)

* Fixed #34470

---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>

* [Bug fix] Add a format validation step before format conversion. (#36404)

This PR aims to fix the bug #35225 by introducing a new method IsJson to determine if a given text is in JSON format.
The IsJson method is then utilized in the ToJsonFromXmlOrCsvAsync method to optimize the processing logic.
If the text is already in JSON format, it is returned directly without further conversion from XML or CSV.

Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>
Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

* Add more STCA team members (#36438)

* Add more STCA team members

* Include more spelling check errors

* Remove non-alpha in dictionary

* Add Zhaopeng Wang

* Fix spell checking error

* Remove "prerelease: true" (#36484)

* Remove "prerelease: true"

The Microsoft.WinGet.DSC module is GA so prerelease: true is no longer needed.

* Update expect.txt

fixing spellcheck warning

---------

Co-authored-by: Clint Rutkas <clint@rutkas.com>

* [Docs]Update README for 0.87.1 release (#36534)

* [CI] Enhance build Pipeline Reliability with Retry Logic and Improved Error Messaging (#36529)

* update pipeline with retry

* remove tests

* Add team member (#36590)

* [New+]Don't override New actions from Explorer on Windows 10 (#36467)

* [New+]Don't override New actions from Explorer

* Update src/modules/NewPlus/NewShellExtensionContextMenu.win10/shell_context_menu_win10.cpp

* Update src/modules/NewPlus/NewShellExtensionContextMenu.win10/shell_context_menu_win10.cpp

* Add pattern for learn.microsoft links

* Also only Query for context menu

* [PTRun][Calculator]Handle hexadecimal numbers to not return divide by 0 error (#36390)

* add '0x' handling for divide by 0 scenarios

* fix comment on division by 0 check

---------

Co-authored-by: Connor Plante <connor.plante@gmail.com>

* [TextExtractor]Minor UI/Accessibility fixes in the overlay UI (#36356)

minor UI and accessibility fixes

* [PTRun][Calculator]Update mages to v3.0.0 and support for `randi(n)` (#36560)

* update to mages 3.0.0

* allow randi() in calculator plugin

* fix tests and input validation

* fix spell check

* [QuickAccent]Added ć for Slovenian (#36336) (#36338)

* Fix snapping Workspaces Editor to Fancy Zones (#36463)

* Remove Workspaces Editor from Fancy Zone's excluded app list

* removed unused string

---------

Co-authored-by: Seraphima <zykovas91@gmail.com>

* [PTRun]Fix drag on .NET 9 WPF (#36635)

* [CQ]Continued to move stuff out of root - Solution.props (#36244)

* [QuickAccent]Add Proto-Indo-European (#36408)

* Add ḱ to PowerAccent for Proto-Indo-European

* Fix Spelling Check

* Add more letters to PIE

* Order PIE after PI

---------

Co-authored-by: Hao Liu (from Dev Box) <haoliu3@microsoft.com>
Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* [PTRun]Add context buttons for VSCodeWorkspaces plugin (#36517)

* [Settings][QuickAccent]Change 'character set' to plural form (#36565)

* [PTRun][Calculator]Fix unit tests on non-english systems (#36569)

* fix tests

* update comment

* [PTRun][Calc]Improve handling of non-base 10 numbers (#36700)

* [Settings][PTRun]Show plugin version and website (#36580)

* [Monaco]Add support for .resx and .resw preview support. (#36499)

Added support for .resx and .resw preview support. These files are XML based files so I added the file extensions as part of the registerAdditionalLanguage("xmlExt"...) function.

* [Settings] Add Workspaces' workspaces.json file to backup/restore list (#36714)

* [Localization] Fix loc pipeline to send downloaded localized files to TDBuild upon retry after failure (#36766)

* [AdvancedPaste]Fixed issues with Screen Reader integration (#36778)

* Remove Advent calendar from README (#36777)

* Remove Advent calendar from README

* Update hero image

* Delete doc/images/overview/PT_holiday_hero_image.png

* [AdvancedPaste]Add all BitmapDecoder supported image filetypes to ImageToText (#35600)

Adds support to ImageToText for all image filetypes supported by BitmapDecoder.

* [AOT]Clean up some AOT build issues in PowerAccent.Core (#36264)

* init

* Use AotCompatibility instead

* Replace typeof(Lanaguge) with GetValues<Language>

* Create new folder to place source generation context file.

---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>

* [WinUI3]Fix Windows 10 title bar borders (#36429)

* Fix borders for windows in the Settings UI

* Fix HOSTS window

* Fix Advanced Paste

* Fix Environment Variables

* Fix File Locksmith

* Fix Peek, with a caveat

* Fix Registry Preview

* Remove unused imports

* Clean up imports in OobeShellPage

* Move OSVersionHelper from Common.UI up into ManagedCommon

* [QuickAccent]Fix unstable language loading (#36721)

* [Peek]Bring into foreground if previously minimized (#36506)

Added Activate() to bring Peek.UI window into focus upon Toggle. This allows the UI to be presented even if it was previously minimized.

* Update Run docs README (#36857)

* Update Run docs README

* Remove System dupe

* [Monaco]Make minimap toggleable (#33742)

* [Monaco]Fix Json format preview setting (#36867)

* [KBM]Added option for exact match shortcut (#36000)

* Added option for exact match shortcut

* Fix spell-check

* [Deps][Security]Update .NET Packages from 9.0.0 to 9.0.1  (#36879)

* [Deps] Update NuGet packages to version 9.0.1

Updated several NuGet packages from version 9.0.0 to 9.0.1, including:
- Microsoft.Data.Sqlite
- Microsoft.Bcl.AsyncInterfaces
- Microsoft.Extensions.DependencyInjection
- Microsoft.Extensions.Logging
- Microsoft.Extensions.Logging.Abstractions
- Microsoft.Extensions.Hosting
- Microsoft.Extensions.Hosting.WindowsServices
- Microsoft.Win32.SystemEvents
- Microsoft.Windows.Compatibility
- System.CodeDom
- System.ComponentModel.Composition
- System.Configuration.ConfigurationManager
- System.Data.OleDb
- System.Diagnostics.EventLog
- System.Diagnostics.PerformanceCounter
- System.Drawing.Common
- System.Management
- System.Runtime.Caching
- System.ServiceProcess.ServiceController
- System.Text.Encoding.CodePages
- System.Text.Json

* [Deps] Update NOTICE.md

* [Peek]Fix using the correct Monaco assets at runtime (#36890)

* [Workspaces] fixing bug: editor starts outside of visible desktop area (#36769)

* [Workspaces] fixing bug: editor starts outside of visible desktop area

* Update src/modules/Workspaces/WorkspacesEditor/MainWindow.xaml.cs

Co-authored-by: Seraphima Zykova <zykovas91@gmail.com>

---------

Co-authored-by: Seraphima Zykova <zykovas91@gmail.com>

* [Workspaces] Saving app properties on launch and recapture (#36751)

* [Workspaces] Implementing set and get GUID to/from HWND to distinguish windows moved by the Workspaces tool

* After launch and capture copy the CLI args from the "original" project

* Fix getting GUID

* spell check

* modification to be able to handle different data sizes on different systems

* code optimisation

* Replacing string parameter by InvokePoint

* renaming variable

* [AdvancedPaste]Use background thread for interactions between runner and Advanced Paste (#36858)

* [Advanced Paste] Use background thread for runner-Advanced Paste interaction

* Fixed typo

* [VCM]Deprecate the Video Conference Mute utility (#36772)

* Remove all VideoConferenceMute related code and files

* Clean up vcm driver registry keys

* Also remove the Webcam report tool

* Also clean out video conference on the installer

* Fix spellcheck

* Remove comment about video conf

* Update gpo files revision

* Revert removing the VCM policies

* Deprecate VCM GPO policy

* Change deprecation message to show first supported version

* Tweak supported strings in the adml

* Goodbye friends, you are forever part of the team (#36905)

* Goodbye friends

Forever part of the team 😢

* Update COMMUNITY.md

* Fix formatting issues in COMMUNITY.md

* [New utility]Sysinternals ZoomIt (#35880)

* ZoomIt initial code dump

* Change vcxproj to normalize dependency versions

* Fix code quality to build

* Add to PowerToys solution

* Clean out C-style casts

* Fix some more analyzer errors

* Constexpr a function

* Disable some warnings locally that it seemed better not to touch

* Add ZoomIt module interface

* Add GPO

* Add Settings page with Enable button

* Output as PowerToys.ZoomIt.exe

* Extract ZoomIt Settings definition to its own header

* Make ZoomItModuleInterface build with ZoomItSettings too

* WinRT C++ interop for ZoomItSettings

* From Registry To PowerToys Json

* Properly fix const_cast analyzer error

* Initial Settings page loading from registry

* Zoom mode settings

* Save settings

* Add file picker and DemoType file support

* Remaining DemoType settings

* Have ZoomIt properly reloading Settings and exiting

* Remove context menu entries for Options and Exit

* ZoomIt simple Break Options

* Break advanced options

* Simple Record settings

* Record Microphone setting

* Fix break background file picker title

* Font setting

* Fix build issues after merge

* Add ZoomIt conflict warning to Settings

* Exclude Eula from spell checking

* Fix spellcheck errors

* Fix spell check for accelerated menu items

* Remove cursor files from spellcheck. They're binary

* Fix forbidden patterns

* Fix XAML style

* Fix C# analyzers

* Fix signing

* Also sign module interface dll

* Use actual ZoomIt icon

* Add OOBE page for ZoomIt

* ZoomIt image for Settings

* Flyout and Dashboard entries

* Fix type speed slider labels

* Correctly load default Font

* Correctly register shortcuts on ZoomIt startup first run

* Fix modifier keys not changing until restart

* Show MsgBox on taken shortcut

* Start PowerToys Settings

* Normalize ZoomIt file properties with rest of PowerToys

* Add attribution

* Add ZoomIt team to Community.md

* More copyright adjustments

* Fix spellcheck

* Fix MsgBox simultaneous instance to the front

* Add mention of capturevideosample code use

* Add ZoomIt to process lists

* Add telemetry

* Add logging

* React to gpo

* Normalize code to space identation

* Fix installer build

* Localize percent setting

* Fix XAML styling

* Update src/settings-ui/Settings.UI/Strings/en-us/Resources.resw

Co-authored-by: Stefan Markovic <57057282+stefansjfw@users.noreply.github.com>

* Fix spellcheck

* One more spellcheck fix

* Integrate LiveDraw feature changes from upstream

* Fix name reuse in same scope

* Fix c-style casts

* Also register LIVEDRAW_HOTKEY

* Fix newLiveZoomToggleKey

* Update LiveZoom description in Settings to take LiveDraw into account

* Fix spellcheck

* Fix more spellcheck

* Fix Sysinternals capitalization

* Fix ARM64 Debug build

* Support Sysinternals build (#36873)

* Remove unneeded files

* Make build compatible with Sysinternals

* Separate PowerToys ZoomIt product name (#36887)

* Separate PowerToys ZoomIt product name

To help maintain the Sysinternals branding in the standalone version.

* Clarify branding-related includes

* Remove ZoomIt.sln

* Add foxmsft to spell-check names

* Add ZoomIt to README

* Add ZoomIt to GH templates

* Add ZoomIt events to DATA_AND_PRIVACY.md

* Remove publish_config.json

* Remove publish_config.json from vcxproj too

---------

Co-authored-by: Mark Russinovich <markruss@microsoft.com>
Co-authored-by: Alex Mihaiuc <69110671+foxmsft@users.noreply.github.com>
Co-authored-by: John Stephens <johnstep@microsoft.com>
Co-authored-by: Stefan Markovic <57057282+stefansjfw@users.noreply.github.com>

* [PTRun]Add hotkey to the show telemetry event (#36869)

* [PTRun]Update the code for .NET 9.0.1 - remove workarounds (#36909)

* Revove some unneeded changes after pdating to .net9.1

* [RegistryPreview]Copy context menu, data tooltip, MULTI_SZ fix (#36631)

* add context menus

* string resources for contextmenu

* fix line break parsing for MULTI_SZ

* better presentation of multiline values and value tooltip

* cleanup

* [MWB] - refactoring "Common" classes - Common.Log.cs, Common.Receiver.cs (#35726)

* [PTRun]Add setting for different trigonometric units in Calculator (#36717)

* Added angle units to PowerToys Run Calculator plugin.

* Update Resources.resx

* Added GitHub SpellCheck rule for 'gradians'.

---------

Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

* [ci]Remove steps to build abstracted utilities packages (#36934)

* [Settings]Update GPO infobar icon, improve some pages and fix bugs (#33703)

* changes part 1

* fix xaml code

* changes part 2

* fix cmdNotFound page

* Update PowerOcrPage

* More Pages changed

* More Pages changed

* revert temporary change

* fix spelling

* add resw comment

* add resw comment

* Update MouseWihtoutBorderPage.xaml

* PowerPreview page

* workspaces page

* fix awake page gpo handling

* NewPlus page

* update new+ page!

* AdvancedPaste.xaml: Move Info bar.

* Update MouseJumpPanel.xaml

* Update GeneralPage.xaml

* fix position of info bar and some ui quirks

* fix xaml style

* fix string resources

* string changes

* prepare megre main

* update new+ page

* zoomit page

* various fixes

* [Common]NotificationUtil helper class with FileWatcher (#36720)

* add NotificationUtil helper with file watcher and cache

* fix spellcheck

* indentation

* [PTRun][Docs]Add YubicoOauthOTP to Third-Party plugins (#36761)

* [PTRun]Fixed typo in Value Generator messages (#36951)

* [AOT] Clean up some AOT issues in Advanced Paste module (#36297)

* Clean up the aot build issue.

* Merge main and clean up new AOT build issue

* Update LogEvent define.

* Update src/modules/AdvancedPaste/AdvancedPaste/Helpers/LogEvent.cs

Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

* update typo bug

* Remove unused allow list item

* Create a new folder to place source generation context

* Merge main and rename LogEvent to AIServiceFormatEvent

---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>
Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

* [ZoomIt]React to gpo setting when run as standalone (#36975)

* [Settings]ImageResizer settings accessibility updates, fixes and refactor (#36903)

* Fix issue with missing Image Resizer unit and fit information in settings description.

* Fix accessibility issues on Edit and Remove buttons. Fix various issues and refactor view model and ImageSize. New resources for accessibility text formats.

* Fix unit test because of change to new preset width and height. Fix 2 unit tests having incorrect expected/actual orderings.

* Post-review update: accessibility strings now formatted within the converter, instead of via format strings; simplified encoder GUID collection declaration and retrieval.

* Minor example text fix.

* [Settings]Update "Back up" mentions when it should be used as a verb (#36965)

* Update Back up name

* Rename Backup to Back up

* [New+]Update last modified date to now for all templates created (#36133)

* Update last modified date to now for all templates created

* Now also set last update for directories. Thank you htcfreek!

* [ImageResizer][ci]Fix XAML style errors (#37009)

* [Settings] Add "new" labels to navigation for new utilities (#36939)

* initial implementation

* move new label to zoomit

* cleanup

* more cleanup

* fix XAML formatting

* update padding to 4px

* add badge to dashboard item

* fix XAML formatting

* Tweaking UX

---------

Co-authored-by: Niels Laute <niels.laute@live.nl>
Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* [MWB]Fix helper process termination issue in service mode (#36892)

* [MWB] Changed to suppress the flow of the execution context

* Fix build after merge

* [MWB] Fix helper process termination issue in service mode

* Add some comments

* [runner]Fix crashes caused by wrong setting AllowDataDiagnostics registry value (#37015)

* Fix setting registry value

* Prevent future similar crashes

* [PTRun][Calculator]Error check when loading trigonometry mode (#37033)

* [ZoomIt]Fix transparent draw after changing another setting (#37042)

* [Settings]Fix ZoomIt page changing current directory (#37052)

* [ci]Remove vc tools version workaround (#37098)

* 0.88 changelog (#37056)

* 0.88 changelog

* Update README.md

Co-authored-by: Clint Rutkas <clint@rutkas.com>

* Add installer hashes

* Fix aka.ms link for ZoomIt

* Add mention to the PTRun plugin's dll file version

* Update README.md

Co-authored-by: Kayla Cinnamon <cinnamon@microsoft.com>

---------

Co-authored-by: Clint Rutkas <clint@rutkas.com>
Co-authored-by: Kayla Cinnamon <cinnamon@microsoft.com>

* Update README.md - update What's Planned to 0.89 (#37157)

Update README.md

Just a tiny update, as reference to 0.88 was missed.

* [ci]Proper workaround for the vc tools version check (#37130)

* Revert "[ci]Remove vc tools version workaround (#37098)"

This reverts commit 2c069ce708.

* Adopt the same workaround as in Terminal

* build: add a couple more signing variables to ESRP (#37328)

This is in support of some identity changes we need to make.

---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>
Co-authored-by: Laszlo Nemeth <57342539+donlaci@users.noreply.github.com>
Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: donlaci <donlaci@yahoo.com>
Co-authored-by: Ionuț Manța <ionut@janeasystems.com>
Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>
Co-authored-by: Ani <115020168+drawbyperpetual@users.noreply.github.com>
Co-authored-by: PesBandi <127593627+PesBandi@users.noreply.github.com>
Co-authored-by: Wenjian Chern <55335597+Sophanatprime@users.noreply.github.com>
Co-authored-by: Youssef Victor <youssefvictor00@gmail.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>
Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Co-authored-by: leileizhang <leilzh@microsoft.com>
Co-authored-by: Den Delimarsky 🔐 <sign@den.dev>
Co-authored-by: Niels Laute <niels.laute@live.nl>
Co-authored-by: Davide Giacometti <25966642+davidegiacometti@users.noreply.github.com>
Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>
Co-authored-by: Shuai Yuan <128874481+shuaiyuanxx@users.noreply.github.com>
Co-authored-by: moooyo <42196638+moooyo@users.noreply.github.com>
Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>
Co-authored-by: Jerry Xu <n.xu@outlook.com>
Co-authored-by: Demitrius Nelon <denelon@microsoft.com>
Co-authored-by: Kai Tao <69313318+vanzue@users.noreply.github.com>
Co-authored-by: Connor Plante <150482134+plante-msft@users.noreply.github.com>
Co-authored-by: Connor Plante <connor.plante@gmail.com>
Co-authored-by: Domen Soklič <soklicd@gmail.com>
Co-authored-by: Hao Liu <liuhaobupt@163.com>
Co-authored-by: Hao Liu (from Dev Box) <haoliu3@microsoft.com>
Co-authored-by: immi <iafullprogrammer@gmail.com>
Co-authored-by: Asif Islam <77113884+asif4318@users.noreply.github.com>
Co-authored-by: Kayla Cinnamon <cinnamon@microsoft.com>
Co-authored-by: Dave Rayment <dave.rayment@gmail.com>
Co-authored-by: Neil McAlister <pingzing@users.noreply.github.com>
Co-authored-by: Mark Russinovich <markruss@microsoft.com>
Co-authored-by: Alex Mihaiuc <69110671+foxmsft@users.noreply.github.com>
Co-authored-by: John Stephens <johnstep@microsoft.com>
Co-authored-by: Michael Clayton <mike@kingslandconsulting.co.uk>
Co-authored-by: Nathan Gill <nathan.j.gill@outlook.com>
Co-authored-by: Daniel Nilsson <daniel.nilsson1989@gmail.com>
Co-authored-by: JackStuart <jack@jstuart.io>
Co-authored-by: Christian Gaarden Gaardmark <cgaarden@hotmail.com>
Co-authored-by: YDKK <YDKK@users.noreply.github.com>
Co-authored-by: Dustin L. Howett <duhowett@microsoft.com>
2025-02-06 15:45:51 -06:00
Mike Griese
2f3efa3e46 Change the default hotkey to Win+alt+space (#405)
Title

This is just a much simpler keybind. It harkens the mind to `alt+space`, without actually stealing that keybinding. 

I recommend `ctrl+alt+space` for the dev version (though, I'm not setting that for you)
2025-02-06 05:39:57 -06:00
Mike Griese
96404f02b2 Pilfer TypedEventHandlerExtensions from WCT (#404)
I think this pilfers the `InvokeAsync` as mentioned in #333

WE can't use the actual version for the same reason we can't use that one TryEnqueue extension - the WCT MD Text block we're on uses a different version of the WCT than the latest version, so the two get confused. 

We can remove this pilfered copy after either #245 or #219

Closes #333
2025-02-06 05:39:38 -06:00
Mike Griese
da40c449bd Separate out the nuget, CmdPal, and PT versions (#406)
Fixes #345 

This adds a pair of variables to allow us to set the CmdPal version separately from the PT version.

Also fixes up some naming of the nuget package
2025-02-05 10:11:50 -06:00
Stefan Markovic
b9322373b6 Merge upstream PT #10 (#402)
* [Workspaces] implement the move feature (#35480)

* [Workspaces] Add move functionality

* spell checker

* [Workspaces] Modify Arranger to move apps without launch

* moved ipc helper

* removed callback

* use LauncherStatus in WindowArranger

* wait for launching next app

* launch in a separate thread and protect by mutexes

* update app version in advance

* changed canceling launch

* increased waiting time

* Fix optional parameter load from json

* changed arranger waiting time

* additional waiting time for Outlook

* added app id

* ensure ids before launch

* set id in editor

* minor updates

* [Workspaces] Move: Get the nearest window when moving a window

* [Workspaces] convert optional boolean to enum to avoid json problems

* Handle case when the new Application Property "moveIfExists" does not exist

* Re-implementing app-window pairing for moving feature.

* spell checker

* XAML formatting

* Fixing bug: IPC message not arriving

* spell checker

* Removing app-level-setting for move app. Also fixed compiler errors due styling.

* Updating editor window layout

* Re-implementing window positioning UI elements

* XAML formatting

* Code review findings

* Code cleanup

* Code cleanup

* Code cleanup

* code cleanup

* Code cleanup

* Code cleanup

* fix Move attribute after launch and snapshot

* Extend WindowArranger with PWA functionality to detect different PWA apps. PwaHelper moved to the common library

* fix repeat counter in the editor

* Code optimization

* code cleanup, optimization

* fix double-processing window

---------

Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: donlaci <donlaci@yahoo.com>

* [KeyboardManager]Fix mapping shift to numpad (#35890)

* Keyboard Manger fix numpad as shift

Fixed shift not being released if a numpad key as shift.

* Added comments

* Fix typo

* Fix the numpad unlocked key not working if the locked version is overridden by shift

* Fix spelling check.

* Revert the VK_CLEAR change.

---------

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* [Analyzers] Update .editorconfig with rules to relax IDE errors (#36095)

* [Analyzers] Remove duplicate pascal case style from .editorconfig

* [Analyzers] Configured severity for individual IDE and CA rules showing as errors in VS

Set severity for IDE0005, IDE0008, IDE0016, IDE0018, IDE0019, IDE0021, IDE0022, IDE0023, IDE0025, IDE0027, IDE0028, IDE0029, IDE0031, IDE0032, IDE0034, IDE0036, IDE0039, IDE0042, IDE0044, IDE0045, IDE0046, IDE0047, IDE0057, IDE0051, IDE0052, IDE0054, IDE0055, IDE0056, IDE0057, IDE0059, IDE0060, IDE0061, IDE0063, IDE0071, IDE0073, IDE0074, IDE0075, IDE0077, IDE0078, IDE0083, IDE0090, IDE0100, IDE0130, IDE160, IDE180, IDE0200, IDE0240, IDE0250, IDE0251, IDE0260, IDE0270, IDE0290, IDE0300, IDE0301, IDE0305, IDE1005, IDE1006, CA1859, CA2022, CA2263

* [Analyzers] Fix mismatched analyzer descriptions

* [Analyzers] Fix misspelling

* Update .editorconfig

Made the following style rules `silent` instead of `suggestion`: 
- Use explicit type instead of 'var'
- Use expression body for ...
- Use block-scoped namespace

* [Analyzers] Set IDE0290 to silent

* [Analyzers] Remove IDE1006 configuration from .editorconfig in favor of making exclusions for the few entries

* [Analyzers][Indexer] Add IDE1006 suppressions

* [Analyzers][Peek] Add IDE1006 suppression

* [Analyzers][MWB] Add IDE1006 suppression.

* [Analyzers][Plugins] Add IDE1006 suppression

* [Analyzers][ImageResizer] Suppress IDE0073 to retain original copyright

* [Analyzers] Remove IDE0073 severity change in .editorconfig

---------

Co-authored-by: Ani <115020168+drawbyperpetual@users.noreply.github.com>

* [Workspaces] PWA follow-up (#36217)

* [PTRun][Calculator]Allow scientific notation with lowercase 'e' (#36187)

* [Workspaces] Add encoder parameter to bitmap.save() (#36228)

* [Workspaces] Add encoder parameter to bitmap.save()

* 1 more call fixed

* Move repeated code to the csharp library

* [Workspaces] Implement store of app window's size and position (#36086)

* [Workspaces] Implement store of app window's size and position

* Modifying the default values to -1. The program will use the original default values for the first run.

* [ScreenRuler]Add setting to show the measurement in an extra unit (#35887)

* display ruler: supporting millimeter and other units

* Measurement Tool: UI Setting for an extra unit

* Update images

* spelling

* spelling

* suit code style

* Fix for code review

* remove weird file

* rename field

* [Deps]Update MSTest from 3.5.0 to 3.6.3 (#36115)

* Update MSTest from 3.5.0 to 3.6.3

* Use STA attributes that are now part of MSTest

* Adding Jerry to community.md (#36232)

Update COMMUNITY.md

* [Workspaces] Arranger: smart timer (#36096)

* [Workspaces] Add move functionality

* spell checker

* [Workspaces] Modify Arranger to move apps without launch

* moved ipc helper

* removed callback

* use LauncherStatus in WindowArranger

* wait for launching next app

* launch in a separate thread and protect by mutexes

* update app version in advance

* changed canceling launch

* increased waiting time

* Fix optional parameter load from json

* changed arranger waiting time

* additional waiting time for Outlook

* added app id

* ensure ids before launch

* set id in editor

* minor updates

* [Workspaces] Move: Get the nearest window when moving a window

* [Workspaces] convert optional boolean to enum to avoid json problems

* Handle case when the new Application Property "moveIfExists" does not exist

* Re-implementing app-window pairing for moving feature.

* spell checker

* XAML formatting

* Fixing bug: IPC message not arriving

* spell checker

* Removing app-level-setting for move app. Also fixed compiler errors due styling.

* Updating editor window layout

* Re-implementing window positioning UI elements

* XAML formatting

* Code review findings

* Code cleanup

* Code cleanup

* Code cleanup

* code cleanup

* Code cleanup

* Code cleanup

* [Workspaces] Arranger: Reset wait timer after each successful arrange action

* fix merge error

---------

Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: donlaci <donlaci@yahoo.com>

* Upgrade to check-spelling v0.0.24 (#36235)

This upgrades to [v0.0.24](https://github.com/check-spelling/check-spelling/releases/tag/v0.0.24).

A number of GitHub APIs are being turned off shortly, so you need to upgrade or various uncertain outcomes will occur.

There's a new accessibility forbidden pattern:

> Do not use `(click) here` links
> For more information, see:
> * https://www.w3.org/QA/Tips/noClickHere
> * https://webaim.org/techniques/hypertext/link_text
> * https://granicus.com/blog/why-click-here-links-are-bad/
> * https://heyoka.medium.com/dont-use-click-here-f32f445d1021
```pl
(?i)(?:>|\[)(?:(?:click |)here|link|(?:read |)more)(?:</|\]\()
```

There are some minor bugs that I'm aware of and which I've fixed since this release, but I don't expect to make another release this month.

I've added a pair of patterns for includes and pragmas. My argument is that the **compiler** will _generally_ tell you if you've misspelled an include and the **linker** will _generally_ tell you if you misspell a lib.

- There's a caveat here: If your include case-insensitively matches the referenced file (but doesn't properly match it), then unless you either use a case-sensitive file system (as opposed to case-preserving) or beg clang to warn, you won't notice when you make this specific mistake -- this matters in that a couple of Windows headers (e.g. Unknwn.h) have particular case and repositories don't tend to consistently/properly write them.

* Adjust to community.md, shifting jerry's github user name (#36242)

Update COMMUNITY.md

* [AOT compatible] Resolve AOT Build Error in Peek.UI (#36194)

* add partial for aot support

* add Microsoft.NET.ILLink.Tasks to packages.props

* format

* Revert "format"

This reverts commit 742d5e2214.

* add Microsoft.NET.ILLink.Tasks to notice.md

* add auto reference

* update script to remove the 'Auto-reference line'

---------

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Awake Updates - `TILLSON_11272024` (#36049)

* Update with bug fixes for tray icon and support for parent process

* Process information enum

* Update the docs

* Fix spelling

* Make sure that PID is used in PT config flow

* Logic for checks based on #34148

* Update with link to PR

* Fixes #34717

* Small cleanup

* Proper task segmentation in a function

* Cleanup the code

* Fix synchronization context issue

* Update planning doc

* Test disabling caching to see if that manages to pass CI

* Cleanup to make sure that we're logging things properly.

* Update ci.yml

* Disable cache to pass CI

* Retry logic

* Cleanup

* Code cleanup

* Fixes #35848

* Update notes and codename

* After third attempt, log error instead of throwing exception

* More cleanup to avoid double execution

* Add expected word

* Safeguards for bad values for timed keep-awake

* More updates to make sure I am using uint

* Update error message

* Update packages

* Fix notice and revert CsWinRT upgrade

* Codename update

* Update expect.txt

* Update the struct

* Ensuring we're properly awaiting tray initialization

* Update to make sure tray reflects the bound process

* Cleanup, proper JSON serialization for logs.

* Not needed.

* Add command validation logic

* Moving the initialization logic earlier

* Make sure we show the display state in the tooltip

* Update tray string

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update logic for icon resets

* Update doc

* Simplify function for setting mode shell icon

* Issues should be properly linked

* Minor cleanup

* Update timed behavior

---------

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>

* [Workspaces] detecting right app version (#36100)

* [Workspaces] Add move functionality

* spell checker

* [Workspaces] Modify Arranger to move apps without launch

* moved ipc helper

* removed callback

* use LauncherStatus in WindowArranger

* wait for launching next app

* launch in a separate thread and protect by mutexes

* update app version in advance

* changed canceling launch

* increased waiting time

* Fix optional parameter load from json

* changed arranger waiting time

* additional waiting time for Outlook

* added app id

* ensure ids before launch

* set id in editor

* minor updates

* [Workspaces] Move: Get the nearest window when moving a window

* [Workspaces] convert optional boolean to enum to avoid json problems

* Handle case when the new Application Property "moveIfExists" does not exist

* Re-implementing app-window pairing for moving feature.

* spell checker

* XAML formatting

* Fixing bug: IPC message not arriving

* spell checker

* Removing app-level-setting for move app. Also fixed compiler errors due styling.

* Updating editor window layout

* Re-implementing window positioning UI elements

* XAML formatting

* Code review findings

* Code cleanup

* Code cleanup

* Code cleanup

* code cleanup

* Code cleanup

* Code cleanup

* [Workspaces] fix detection of specific version of apps

---------

Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: donlaci <donlaci@yahoo.com>

* Move the XamlStyler config to src/ (#36202)

my never ending goal to minimize files in the root dir

* [AdvancedPaste]Add Semantic Kernel opt-in to allow chaining of paste actions (#35902)

* [AdvancedPaste] Semantic Kernel support

* Changed log-line with potentially sensitive info

* Spellcheck issues

* Various improvements for Semantic Kernel

* Spellcheck issue

* Refactored Clipboard routines

* Added integration tests for KernelService

* Extra telemetry for AdvancedPaste

* Added 'Hotkey' suffix to AdvancedPaste_Settings telemetry event

* Added IsSavedQuery

* Added KernelQueryCache

* Refactoring

* Added KernelQueryCache to BugReportTool delete list

* Added opt-n for Semantic Kernel

* Fixed bug with KernelQueryCache

* Ability to view last AI chat message on error

* Improved kernel query cache

* Used System.IO.Abstractions and improved tests

* Fixed under-count of token usage

* Used Semantic Kernel icon

* Cleanup

* Add missing EndProject line

* Fix dependency version conflicts

* Fix NOTICE.md

* Correct place of SemanticKernel in NOTICE.md

* Unlinked CustomPreview toggle from AI

* Added Microsoft.Bcl.AsyncInterfaces dependency to AdvancedPaste

* Fixed NOTICE.md order

* Moved Custom Preview to behaviour section

* Made Image to Text raise error on empty output

* Added AIServiceBatchIntegrationTests

* Updated AIServiceBatchIntegrationTests

* Added prompt moderation

* Moved GPO Infobar to better location

* [Launcher]Port from WPF-UI to .NET 9 WPF (#36215)

* Initial implementation

* Fix fluent style

* Fix no endline

* Update expect.txt

* Fix formatting

* Fix light theme looking bad on Windows 10

* fix formatting

* test change

* Now really fixed W10

* Add a comment

* Fix typos

* Fix spellcheck errors

* Fix spellcheck pattern for websites

* Change patterns for spellcheck in the right file

* Fix XAML styling

* Fix contrast colors on W11

* Fix formatting

* Removed emty line

* Fix formatting

* Added comment to fluentHC file

* fix comment

* Fix Windows10 again.
Adress feedback.

* W11 fix chaning from high contrast to normal not having correct background

* W10 Fix high contrast not working after switching from light/dark moed

* Address feedback

* Fix formatting

* Second W11 fix chaning from high contrast to normal not having correct background

* [UX]Updating New+ and Settings icons (#36290)

* Updated icons

* Updating more icons and icos

* [Settings][Dashboard] Accessibility fixes (#36280)

* make narrator announce buttons/toggles

* add toggles module name

* [ci]Sign OpenAI dll that's not signed (#36299)

* Update CODEOWNERS to include gordon, jerry and kayla (#36308)

* Update CODEOWNERS

* Update names.txt

* Making the powertoys-code-owners team code owners (#36310)

* Update CODEOWNERS

* Update names.txt

* Update CODEOWNERS

* [FZEditor]Fix Create new layout dialog radio buttons IsChecked values  (#36320)

* 0.87 changelog (#36335)

* 0.87 changelog

* Fix spellcheck

* Update README.md

Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

---------

Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

* [PTRun]Fix WPF transparent border issue on Windows 10 (#36392)

* Added border on W10

* Added a comment

---------
Co-authored-by: Davide Giacometti <25966642+davidegiacometti@users.noreply.github.com>

* [PTRun]Fix .NET 9 crash in OneNote (#36417)

* Fix crash in OneNote Run

* added better comment

* [AdvancedPaste]Fix NullReferenceException on Dispose (#36428)

[AdvancedPaste] Fixed NullReferenceException on Dispose

* [Fuzz] Add fuzz testing for AdvancedPaste and new pipeline for onboarding OneFuzz (#36329)

* add fuzz

* install .net8

* add spelling check

* refine the pipeline

* add readme and update the test code

* fix spelling error

* change to weekly run

* Add New CI Pipeline for Latest WindowsAppSDK (#36282)

This PR introduces the following changes to the CI pipeline and version management:

Pipeline Enhancements:
1. Added a new script UpdateVersions.ps1 to automate the update of Microsoft.WindowsAppSDK versions across various project files.
2. Introduced a new pipeline configuration ci-using-the-latest-winappsdk.yml to build using the latest Microsoft.WindowsAppSDK.
3. Updated existing pipeline configurations to support the new useLatestWinAppSDK parameter.

Pipeline Configuration Updates:
1. Updated job-build-project.yml to handle the useLatestWinAppSDK parameter and adjust the RestoreAdditionalProjectSourcesArg accordingly.
2. Added a new template steps-update-winappsdk-and-restore-nuget.yml for updating and restoring NuGet packages with the latest Microsoft.WindowsAppSDK.
3. Added WinAPPSDK version selection, the pipeline can be manually triggered to use the specified version.

---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>

* [AOT compatible] Make HostsUILib become AOT compatible (#36136)

* Remove AOT configuration

* Refer to AOT compatibility props

---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>

* [AOT compatible] Clean up some AOT build issue in FilePreviewCommon and MarkdownPreviewHandler (#36207)

* Use AppContext.BaseDirectory to replace assembly.GetExeAseembly.Location.
Fix json serilizer aot issue.

* clean up some AOT build issue

* Update src/modules/previewpane/MarkdownPreviewHandler/MarkdownPreviewHandlerControl.cs

Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

* Update src/common/FilePreviewCommon/Formatters/JsonFormatter.cs

Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>
Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

* Add new pipeline using the latest webview2 from Edge Canary (#36317)

* using the latest webview2 for testing


---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>

* [Bug fix] Making the OpenAI key configuration page scrollable. (#36359)

* Fixed #34470

---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>

* [Bug fix] Add a format validation step before format conversion. (#36404)

This PR aims to fix the bug #35225 by introducing a new method IsJson to determine if a given text is in JSON format.
The IsJson method is then utilized in the ToJsonFromXmlOrCsvAsync method to optimize the processing logic.
If the text is already in JSON format, it is returned directly without further conversion from XML or CSV.

Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>
Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

* Add more STCA team members (#36438)

* Add more STCA team members

* Include more spelling check errors

* Remove non-alpha in dictionary

* Add Zhaopeng Wang

* Fix spell checking error

* Remove "prerelease: true" (#36484)

* Remove "prerelease: true"

The Microsoft.WinGet.DSC module is GA so prerelease: true is no longer needed.

* Update expect.txt

fixing spellcheck warning

---------

Co-authored-by: Clint Rutkas <clint@rutkas.com>

* [Docs]Update README for 0.87.1 release (#36534)

* [CI] Enhance build Pipeline Reliability with Retry Logic and Improved Error Messaging (#36529)

* update pipeline with retry

* remove tests

* Add team member (#36590)

* [New+]Don't override New actions from Explorer on Windows 10 (#36467)

* [New+]Don't override New actions from Explorer

* Update src/modules/NewPlus/NewShellExtensionContextMenu.win10/shell_context_menu_win10.cpp

* Update src/modules/NewPlus/NewShellExtensionContextMenu.win10/shell_context_menu_win10.cpp

* Add pattern for learn.microsoft links

* Also only Query for context menu

* [PTRun][Calculator]Handle hexadecimal numbers to not return divide by 0 error (#36390)

* add '0x' handling for divide by 0 scenarios

* fix comment on division by 0 check

---------

Co-authored-by: Connor Plante <connor.plante@gmail.com>

* [TextExtractor]Minor UI/Accessibility fixes in the overlay UI (#36356)

minor UI and accessibility fixes

* [PTRun][Calculator]Update mages to v3.0.0 and support for `randi(n)` (#36560)

* update to mages 3.0.0

* allow randi() in calculator plugin

* fix tests and input validation

* fix spell check

* [QuickAccent]Added ć for Slovenian (#36336) (#36338)

* Fix snapping Workspaces Editor to Fancy Zones (#36463)

* Remove Workspaces Editor from Fancy Zone's excluded app list

* removed unused string

---------

Co-authored-by: Seraphima <zykovas91@gmail.com>

* [PTRun]Fix drag on .NET 9 WPF (#36635)

* [CQ]Continued to move stuff out of root - Solution.props (#36244)

* [QuickAccent]Add Proto-Indo-European (#36408)

* Add ḱ to PowerAccent for Proto-Indo-European

* Fix Spelling Check

* Add more letters to PIE

* Order PIE after PI

---------

Co-authored-by: Hao Liu (from Dev Box) <haoliu3@microsoft.com>
Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* [PTRun]Add context buttons for VSCodeWorkspaces plugin (#36517)

* [Settings][QuickAccent]Change 'character set' to plural form (#36565)

* [PTRun][Calculator]Fix unit tests on non-english systems (#36569)

* fix tests

* update comment

* [PTRun][Calc]Improve handling of non-base 10 numbers (#36700)

* [Settings][PTRun]Show plugin version and website (#36580)

* [Monaco]Add support for .resx and .resw preview support. (#36499)

Added support for .resx and .resw preview support. These files are XML based files so I added the file extensions as part of the registerAdditionalLanguage("xmlExt"...) function.

* [Settings] Add Workspaces' workspaces.json file to backup/restore list (#36714)

* [Localization] Fix loc pipeline to send downloaded localized files to TDBuild upon retry after failure (#36766)

* [AdvancedPaste]Fixed issues with Screen Reader integration (#36778)

* Remove Advent calendar from README (#36777)

* Remove Advent calendar from README

* Update hero image

* Delete doc/images/overview/PT_holiday_hero_image.png

* [AdvancedPaste]Add all BitmapDecoder supported image filetypes to ImageToText (#35600)

Adds support to ImageToText for all image filetypes supported by BitmapDecoder.

* [AOT]Clean up some AOT build issues in PowerAccent.Core (#36264)

* init

* Use AotCompatibility instead

* Replace typeof(Lanaguge) with GetValues<Language>

* Create new folder to place source generation context file.

---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>

* [WinUI3]Fix Windows 10 title bar borders (#36429)

* Fix borders for windows in the Settings UI

* Fix HOSTS window

* Fix Advanced Paste

* Fix Environment Variables

* Fix File Locksmith

* Fix Peek, with a caveat

* Fix Registry Preview

* Remove unused imports

* Clean up imports in OobeShellPage

* Move OSVersionHelper from Common.UI up into ManagedCommon

* [QuickAccent]Fix unstable language loading (#36721)

* [Peek]Bring into foreground if previously minimized (#36506)

Added Activate() to bring Peek.UI window into focus upon Toggle. This allows the UI to be presented even if it was previously minimized.

* Update Run docs README (#36857)

* Update Run docs README

* Remove System dupe

* [Monaco]Make minimap toggleable (#33742)

* [Monaco]Fix Json format preview setting (#36867)

* [KBM]Added option for exact match shortcut (#36000)

* Added option for exact match shortcut

* Fix spell-check

* [Deps][Security]Update .NET Packages from 9.0.0 to 9.0.1  (#36879)

* [Deps] Update NuGet packages to version 9.0.1

Updated several NuGet packages from version 9.0.0 to 9.0.1, including:
- Microsoft.Data.Sqlite
- Microsoft.Bcl.AsyncInterfaces
- Microsoft.Extensions.DependencyInjection
- Microsoft.Extensions.Logging
- Microsoft.Extensions.Logging.Abstractions
- Microsoft.Extensions.Hosting
- Microsoft.Extensions.Hosting.WindowsServices
- Microsoft.Win32.SystemEvents
- Microsoft.Windows.Compatibility
- System.CodeDom
- System.ComponentModel.Composition
- System.Configuration.ConfigurationManager
- System.Data.OleDb
- System.Diagnostics.EventLog
- System.Diagnostics.PerformanceCounter
- System.Drawing.Common
- System.Management
- System.Runtime.Caching
- System.ServiceProcess.ServiceController
- System.Text.Encoding.CodePages
- System.Text.Json

* [Deps] Update NOTICE.md

* [Peek]Fix using the correct Monaco assets at runtime (#36890)

* [Workspaces] fixing bug: editor starts outside of visible desktop area (#36769)

* [Workspaces] fixing bug: editor starts outside of visible desktop area

* Update src/modules/Workspaces/WorkspacesEditor/MainWindow.xaml.cs

Co-authored-by: Seraphima Zykova <zykovas91@gmail.com>

---------

Co-authored-by: Seraphima Zykova <zykovas91@gmail.com>

* [Workspaces] Saving app properties on launch and recapture (#36751)

* [Workspaces] Implementing set and get GUID to/from HWND to distinguish windows moved by the Workspaces tool

* After launch and capture copy the CLI args from the "original" project

* Fix getting GUID

* spell check

* modification to be able to handle different data sizes on different systems

* code optimisation

* Replacing string parameter by InvokePoint

* renaming variable

* [AdvancedPaste]Use background thread for interactions between runner and Advanced Paste (#36858)

* [Advanced Paste] Use background thread for runner-Advanced Paste interaction

* Fixed typo

* [VCM]Deprecate the Video Conference Mute utility (#36772)

* Remove all VideoConferenceMute related code and files

* Clean up vcm driver registry keys

* Also remove the Webcam report tool

* Also clean out video conference on the installer

* Fix spellcheck

* Remove comment about video conf

* Update gpo files revision

* Revert removing the VCM policies

* Deprecate VCM GPO policy

* Change deprecation message to show first supported version

* Tweak supported strings in the adml

* Goodbye friends, you are forever part of the team (#36905)

* Goodbye friends

Forever part of the team 😢

* Update COMMUNITY.md

* Fix formatting issues in COMMUNITY.md

* [New utility]Sysinternals ZoomIt (#35880)

* ZoomIt initial code dump

* Change vcxproj to normalize dependency versions

* Fix code quality to build

* Add to PowerToys solution

* Clean out C-style casts

* Fix some more analyzer errors

* Constexpr a function

* Disable some warnings locally that it seemed better not to touch

* Add ZoomIt module interface

* Add GPO

* Add Settings page with Enable button

* Output as PowerToys.ZoomIt.exe

* Extract ZoomIt Settings definition to its own header

* Make ZoomItModuleInterface build with ZoomItSettings too

* WinRT C++ interop for ZoomItSettings

* From Registry To PowerToys Json

* Properly fix const_cast analyzer error

* Initial Settings page loading from registry

* Zoom mode settings

* Save settings

* Add file picker and DemoType file support

* Remaining DemoType settings

* Have ZoomIt properly reloading Settings and exiting

* Remove context menu entries for Options and Exit

* ZoomIt simple Break Options

* Break advanced options

* Simple Record settings

* Record Microphone setting

* Fix break background file picker title

* Font setting

* Fix build issues after merge

* Add ZoomIt conflict warning to Settings

* Exclude Eula from spell checking

* Fix spellcheck errors

* Fix spell check for accelerated menu items

* Remove cursor files from spellcheck. They're binary

* Fix forbidden patterns

* Fix XAML style

* Fix C# analyzers

* Fix signing

* Also sign module interface dll

* Use actual ZoomIt icon

* Add OOBE page for ZoomIt

* ZoomIt image for Settings

* Flyout and Dashboard entries

* Fix type speed slider labels

* Correctly load default Font

* Correctly register shortcuts on ZoomIt startup first run

* Fix modifier keys not changing until restart

* Show MsgBox on taken shortcut

* Start PowerToys Settings

* Normalize ZoomIt file properties with rest of PowerToys

* Add attribution

* Add ZoomIt team to Community.md

* More copyright adjustments

* Fix spellcheck

* Fix MsgBox simultaneous instance to the front

* Add mention of capturevideosample code use

* Add ZoomIt to process lists

* Add telemetry

* Add logging

* React to gpo

* Normalize code to space identation

* Fix installer build

* Localize percent setting

* Fix XAML styling

* Update src/settings-ui/Settings.UI/Strings/en-us/Resources.resw

Co-authored-by: Stefan Markovic <57057282+stefansjfw@users.noreply.github.com>

* Fix spellcheck

* One more spellcheck fix

* Integrate LiveDraw feature changes from upstream

* Fix name reuse in same scope

* Fix c-style casts

* Also register LIVEDRAW_HOTKEY

* Fix newLiveZoomToggleKey

* Update LiveZoom description in Settings to take LiveDraw into account

* Fix spellcheck

* Fix more spellcheck

* Fix Sysinternals capitalization

* Fix ARM64 Debug build

* Support Sysinternals build (#36873)

* Remove unneeded files

* Make build compatible with Sysinternals

* Separate PowerToys ZoomIt product name (#36887)

* Separate PowerToys ZoomIt product name

To help maintain the Sysinternals branding in the standalone version.

* Clarify branding-related includes

* Remove ZoomIt.sln

* Add foxmsft to spell-check names

* Add ZoomIt to README

* Add ZoomIt to GH templates

* Add ZoomIt events to DATA_AND_PRIVACY.md

* Remove publish_config.json

* Remove publish_config.json from vcxproj too

---------

Co-authored-by: Mark Russinovich <markruss@microsoft.com>
Co-authored-by: Alex Mihaiuc <69110671+foxmsft@users.noreply.github.com>
Co-authored-by: John Stephens <johnstep@microsoft.com>
Co-authored-by: Stefan Markovic <57057282+stefansjfw@users.noreply.github.com>

* [PTRun]Add hotkey to the show telemetry event (#36869)

* [PTRun]Update the code for .NET 9.0.1 - remove workarounds (#36909)

* Revove some unneeded changes after pdating to .net9.1

* [RegistryPreview]Copy context menu, data tooltip, MULTI_SZ fix (#36631)

* add context menus

* string resources for contextmenu

* fix line break parsing for MULTI_SZ

* better presentation of multiline values and value tooltip

* cleanup

* [MWB] - refactoring "Common" classes - Common.Log.cs, Common.Receiver.cs (#35726)

* [PTRun]Add setting for different trigonometric units in Calculator (#36717)

* Added angle units to PowerToys Run Calculator plugin.

* Update Resources.resx

* Added GitHub SpellCheck rule for 'gradians'.

---------

Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

* [ci]Remove steps to build abstracted utilities packages (#36934)

* [Settings]Update GPO infobar icon, improve some pages and fix bugs (#33703)

* changes part 1

* fix xaml code

* changes part 2

* fix cmdNotFound page

* Update PowerOcrPage

* More Pages changed

* More Pages changed

* revert temporary change

* fix spelling

* add resw comment

* add resw comment

* Update MouseWihtoutBorderPage.xaml

* PowerPreview page

* workspaces page

* fix awake page gpo handling

* NewPlus page

* update new+ page!

* AdvancedPaste.xaml: Move Info bar.

* Update MouseJumpPanel.xaml

* Update GeneralPage.xaml

* fix position of info bar and some ui quirks

* fix xaml style

* fix string resources

* string changes

* prepare megre main

* update new+ page

* zoomit page

* various fixes

* [Common]NotificationUtil helper class with FileWatcher (#36720)

* add NotificationUtil helper with file watcher and cache

* fix spellcheck

* indentation

* [PTRun][Docs]Add YubicoOauthOTP to Third-Party plugins (#36761)

* [PTRun]Fixed typo in Value Generator messages (#36951)

* [AOT] Clean up some AOT issues in Advanced Paste module (#36297)

* Clean up the aot build issue.

* Merge main and clean up new AOT build issue

* Update LogEvent define.

* Update src/modules/AdvancedPaste/AdvancedPaste/Helpers/LogEvent.cs

Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

* update typo bug

* Remove unused allow list item

* Create a new folder to place source generation context

* Merge main and rename LogEvent to AIServiceFormatEvent

---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>
Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

* [ZoomIt]React to gpo setting when run as standalone (#36975)

* [Settings]ImageResizer settings accessibility updates, fixes and refactor (#36903)

* Fix issue with missing Image Resizer unit and fit information in settings description.

* Fix accessibility issues on Edit and Remove buttons. Fix various issues and refactor view model and ImageSize. New resources for accessibility text formats.

* Fix unit test because of change to new preset width and height. Fix 2 unit tests having incorrect expected/actual orderings.

* Post-review update: accessibility strings now formatted within the converter, instead of via format strings; simplified encoder GUID collection declaration and retrieval.

* Minor example text fix.

* [Settings]Update "Back up" mentions when it should be used as a verb (#36965)

* Update Back up name

* Rename Backup to Back up

* [New+]Update last modified date to now for all templates created (#36133)

* Update last modified date to now for all templates created

* Now also set last update for directories. Thank you htcfreek!

* [ImageResizer][ci]Fix XAML style errors (#37009)

* [Settings] Add "new" labels to navigation for new utilities (#36939)

* initial implementation

* move new label to zoomit

* cleanup

* more cleanup

* fix XAML formatting

* update padding to 4px

* add badge to dashboard item

* fix XAML formatting

* Tweaking UX

---------

Co-authored-by: Niels Laute <niels.laute@live.nl>
Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* [MWB]Fix helper process termination issue in service mode (#36892)

* [MWB] Changed to suppress the flow of the execution context

* Fix build after merge

* [MWB] Fix helper process termination issue in service mode

* Add some comments

* [runner]Fix crashes caused by wrong setting AllowDataDiagnostics registry value (#37015)

* Fix setting registry value

* Prevent future similar crashes

* [PTRun][Calculator]Error check when loading trigonometry mode (#37033)

* [ZoomIt]Fix transparent draw after changing another setting (#37042)

* [Settings]Fix ZoomIt page changing current directory (#37052)

* [ci]Remove vc tools version workaround (#37098)

* 0.88 changelog (#37056)

* 0.88 changelog

* Update README.md

Co-authored-by: Clint Rutkas <clint@rutkas.com>

* Add installer hashes

* Fix aka.ms link for ZoomIt

* Add mention to the PTRun plugin's dll file version

* Update README.md

Co-authored-by: Kayla Cinnamon <cinnamon@microsoft.com>

---------

Co-authored-by: Clint Rutkas <clint@rutkas.com>
Co-authored-by: Kayla Cinnamon <cinnamon@microsoft.com>

* Update README.md - update What's Planned to 0.89 (#37157)

Update README.md

Just a tiny update, as reference to 0.88 was missed.

* [ci]Proper workaround for the vc tools version check (#37130)

* Revert "[ci]Remove vc tools version workaround (#37098)"

This reverts commit 2c069ce708.

* Adopt the same workaround as in Terminal

* Fix AOT introduced error

* [check-spelling] Update metadata

Update for https://github.com/zadjii-msft/PowerToys/actions/runs/13139253022/attempts/1
Accepted in https://github.com/zadjii-msft/PowerToys/pull/402#issuecomment-2634374795

Signed-off-by: check-spelling-bot <check-spelling-bot@users.noreply.github.com>
on-behalf-of: @check-spelling <check-spelling-bot@check-spelling.dev>

* more

* Skip cmdpal in deps json check

* notice.md

---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>
Signed-off-by: check-spelling-bot <check-spelling-bot@users.noreply.github.com>
Co-authored-by: Laszlo Nemeth <57342539+donlaci@users.noreply.github.com>
Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: donlaci <donlaci@yahoo.com>
Co-authored-by: Ionuț Manța <ionut@janeasystems.com>
Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>
Co-authored-by: Ani <115020168+drawbyperpetual@users.noreply.github.com>
Co-authored-by: PesBandi <127593627+PesBandi@users.noreply.github.com>
Co-authored-by: Wenjian Chern <55335597+Sophanatprime@users.noreply.github.com>
Co-authored-by: Youssef Victor <youssefvictor00@gmail.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>
Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Co-authored-by: leileizhang <leilzh@microsoft.com>
Co-authored-by: Den Delimarsky 🔐 <sign@den.dev>
Co-authored-by: Niels Laute <niels.laute@live.nl>
Co-authored-by: Davide Giacometti <25966642+davidegiacometti@users.noreply.github.com>
Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>
Co-authored-by: Shuai Yuan <128874481+shuaiyuanxx@users.noreply.github.com>
Co-authored-by: moooyo <42196638+moooyo@users.noreply.github.com>
Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>
Co-authored-by: Jerry Xu <n.xu@outlook.com>
Co-authored-by: Demitrius Nelon <denelon@microsoft.com>
Co-authored-by: Kai Tao <69313318+vanzue@users.noreply.github.com>
Co-authored-by: Connor Plante <150482134+plante-msft@users.noreply.github.com>
Co-authored-by: Connor Plante <connor.plante@gmail.com>
Co-authored-by: Domen Soklič <soklicd@gmail.com>
Co-authored-by: Hao Liu <liuhaobupt@163.com>
Co-authored-by: Hao Liu (from Dev Box) <haoliu3@microsoft.com>
Co-authored-by: immi <iafullprogrammer@gmail.com>
Co-authored-by: Asif Islam <77113884+asif4318@users.noreply.github.com>
Co-authored-by: Kayla Cinnamon <cinnamon@microsoft.com>
Co-authored-by: Dave Rayment <dave.rayment@gmail.com>
Co-authored-by: Neil McAlister <pingzing@users.noreply.github.com>
Co-authored-by: Mark Russinovich <markruss@microsoft.com>
Co-authored-by: Alex Mihaiuc <69110671+foxmsft@users.noreply.github.com>
Co-authored-by: John Stephens <johnstep@microsoft.com>
Co-authored-by: Michael Clayton <mike@kingslandconsulting.co.uk>
Co-authored-by: Nathan Gill <nathan.j.gill@outlook.com>
Co-authored-by: Daniel Nilsson <daniel.nilsson1989@gmail.com>
Co-authored-by: JackStuart <jack@jstuart.io>
Co-authored-by: Christian Gaarden Gaardmark <cgaarden@hotmail.com>
Co-authored-by: YDKK <YDKK@users.noreply.github.com>
Co-authored-by: Stefan Markovic <stefansjfw@users.noreply.github.com>
2025-02-05 17:03:12 +01:00
Mike Griese
6856f4ef3e Change namespace to Microsoft.CommandPalette.Extensions (#403)
* The package ID changed! Now we're `Microsoft.CommandPalette`. The old app will need to be uninstalled seperately. 
* interfaces moved from `Microsoft.CmdPal.Extensions` ->  `Microsoft.CommandPalette.Extensions` 
* The C# reference implementation? `Microsoft.CmdPal.Extensions.Helpers` ->  `Microsoft.CommandPalette.Extensions.Toolkit` 
* I also replaced the `IconData`, `IconInfo`, `PropChangedEventArgs`, `ItemsChangedEventArgs` `runtimeclass`es with just `interface`s. That's gonna be mildly breaking for existing code migrating. 
* I lastly changed the `<AppExtension>` tag in the Package.appxmanifest to `com.microsoft.commandpalette` (from `com.microsoft.windows.commandpalette`)
2025-02-05 06:50:54 -06:00
Mike Griese
ce40df9665 Remove any straggling references to "Action"s (#401)
An earlier draft of the CmdPal codebase called the fundamental unit of doing an `Action`. We've moved away from that for a long time now. 

This just fixes all the cases I could still find. 

Closes #350
2025-02-04 08:40:38 -06:00
Mike Griese
06aeb227a1 Remove the prototype (#400)
Goodnight sweet prince
2025-02-04 06:02:37 -06:00
Mike Griese
c9c45691a7 Attempt to correlate apps to winget packages (#387)
This is a first best effort at #367. 

If an app is installed, we'll try to lookup if there's one and only app with that name in our big list of apps. If there is, then we'll set the command on the winget list to the "run" command. 

The uninstall command moves into the context menu, always. Even if we don't find it. This will make it harder to accidentally uninstall things. 

This also has another drive-by fix for #357. Problem wasn't just being on the UI thread, it's that we were trying to get the `.Kind` out of the activation args, after the spawning process had already died.
2025-02-04 05:44:39 -06:00
Mike Griese
4b67711b70 Add AOT support for the SDK and extensions (#394)
Big thanks to Mano for getting this prototyped with me

This enables the SDK helpers and extensions to be compiled as AOT code. Gotta go fast guys. 

Big changes were:
* Adding `partial` to all the helper classes that implemented WinRT interfaces
* Redoing a lot of JSON serialization to be AOT compatible
* re-working the COM calls in ExtensionServer and ExtensionInstanceManager to be AOT ready


Related to #197
2025-02-03 16:52:31 -06:00
Mike Griese
edb61457f4 BREAKING: Add ContentPages and Invoke(sender) (#395)
## BREAKING API CHANGES APPROACHING

Closes #307 
Closes #238 
Removes `Command` from `ITag`
Adds `IDetailsCommand` (to achieve the same goal as the above originally had)
Adds `ITreeContent`, based on a hunch
Adds `ShowToast` and `Confirm` to `CommandResult` too, but without UX yet

Extensions from before this change will need to be updated. 
* The `InvokableCommand` change should be trivial - the helpers should abstract that delta away for you.
* The `ContentPage` change should be pretty easy to make. 
  * Both `MarkdownPage` and `FormPage` are now just `ContentPage`
  * `FormPage.Forms()` -> `ContentPage.GetContent()`
  * `MarkdownPage.Bodies()` -> `ContentPage.GetContent()`
  * `IForm`s become `IFormContent`. Methods become properties (not that bad)
* I'm only deprecating the old Markdown and Form pages - I'll fully remove them before we OSS, but I'll give everyone a couple weeks to port them.
* No one was using `Tag.Command` and it always seemed iffy at best - better not.
2025-02-03 16:30:46 -06:00
Mike Griese
1a623ce136 get rid of dependency on Wox (#383)
Closes #363

The WebSearch plugin pulled in all of Wox.Infrastructure, which resulted in us pulling in _all of WPF_ as a dependency, which we obviously don't need.
2025-02-03 13:39:42 -06:00
Niels Laute
e8bab4f5b2 Various UX tweaks (#393)
This PR introduces a couple of design tweaks:

- Details pane padding and fontsizes/colors
- Extension icons using Segoe Fluent Icons are not the same color as the text, helping with eye scanning
- Updating the WinGet icon so it's now the same size as other extensions
- The extension icon is now shown in the searchbox to help improve context switching
2025-02-03 13:39:13 -06:00
Stefan Markovic
d86d318a9a Fix icon path (#382) 2025-01-29 12:43:44 -06:00
Stefan Markovic
41dc94aa06 Fix bad merge (#381) 2025-01-29 17:57:50 +01:00
Stefan Markovic
b7aba2661a Merge PT upstream #9 (#379)
* [Workspaces] implement the move feature (#35480)

* [Workspaces] Add move functionality

* spell checker

* [Workspaces] Modify Arranger to move apps without launch

* moved ipc helper

* removed callback

* use LauncherStatus in WindowArranger

* wait for launching next app

* launch in a separate thread and protect by mutexes

* update app version in advance

* changed canceling launch

* increased waiting time

* Fix optional parameter load from json

* changed arranger waiting time

* additional waiting time for Outlook

* added app id

* ensure ids before launch

* set id in editor

* minor updates

* [Workspaces] Move: Get the nearest window when moving a window

* [Workspaces] convert optional boolean to enum to avoid json problems

* Handle case when the new Application Property "moveIfExists" does not exist

* Re-implementing app-window pairing for moving feature.

* spell checker

* XAML formatting

* Fixing bug: IPC message not arriving

* spell checker

* Removing app-level-setting for move app. Also fixed compiler errors due styling.

* Updating editor window layout

* Re-implementing window positioning UI elements

* XAML formatting

* Code review findings

* Code cleanup

* Code cleanup

* Code cleanup

* code cleanup

* Code cleanup

* Code cleanup

* fix Move attribute after launch and snapshot

* Extend WindowArranger with PWA functionality to detect different PWA apps. PwaHelper moved to the common library

* fix repeat counter in the editor

* Code optimization

* code cleanup, optimization

* fix double-processing window

---------

Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: donlaci <donlaci@yahoo.com>

* [KeyboardManager]Fix mapping shift to numpad (#35890)

* Keyboard Manger fix numpad as shift

Fixed shift not being released if a numpad key as shift.

* Added comments

* Fix typo

* Fix the numpad unlocked key not working if the locked version is overridden by shift

* Fix spelling check.

* Revert the VK_CLEAR change.

---------

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* [Analyzers] Update .editorconfig with rules to relax IDE errors (#36095)

* [Analyzers] Remove duplicate pascal case style from .editorconfig

* [Analyzers] Configured severity for individual IDE and CA rules showing as errors in VS

Set severity for IDE0005, IDE0008, IDE0016, IDE0018, IDE0019, IDE0021, IDE0022, IDE0023, IDE0025, IDE0027, IDE0028, IDE0029, IDE0031, IDE0032, IDE0034, IDE0036, IDE0039, IDE0042, IDE0044, IDE0045, IDE0046, IDE0047, IDE0057, IDE0051, IDE0052, IDE0054, IDE0055, IDE0056, IDE0057, IDE0059, IDE0060, IDE0061, IDE0063, IDE0071, IDE0073, IDE0074, IDE0075, IDE0077, IDE0078, IDE0083, IDE0090, IDE0100, IDE0130, IDE160, IDE180, IDE0200, IDE0240, IDE0250, IDE0251, IDE0260, IDE0270, IDE0290, IDE0300, IDE0301, IDE0305, IDE1005, IDE1006, CA1859, CA2022, CA2263

* [Analyzers] Fix mismatched analyzer descriptions

* [Analyzers] Fix misspelling

* Update .editorconfig

Made the following style rules `silent` instead of `suggestion`: 
- Use explicit type instead of 'var'
- Use expression body for ...
- Use block-scoped namespace

* [Analyzers] Set IDE0290 to silent

* [Analyzers] Remove IDE1006 configuration from .editorconfig in favor of making exclusions for the few entries

* [Analyzers][Indexer] Add IDE1006 suppressions

* [Analyzers][Peek] Add IDE1006 suppression

* [Analyzers][MWB] Add IDE1006 suppression.

* [Analyzers][Plugins] Add IDE1006 suppression

* [Analyzers][ImageResizer] Suppress IDE0073 to retain original copyright

* [Analyzers] Remove IDE0073 severity change in .editorconfig

---------

Co-authored-by: Ani <115020168+drawbyperpetual@users.noreply.github.com>

* [Workspaces] PWA follow-up (#36217)

* [PTRun][Calculator]Allow scientific notation with lowercase 'e' (#36187)

* [Workspaces] Add encoder parameter to bitmap.save() (#36228)

* [Workspaces] Add encoder parameter to bitmap.save()

* 1 more call fixed

* Move repeated code to the csharp library

* [Workspaces] Implement store of app window's size and position (#36086)

* [Workspaces] Implement store of app window's size and position

* Modifying the default values to -1. The program will use the original default values for the first run.

* [ScreenRuler]Add setting to show the measurement in an extra unit (#35887)

* display ruler: supporting millimeter and other units

* Measurement Tool: UI Setting for an extra unit

* Update images

* spelling

* spelling

* suit code style

* Fix for code review

* remove weird file

* rename field

* [Deps]Update MSTest from 3.5.0 to 3.6.3 (#36115)

* Update MSTest from 3.5.0 to 3.6.3

* Use STA attributes that are now part of MSTest

* Adding Jerry to community.md (#36232)

Update COMMUNITY.md

* [Workspaces] Arranger: smart timer (#36096)

* [Workspaces] Add move functionality

* spell checker

* [Workspaces] Modify Arranger to move apps without launch

* moved ipc helper

* removed callback

* use LauncherStatus in WindowArranger

* wait for launching next app

* launch in a separate thread and protect by mutexes

* update app version in advance

* changed canceling launch

* increased waiting time

* Fix optional parameter load from json

* changed arranger waiting time

* additional waiting time for Outlook

* added app id

* ensure ids before launch

* set id in editor

* minor updates

* [Workspaces] Move: Get the nearest window when moving a window

* [Workspaces] convert optional boolean to enum to avoid json problems

* Handle case when the new Application Property "moveIfExists" does not exist

* Re-implementing app-window pairing for moving feature.

* spell checker

* XAML formatting

* Fixing bug: IPC message not arriving

* spell checker

* Removing app-level-setting for move app. Also fixed compiler errors due styling.

* Updating editor window layout

* Re-implementing window positioning UI elements

* XAML formatting

* Code review findings

* Code cleanup

* Code cleanup

* Code cleanup

* code cleanup

* Code cleanup

* Code cleanup

* [Workspaces] Arranger: Reset wait timer after each successful arrange action

* fix merge error

---------

Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: donlaci <donlaci@yahoo.com>

* Upgrade to check-spelling v0.0.24 (#36235)

This upgrades to [v0.0.24](https://github.com/check-spelling/check-spelling/releases/tag/v0.0.24).

A number of GitHub APIs are being turned off shortly, so you need to upgrade or various uncertain outcomes will occur.

There's a new accessibility forbidden pattern:

> Do not use `(click) here` links
> For more information, see:
> * https://www.w3.org/QA/Tips/noClickHere
> * https://webaim.org/techniques/hypertext/link_text
> * https://granicus.com/blog/why-click-here-links-are-bad/
> * https://heyoka.medium.com/dont-use-click-here-f32f445d1021
```pl
(?i)(?:>|\[)(?:(?:click |)here|link|(?:read |)more)(?:</|\]\()
```

There are some minor bugs that I'm aware of and which I've fixed since this release, but I don't expect to make another release this month.

I've added a pair of patterns for includes and pragmas. My argument is that the **compiler** will _generally_ tell you if you've misspelled an include and the **linker** will _generally_ tell you if you misspell a lib.

- There's a caveat here: If your include case-insensitively matches the referenced file (but doesn't properly match it), then unless you either use a case-sensitive file system (as opposed to case-preserving) or beg clang to warn, you won't notice when you make this specific mistake -- this matters in that a couple of Windows headers (e.g. Unknwn.h) have particular case and repositories don't tend to consistently/properly write them.

* Adjust to community.md, shifting jerry's github user name (#36242)

Update COMMUNITY.md

* [AOT compatible] Resolve AOT Build Error in Peek.UI (#36194)

* add partial for aot support

* add Microsoft.NET.ILLink.Tasks to packages.props

* format

* Revert "format"

This reverts commit 742d5e2214.

* add Microsoft.NET.ILLink.Tasks to notice.md

* add auto reference

* update script to remove the 'Auto-reference line'

---------

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Awake Updates - `TILLSON_11272024` (#36049)

* Update with bug fixes for tray icon and support for parent process

* Process information enum

* Update the docs

* Fix spelling

* Make sure that PID is used in PT config flow

* Logic for checks based on #34148

* Update with link to PR

* Fixes #34717

* Small cleanup

* Proper task segmentation in a function

* Cleanup the code

* Fix synchronization context issue

* Update planning doc

* Test disabling caching to see if that manages to pass CI

* Cleanup to make sure that we're logging things properly.

* Update ci.yml

* Disable cache to pass CI

* Retry logic

* Cleanup

* Code cleanup

* Fixes #35848

* Update notes and codename

* After third attempt, log error instead of throwing exception

* More cleanup to avoid double execution

* Add expected word

* Safeguards for bad values for timed keep-awake

* More updates to make sure I am using uint

* Update error message

* Update packages

* Fix notice and revert CsWinRT upgrade

* Codename update

* Update expect.txt

* Update the struct

* Ensuring we're properly awaiting tray initialization

* Update to make sure tray reflects the bound process

* Cleanup, proper JSON serialization for logs.

* Not needed.

* Add command validation logic

* Moving the initialization logic earlier

* Make sure we show the display state in the tooltip

* Update tray string

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update logic for icon resets

* Update doc

* Simplify function for setting mode shell icon

* Issues should be properly linked

* Minor cleanup

* Update timed behavior

---------

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>

* [Workspaces] detecting right app version (#36100)

* [Workspaces] Add move functionality

* spell checker

* [Workspaces] Modify Arranger to move apps without launch

* moved ipc helper

* removed callback

* use LauncherStatus in WindowArranger

* wait for launching next app

* launch in a separate thread and protect by mutexes

* update app version in advance

* changed canceling launch

* increased waiting time

* Fix optional parameter load from json

* changed arranger waiting time

* additional waiting time for Outlook

* added app id

* ensure ids before launch

* set id in editor

* minor updates

* [Workspaces] Move: Get the nearest window when moving a window

* [Workspaces] convert optional boolean to enum to avoid json problems

* Handle case when the new Application Property "moveIfExists" does not exist

* Re-implementing app-window pairing for moving feature.

* spell checker

* XAML formatting

* Fixing bug: IPC message not arriving

* spell checker

* Removing app-level-setting for move app. Also fixed compiler errors due styling.

* Updating editor window layout

* Re-implementing window positioning UI elements

* XAML formatting

* Code review findings

* Code cleanup

* Code cleanup

* Code cleanup

* code cleanup

* Code cleanup

* Code cleanup

* [Workspaces] fix detection of specific version of apps

---------

Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: donlaci <donlaci@yahoo.com>

* Move the XamlStyler config to src/ (#36202)

my never ending goal to minimize files in the root dir

* [AdvancedPaste]Add Semantic Kernel opt-in to allow chaining of paste actions (#35902)

* [AdvancedPaste] Semantic Kernel support

* Changed log-line with potentially sensitive info

* Spellcheck issues

* Various improvements for Semantic Kernel

* Spellcheck issue

* Refactored Clipboard routines

* Added integration tests for KernelService

* Extra telemetry for AdvancedPaste

* Added 'Hotkey' suffix to AdvancedPaste_Settings telemetry event

* Added IsSavedQuery

* Added KernelQueryCache

* Refactoring

* Added KernelQueryCache to BugReportTool delete list

* Added opt-n for Semantic Kernel

* Fixed bug with KernelQueryCache

* Ability to view last AI chat message on error

* Improved kernel query cache

* Used System.IO.Abstractions and improved tests

* Fixed under-count of token usage

* Used Semantic Kernel icon

* Cleanup

* Add missing EndProject line

* Fix dependency version conflicts

* Fix NOTICE.md

* Correct place of SemanticKernel in NOTICE.md

* Unlinked CustomPreview toggle from AI

* Added Microsoft.Bcl.AsyncInterfaces dependency to AdvancedPaste

* Fixed NOTICE.md order

* Moved Custom Preview to behaviour section

* Made Image to Text raise error on empty output

* Added AIServiceBatchIntegrationTests

* Updated AIServiceBatchIntegrationTests

* Added prompt moderation

* Moved GPO Infobar to better location

* [Launcher]Port from WPF-UI to .NET 9 WPF (#36215)

* Initial implementation

* Fix fluent style

* Fix no endline

* Update expect.txt

* Fix formatting

* Fix light theme looking bad on Windows 10

* fix formatting

* test change

* Now really fixed W10

* Add a comment

* Fix typos

* Fix spellcheck errors

* Fix spellcheck pattern for websites

* Change patterns for spellcheck in the right file

* Fix XAML styling

* Fix contrast colors on W11

* Fix formatting

* Removed emty line

* Fix formatting

* Added comment to fluentHC file

* fix comment

* Fix Windows10 again.
Adress feedback.

* W11 fix chaning from high contrast to normal not having correct background

* W10 Fix high contrast not working after switching from light/dark moed

* Address feedback

* Fix formatting

* Second W11 fix chaning from high contrast to normal not having correct background

* [UX]Updating New+ and Settings icons (#36290)

* Updated icons

* Updating more icons and icos

* [Settings][Dashboard] Accessibility fixes (#36280)

* make narrator announce buttons/toggles

* add toggles module name

* [ci]Sign OpenAI dll that's not signed (#36299)

* Update CODEOWNERS to include gordon, jerry and kayla (#36308)

* Update CODEOWNERS

* Update names.txt

* Making the powertoys-code-owners team code owners (#36310)

* Update CODEOWNERS

* Update names.txt

* Update CODEOWNERS

* [FZEditor]Fix Create new layout dialog radio buttons IsChecked values  (#36320)

* 0.87 changelog (#36335)

* 0.87 changelog

* Fix spellcheck

* Update README.md

Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

---------

Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

* [PTRun]Fix WPF transparent border issue on Windows 10 (#36392)

* Added border on W10

* Added a comment

---------
Co-authored-by: Davide Giacometti <25966642+davidegiacometti@users.noreply.github.com>

* [PTRun]Fix .NET 9 crash in OneNote (#36417)

* Fix crash in OneNote Run

* added better comment

* [AdvancedPaste]Fix NullReferenceException on Dispose (#36428)

[AdvancedPaste] Fixed NullReferenceException on Dispose

* [Fuzz] Add fuzz testing for AdvancedPaste and new pipeline for onboarding OneFuzz (#36329)

* add fuzz

* install .net8

* add spelling check

* refine the pipeline

* add readme and update the test code

* fix spelling error

* change to weekly run

* Add New CI Pipeline for Latest WindowsAppSDK (#36282)

This PR introduces the following changes to the CI pipeline and version management:

Pipeline Enhancements:
1. Added a new script UpdateVersions.ps1 to automate the update of Microsoft.WindowsAppSDK versions across various project files.
2. Introduced a new pipeline configuration ci-using-the-latest-winappsdk.yml to build using the latest Microsoft.WindowsAppSDK.
3. Updated existing pipeline configurations to support the new useLatestWinAppSDK parameter.

Pipeline Configuration Updates:
1. Updated job-build-project.yml to handle the useLatestWinAppSDK parameter and adjust the RestoreAdditionalProjectSourcesArg accordingly.
2. Added a new template steps-update-winappsdk-and-restore-nuget.yml for updating and restoring NuGet packages with the latest Microsoft.WindowsAppSDK.
3. Added WinAPPSDK version selection, the pipeline can be manually triggered to use the specified version.

---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>

* [AOT compatible] Make HostsUILib become AOT compatible (#36136)

* Remove AOT configuration

* Refer to AOT compatibility props

---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>

* [AOT compatible] Clean up some AOT build issue in FilePreviewCommon and MarkdownPreviewHandler (#36207)

* Use AppContext.BaseDirectory to replace assembly.GetExeAseembly.Location.
Fix json serilizer aot issue.

* clean up some AOT build issue

* Update src/modules/previewpane/MarkdownPreviewHandler/MarkdownPreviewHandlerControl.cs

Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

* Update src/common/FilePreviewCommon/Formatters/JsonFormatter.cs

Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>
Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

* Add new pipeline using the latest webview2 from Edge Canary (#36317)

* using the latest webview2 for testing


---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>

* [Bug fix] Making the OpenAI key configuration page scrollable. (#36359)

* Fixed #34470

---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>

* [Bug fix] Add a format validation step before format conversion. (#36404)

This PR aims to fix the bug #35225 by introducing a new method IsJson to determine if a given text is in JSON format.
The IsJson method is then utilized in the ToJsonFromXmlOrCsvAsync method to optimize the processing logic.
If the text is already in JSON format, it is returned directly without further conversion from XML or CSV.

Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>
Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

* Add more STCA team members (#36438)

* Add more STCA team members

* Include more spelling check errors

* Remove non-alpha in dictionary

* Add Zhaopeng Wang

* Fix spell checking error

* Remove "prerelease: true" (#36484)

* Remove "prerelease: true"

The Microsoft.WinGet.DSC module is GA so prerelease: true is no longer needed.

* Update expect.txt

fixing spellcheck warning

---------

Co-authored-by: Clint Rutkas <clint@rutkas.com>

* [Docs]Update README for 0.87.1 release (#36534)

* [CI] Enhance build Pipeline Reliability with Retry Logic and Improved Error Messaging (#36529)

* update pipeline with retry

* remove tests

* Add team member (#36590)

* [New+]Don't override New actions from Explorer on Windows 10 (#36467)

* [New+]Don't override New actions from Explorer

* Update src/modules/NewPlus/NewShellExtensionContextMenu.win10/shell_context_menu_win10.cpp

* Update src/modules/NewPlus/NewShellExtensionContextMenu.win10/shell_context_menu_win10.cpp

* Add pattern for learn.microsoft links

* Also only Query for context menu

* [PTRun][Calculator]Handle hexadecimal numbers to not return divide by 0 error (#36390)

* add '0x' handling for divide by 0 scenarios

* fix comment on division by 0 check

---------

Co-authored-by: Connor Plante <connor.plante@gmail.com>

* [TextExtractor]Minor UI/Accessibility fixes in the overlay UI (#36356)

minor UI and accessibility fixes

* [PTRun][Calculator]Update mages to v3.0.0 and support for `randi(n)` (#36560)

* update to mages 3.0.0

* allow randi() in calculator plugin

* fix tests and input validation

* fix spell check

* [QuickAccent]Added ć for Slovenian (#36336) (#36338)

* Fix snapping Workspaces Editor to Fancy Zones (#36463)

* Remove Workspaces Editor from Fancy Zone's excluded app list

* removed unused string

---------

Co-authored-by: Seraphima <zykovas91@gmail.com>

* [PTRun]Fix drag on .NET 9 WPF (#36635)

* [CQ]Continued to move stuff out of root - Solution.props (#36244)

* [QuickAccent]Add Proto-Indo-European (#36408)

* Add ḱ to PowerAccent for Proto-Indo-European

* Fix Spelling Check

* Add more letters to PIE

* Order PIE after PI

---------

Co-authored-by: Hao Liu (from Dev Box) <haoliu3@microsoft.com>
Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* [PTRun]Add context buttons for VSCodeWorkspaces plugin (#36517)

* [Settings][QuickAccent]Change 'character set' to plural form (#36565)

* [PTRun][Calculator]Fix unit tests on non-english systems (#36569)

* fix tests

* update comment

* [PTRun][Calc]Improve handling of non-base 10 numbers (#36700)

* [Settings][PTRun]Show plugin version and website (#36580)

* [Monaco]Add support for .resx and .resw preview support. (#36499)

Added support for .resx and .resw preview support. These files are XML based files so I added the file extensions as part of the registerAdditionalLanguage("xmlExt"...) function.

* [Settings] Add Workspaces' workspaces.json file to backup/restore list (#36714)

* [Localization] Fix loc pipeline to send downloaded localized files to TDBuild upon retry after failure (#36766)

* [AdvancedPaste]Fixed issues with Screen Reader integration (#36778)

* Remove Advent calendar from README (#36777)

* Remove Advent calendar from README

* Update hero image

* Delete doc/images/overview/PT_holiday_hero_image.png

* [AdvancedPaste]Add all BitmapDecoder supported image filetypes to ImageToText (#35600)

Adds support to ImageToText for all image filetypes supported by BitmapDecoder.

* [AOT]Clean up some AOT build issues in PowerAccent.Core (#36264)

* init

* Use AotCompatibility instead

* Replace typeof(Lanaguge) with GetValues<Language>

* Create new folder to place source generation context file.

---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>

* [WinUI3]Fix Windows 10 title bar borders (#36429)

* Fix borders for windows in the Settings UI

* Fix HOSTS window

* Fix Advanced Paste

* Fix Environment Variables

* Fix File Locksmith

* Fix Peek, with a caveat

* Fix Registry Preview

* Remove unused imports

* Clean up imports in OobeShellPage

* Move OSVersionHelper from Common.UI up into ManagedCommon

* [QuickAccent]Fix unstable language loading (#36721)

* [Peek]Bring into foreground if previously minimized (#36506)

Added Activate() to bring Peek.UI window into focus upon Toggle. This allows the UI to be presented even if it was previously minimized.

* Update Run docs README (#36857)

* Update Run docs README

* Remove System dupe

* [Monaco]Make minimap toggleable (#33742)

* [Monaco]Fix Json format preview setting (#36867)

* [KBM]Added option for exact match shortcut (#36000)

* Added option for exact match shortcut

* Fix spell-check

* [Deps][Security]Update .NET Packages from 9.0.0 to 9.0.1  (#36879)

* [Deps] Update NuGet packages to version 9.0.1

Updated several NuGet packages from version 9.0.0 to 9.0.1, including:
- Microsoft.Data.Sqlite
- Microsoft.Bcl.AsyncInterfaces
- Microsoft.Extensions.DependencyInjection
- Microsoft.Extensions.Logging
- Microsoft.Extensions.Logging.Abstractions
- Microsoft.Extensions.Hosting
- Microsoft.Extensions.Hosting.WindowsServices
- Microsoft.Win32.SystemEvents
- Microsoft.Windows.Compatibility
- System.CodeDom
- System.ComponentModel.Composition
- System.Configuration.ConfigurationManager
- System.Data.OleDb
- System.Diagnostics.EventLog
- System.Diagnostics.PerformanceCounter
- System.Drawing.Common
- System.Management
- System.Runtime.Caching
- System.ServiceProcess.ServiceController
- System.Text.Encoding.CodePages
- System.Text.Json

* [Deps] Update NOTICE.md

* [Peek]Fix using the correct Monaco assets at runtime (#36890)

* [Workspaces] fixing bug: editor starts outside of visible desktop area (#36769)

* [Workspaces] fixing bug: editor starts outside of visible desktop area

* Update src/modules/Workspaces/WorkspacesEditor/MainWindow.xaml.cs

Co-authored-by: Seraphima Zykova <zykovas91@gmail.com>

---------

Co-authored-by: Seraphima Zykova <zykovas91@gmail.com>

* [Workspaces] Saving app properties on launch and recapture (#36751)

* [Workspaces] Implementing set and get GUID to/from HWND to distinguish windows moved by the Workspaces tool

* After launch and capture copy the CLI args from the "original" project

* Fix getting GUID

* spell check

* modification to be able to handle different data sizes on different systems

* code optimisation

* Replacing string parameter by InvokePoint

* renaming variable

* [AdvancedPaste]Use background thread for interactions between runner and Advanced Paste (#36858)

* [Advanced Paste] Use background thread for runner-Advanced Paste interaction

* Fixed typo

* [VCM]Deprecate the Video Conference Mute utility (#36772)

* Remove all VideoConferenceMute related code and files

* Clean up vcm driver registry keys

* Also remove the Webcam report tool

* Also clean out video conference on the installer

* Fix spellcheck

* Remove comment about video conf

* Update gpo files revision

* Revert removing the VCM policies

* Deprecate VCM GPO policy

* Change deprecation message to show first supported version

* Tweak supported strings in the adml

* Goodbye friends, you are forever part of the team (#36905)

* Goodbye friends

Forever part of the team 😢

* Update COMMUNITY.md

* Fix formatting issues in COMMUNITY.md

* [New utility]Sysinternals ZoomIt (#35880)

* ZoomIt initial code dump

* Change vcxproj to normalize dependency versions

* Fix code quality to build

* Add to PowerToys solution

* Clean out C-style casts

* Fix some more analyzer errors

* Constexpr a function

* Disable some warnings locally that it seemed better not to touch

* Add ZoomIt module interface

* Add GPO

* Add Settings page with Enable button

* Output as PowerToys.ZoomIt.exe

* Extract ZoomIt Settings definition to its own header

* Make ZoomItModuleInterface build with ZoomItSettings too

* WinRT C++ interop for ZoomItSettings

* From Registry To PowerToys Json

* Properly fix const_cast analyzer error

* Initial Settings page loading from registry

* Zoom mode settings

* Save settings

* Add file picker and DemoType file support

* Remaining DemoType settings

* Have ZoomIt properly reloading Settings and exiting

* Remove context menu entries for Options and Exit

* ZoomIt simple Break Options

* Break advanced options

* Simple Record settings

* Record Microphone setting

* Fix break background file picker title

* Font setting

* Fix build issues after merge

* Add ZoomIt conflict warning to Settings

* Exclude Eula from spell checking

* Fix spellcheck errors

* Fix spell check for accelerated menu items

* Remove cursor files from spellcheck. They're binary

* Fix forbidden patterns

* Fix XAML style

* Fix C# analyzers

* Fix signing

* Also sign module interface dll

* Use actual ZoomIt icon

* Add OOBE page for ZoomIt

* ZoomIt image for Settings

* Flyout and Dashboard entries

* Fix type speed slider labels

* Correctly load default Font

* Correctly register shortcuts on ZoomIt startup first run

* Fix modifier keys not changing until restart

* Show MsgBox on taken shortcut

* Start PowerToys Settings

* Normalize ZoomIt file properties with rest of PowerToys

* Add attribution

* Add ZoomIt team to Community.md

* More copyright adjustments

* Fix spellcheck

* Fix MsgBox simultaneous instance to the front

* Add mention of capturevideosample code use

* Add ZoomIt to process lists

* Add telemetry

* Add logging

* React to gpo

* Normalize code to space identation

* Fix installer build

* Localize percent setting

* Fix XAML styling

* Update src/settings-ui/Settings.UI/Strings/en-us/Resources.resw

Co-authored-by: Stefan Markovic <57057282+stefansjfw@users.noreply.github.com>

* Fix spellcheck

* One more spellcheck fix

* Integrate LiveDraw feature changes from upstream

* Fix name reuse in same scope

* Fix c-style casts

* Also register LIVEDRAW_HOTKEY

* Fix newLiveZoomToggleKey

* Update LiveZoom description in Settings to take LiveDraw into account

* Fix spellcheck

* Fix more spellcheck

* Fix Sysinternals capitalization

* Fix ARM64 Debug build

* Support Sysinternals build (#36873)

* Remove unneeded files

* Make build compatible with Sysinternals

* Separate PowerToys ZoomIt product name (#36887)

* Separate PowerToys ZoomIt product name

To help maintain the Sysinternals branding in the standalone version.

* Clarify branding-related includes

* Remove ZoomIt.sln

* Add foxmsft to spell-check names

* Add ZoomIt to README

* Add ZoomIt to GH templates

* Add ZoomIt events to DATA_AND_PRIVACY.md

* Remove publish_config.json

* Remove publish_config.json from vcxproj too

---------

Co-authored-by: Mark Russinovich <markruss@microsoft.com>
Co-authored-by: Alex Mihaiuc <69110671+foxmsft@users.noreply.github.com>
Co-authored-by: John Stephens <johnstep@microsoft.com>
Co-authored-by: Stefan Markovic <57057282+stefansjfw@users.noreply.github.com>

* [PTRun]Add hotkey to the show telemetry event (#36869)

* [PTRun]Update the code for .NET 9.0.1 - remove workarounds (#36909)

* Revove some unneeded changes after pdating to .net9.1

* [RegistryPreview]Copy context menu, data tooltip, MULTI_SZ fix (#36631)

* add context menus

* string resources for contextmenu

* fix line break parsing for MULTI_SZ

* better presentation of multiline values and value tooltip

* cleanup

* [MWB] - refactoring "Common" classes - Common.Log.cs, Common.Receiver.cs (#35726)

* [PTRun]Add setting for different trigonometric units in Calculator (#36717)

* Added angle units to PowerToys Run Calculator plugin.

* Update Resources.resx

* Added GitHub SpellCheck rule for 'gradians'.

---------

Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

* [ci]Remove steps to build abstracted utilities packages (#36934)

* [Settings]Update GPO infobar icon, improve some pages and fix bugs (#33703)

* changes part 1

* fix xaml code

* changes part 2

* fix cmdNotFound page

* Update PowerOcrPage

* More Pages changed

* More Pages changed

* revert temporary change

* fix spelling

* add resw comment

* add resw comment

* Update MouseWihtoutBorderPage.xaml

* PowerPreview page

* workspaces page

* fix awake page gpo handling

* NewPlus page

* update new+ page!

* AdvancedPaste.xaml: Move Info bar.

* Update MouseJumpPanel.xaml

* Update GeneralPage.xaml

* fix position of info bar and some ui quirks

* fix xaml style

* fix string resources

* string changes

* prepare megre main

* update new+ page

* zoomit page

* various fixes

* [Common]NotificationUtil helper class with FileWatcher (#36720)

* add NotificationUtil helper with file watcher and cache

* fix spellcheck

* indentation

* [PTRun][Docs]Add YubicoOauthOTP to Third-Party plugins (#36761)

* [PTRun]Fixed typo in Value Generator messages (#36951)

* [AOT] Clean up some AOT issues in Advanced Paste module (#36297)

* Clean up the aot build issue.

* Merge main and clean up new AOT build issue

* Update LogEvent define.

* Update src/modules/AdvancedPaste/AdvancedPaste/Helpers/LogEvent.cs

Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

* update typo bug

* Remove unused allow list item

* Create a new folder to place source generation context

* Merge main and rename LogEvent to AIServiceFormatEvent

---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>
Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

* [ZoomIt]React to gpo setting when run as standalone (#36975)

* [Settings]ImageResizer settings accessibility updates, fixes and refactor (#36903)

* Fix issue with missing Image Resizer unit and fit information in settings description.

* Fix accessibility issues on Edit and Remove buttons. Fix various issues and refactor view model and ImageSize. New resources for accessibility text formats.

* Fix unit test because of change to new preset width and height. Fix 2 unit tests having incorrect expected/actual orderings.

* Post-review update: accessibility strings now formatted within the converter, instead of via format strings; simplified encoder GUID collection declaration and retrieval.

* Minor example text fix.

* [Settings]Update "Back up" mentions when it should be used as a verb (#36965)

* Update Back up name

* Rename Backup to Back up

* [New+]Update last modified date to now for all templates created (#36133)

* Update last modified date to now for all templates created

* Now also set last update for directories. Thank you htcfreek!

* [ImageResizer][ci]Fix XAML style errors (#37009)

* [Settings] Add "new" labels to navigation for new utilities (#36939)

* initial implementation

* move new label to zoomit

* cleanup

* more cleanup

* fix XAML formatting

* update padding to 4px

* add badge to dashboard item

* fix XAML formatting

* Tweaking UX

---------

Co-authored-by: Niels Laute <niels.laute@live.nl>
Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* [MWB]Fix helper process termination issue in service mode (#36892)

* [MWB] Changed to suppress the flow of the execution context

* Fix build after merge

* [MWB] Fix helper process termination issue in service mode

* Add some comments

* [runner]Fix crashes caused by wrong setting AllowDataDiagnostics registry value (#37015)

* Fix setting registry value

* Prevent future similar crashes

* [PTRun][Calculator]Error check when loading trigonometry mode (#37033)

* [ZoomIt]Fix transparent draw after changing another setting (#37042)

* [Settings]Fix ZoomIt page changing current directory (#37052)

* [ci]Remove vc tools version workaround (#37098)

* 0.88 changelog (#37056)

* 0.88 changelog

* Update README.md

Co-authored-by: Clint Rutkas <clint@rutkas.com>

* Add installer hashes

* Fix aka.ms link for ZoomIt

* Add mention to the PTRun plugin's dll file version

* Update README.md

Co-authored-by: Kayla Cinnamon <cinnamon@microsoft.com>

---------

Co-authored-by: Clint Rutkas <clint@rutkas.com>
Co-authored-by: Kayla Cinnamon <cinnamon@microsoft.com>

* [check-spelling] Update metadata

Update for https://github.com/zadjii-msft/PowerToys/actions/runs/13033425108/attempts/1
Accepted in https://github.com/zadjii-msft/PowerToys/pull/379#issuecomment-2621811953

Signed-off-by: check-spelling-bot <check-spelling-bot@users.noreply.github.com>
on-behalf-of: @check-spelling <check-spelling-bot@check-spelling.dev>

---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>
Signed-off-by: check-spelling-bot <check-spelling-bot@users.noreply.github.com>
Co-authored-by: Laszlo Nemeth <57342539+donlaci@users.noreply.github.com>
Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: donlaci <donlaci@yahoo.com>
Co-authored-by: Ionuț Manța <ionut@janeasystems.com>
Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>
Co-authored-by: Ani <115020168+drawbyperpetual@users.noreply.github.com>
Co-authored-by: PesBandi <127593627+PesBandi@users.noreply.github.com>
Co-authored-by: Wenjian Chern <55335597+Sophanatprime@users.noreply.github.com>
Co-authored-by: Youssef Victor <youssefvictor00@gmail.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>
Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Co-authored-by: leileizhang <leilzh@microsoft.com>
Co-authored-by: Den Delimarsky 🔐 <sign@den.dev>
Co-authored-by: Niels Laute <niels.laute@live.nl>
Co-authored-by: Davide Giacometti <25966642+davidegiacometti@users.noreply.github.com>
Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>
Co-authored-by: Shuai Yuan <128874481+shuaiyuanxx@users.noreply.github.com>
Co-authored-by: moooyo <42196638+moooyo@users.noreply.github.com>
Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>
Co-authored-by: Jerry Xu <n.xu@outlook.com>
Co-authored-by: Demitrius Nelon <denelon@microsoft.com>
Co-authored-by: Kai Tao <69313318+vanzue@users.noreply.github.com>
Co-authored-by: Connor Plante <150482134+plante-msft@users.noreply.github.com>
Co-authored-by: Connor Plante <connor.plante@gmail.com>
Co-authored-by: Domen Soklič <soklicd@gmail.com>
Co-authored-by: Hao Liu <liuhaobupt@163.com>
Co-authored-by: Hao Liu (from Dev Box) <haoliu3@microsoft.com>
Co-authored-by: immi <iafullprogrammer@gmail.com>
Co-authored-by: Asif Islam <77113884+asif4318@users.noreply.github.com>
Co-authored-by: Kayla Cinnamon <cinnamon@microsoft.com>
Co-authored-by: Dave Rayment <dave.rayment@gmail.com>
Co-authored-by: Neil McAlister <pingzing@users.noreply.github.com>
Co-authored-by: Mark Russinovich <markruss@microsoft.com>
Co-authored-by: Alex Mihaiuc <69110671+foxmsft@users.noreply.github.com>
Co-authored-by: John Stephens <johnstep@microsoft.com>
Co-authored-by: Michael Clayton <mike@kingslandconsulting.co.uk>
Co-authored-by: Nathan Gill <nathan.j.gill@outlook.com>
Co-authored-by: Daniel Nilsson <daniel.nilsson1989@gmail.com>
Co-authored-by: JackStuart <jack@jstuart.io>
Co-authored-by: Christian Gaarden Gaardmark <cgaarden@hotmail.com>
Co-authored-by: YDKK <YDKK@users.noreply.github.com>
Co-authored-by: Stefan Markovic <stefansjfw@users.noreply.github.com>
2025-01-29 08:54:27 -06:00
Stefan Markovic
0931597d53 Fix build until POC is removed (#380) 2025-01-29 08:47:51 -06:00
Mike Griese
c39141b143 Tiny nits for winget (#378)
I guess I only subconsciously knew that the progress value in WinUI was in percent, not [0,1].
Also actually do the description fallback I wanted.
2025-01-29 06:56:10 -06:00
Mike Griese
4ce5515ced Remove all the PT Run v1 icons we no longer need (#377)
Removes icons we weren't using anymore. 
Replaces the Windows Services icon from the dll, with "Processing", which is also two gears. 
Fixes the FastUpToDate check, for tighter inner loop

Closes #125
2025-01-29 06:32:23 -06:00
Mike Griese
cce68789df Remove straggling empty fallbacks (#376)
Updating the search text for a fallback command is fully async. However, we just fire off all those updates, then immediately update the list of filtered items. That of course is dumb, because most of them haven't yet processed the update before we determine if we show it or not.

So, we've added an `UpdateFallbackItemsMessage` that we emit from a fallback command to let the main page know it may need to remove an item from its list.
2025-01-28 14:21:49 -06:00
Mike Griese
0fba556782 Hot (un)load extensions on (un)install (#375)
Closes #370 

The DevHome code was great for "I need something that can lookup extensions and enumerate all of them".

However, the DevHome code is a very blunt hammer when it comes to extensions. The only thing it tracks is "packages changed", and if it gets one of those, it just blows away all the extensions and rebuilds them. Yikes. 

This PR changes `ExtensionService` to be a scalpel. We'll keep `_installedExtensions` fresh. When we get a package install, we'll add only that package's extension to our cache, and let the `TopLevelCommandManager` know. Similarly for updates and uninstalls. 

That way, we can exactly change the top-level list as needed, rather than bluntly forcing all the extensions to reload. 

In the middle of all this, I fixed a bug where uninstalling an extension, then reloading would just fail to load extensions. This is because the old code would clear out the **whole** list of extensions when _one_ was uninstalled. That created a race where we'd be parsing the new list of all the extensions (from the reload), get an uninstall event, clear the list, then InvalidOperation as the list of extensions was modified during enumeration. 

There's a bunch more locking in here. This might drive-by #324 but hard to be sure. 

Related to #89
2025-01-28 13:45:46 -06:00
Mike Griese
899c233329 Don't move the caret to the end of the input if nothing changed (#374)
Title.

I just noticed that if you move the caret earlier in the input, then type, we'll toss the caret to the end of the input. Ew. Don't do that.

We should only move the caret if the text actually changed from what we already had.
2025-01-27 12:06:09 -08:00
Jordi Adoumie
a89375df1e Farewell (#332)
[Spartans never die](https://www.youtube.com/clip/UgkxrRi5-oeG7thHZ4qH-UNsw2JmyK_GmM0W)
2025-01-27 12:03:44 -08:00
Davide Giacometti
f14119a3ff Add isMultiline and placeholder to Input.Text (#371)
Add `isMultiline` and `placeholder` to `Input.Text`.
Default is the current behavior: single line without placeholder.
2025-01-27 12:00:36 -08:00
Mike Griese
e92a28917e Update acrylic when BG changes (#373)
Closes #225

Yes it absolutely was this easy.
2025-01-27 11:56:46 -08:00
Mike Griese
2311b35a08 Add sample to validate null arrays (#372)
Closes #221

Turns out that the crash in #221 doesn't actually repro anymore, but this sample will test that case
2025-01-27 11:56:29 -08:00
Mike Griese
7416b3462d Add a tray icon (#364)
Mostly pilfered code from `src/runner/tray_icon.cpp`

Creates a tray icon. No menu on it - just click it to focus the CmdPal. 

Closes #what-the-I-didn't-file-something-for-this?
2025-01-27 11:56:20 -08:00
Mike Griese
46bc657945 Add support for tags in Details metadata (#368)
Adds support for rendering tags in Details metadata.

As an example, adds tags to winget packages.

Closes #95 

Also adds separators, and a sample
2025-01-27 11:55:02 -08:00
Mike Griese
621044f3c5 Add a page for searching for extensions on winget (#369)
Tested with the `command-line` tag, because there's no extensions in winget until https://github.com/microsoft/winget-pkgs/pull/216685 merges

Also adds a link to search in the Store, though I think that won't be as useful. 

Lastly - also actually fixes the tag search 😅

Builds on #356
Closes #89
Probably needs #370 to feel right
2025-01-27 11:53:14 -08:00
Niels Laute
28efaa849a Settings in a window (#361)
- Settings are now in a window.
- Moved pages into a separate pages folder

We probably want to split up the extensions vs. general VMs, but we can do that later once we figured out what the Settings pages should look like.

Related to #80
2025-01-27 11:52:47 -08:00
Seraphima Zykova
62e99fbc70 [Indexer] Support wildcards like PT Run (#336)
Changed query generation to support wildcards like PT Run
2025-01-27 11:52:27 -08:00
Mike Griese
e51d70e055 Fix NOTICE and add version (#362)
I didn't know this file existed, whoops, sorry
2025-01-24 06:24:22 -08:00
Mike Griese
8f9534121f Initial draft of the winget extension (#356)
_targets #355_, which I need for improvements to messages

* [x] The initial package load takes a long time. This is pretty much unavoidable, but we do it on cmdpal startup, so anything after about 12s should be snappy
* [x] I cannot for the life of me get `FindPackagesAsync`, to be async. The call always ends up running synchronously, so I can't hook up the `operation.Completed` event, nor the cancellation. The action is already complete! 
  - this is probably blocking, because we still end up doing a search on most keystrokes, so we only get the final results after all the intermediate ones are done. 
  - Just pasting a search though? Just as snappy as you'd hope. 
  - Ahahahaha it wasn't me: [microsoft/winget-cli#5151](https://github.com/microsoft/winget-cli/pull/5151)
  -  manually wrapping this in a BG thread made it better
* [ ] We probably shouldn't make the default action for an installed package "Uninstall". 
  - Probably want to shunt over to the Settings app for the package
  - We probably want to do the thing where the second command doesn't show up if it's a separator
  - Punt? punt
* [x] We need to add more metadata in the details for packages. We have it, if only we could show it: #95 
  - This will be a follow-up
* [ ] This needs localization too
* I'm using the `1.10-preview` of the winget com interfaces. On my framework laptop at least, the `RefreshPackageCatalogAsync` API isn't yet implemented, so I need to test that
* [x] I don't think we implemented `MoreCommands` being observable in the host yet. We should.
  - Punted, #360 
* [ ] I probably also need to check if other APIs we're using exist or not
* [x] I haven't tested situations that like, need you to accept a license? Installing `nano` and the NanoLeaf app both _just work_. 
  - Punted?
2025-01-24 04:49:18 -08:00
Mike Griese
4d464bc801 Add support for hiding messages too (#355)
Bits of status messages that were omitted from #281. 

This lets extensions hide messages (and exposes the helper in the helper lib). 

It also adds support for displaying progress as a progress bar underneath the text of the status message. I'll need An Adult to help with the XAML, to re-template the InfoBar to allow a progress wheel in the icon instead, but for now? good enough. 

I'm doing this to unblock the next PR, which should add some rudimentary winget support.
2025-01-23 14:06:55 -08:00
Mike Griese
2d4bead312 Fix taskbar summons (#357)
Whoops. Activating the app from the taskbar comes in off the UI thread

This may have been an additional cause of #327
2025-01-23 14:06:06 -08:00
Mike Griese
5ed505ac92 Add 3 settings for Clint (#347)
* Add 3 settings for Clint

Is your name Clint? Do you like settings? Did you hate that backspace on the
main page could dismiss the palette? If you said yes to any of that, you're in
luck! This PR is for you!

This PR adds three new settings:

* `BackspaceGoesBack`: Controls if backspace with an empty search takes you back
  a level
* `SingleClickActivates`: Allows users to toggle between the "single click
  selects, double activates" vs "single click activates" behavior
* `HighlightSearchOnActivate`: When `true` (**default**), this will select the
  text in the search bar when the window is summoned

This drive-by fixes a bug where clicking to select an item stole focus from the
search box.

closes #306

* spel
2025-01-23 13:48:57 -08:00
Stefan Markovic
83e13e814b Mere PT upstream #8 (#346)
* [Workspaces] implement the move feature (#35480)

* [Workspaces] Add move functionality

* spell checker

* [Workspaces] Modify Arranger to move apps without launch

* moved ipc helper

* removed callback

* use LauncherStatus in WindowArranger

* wait for launching next app

* launch in a separate thread and protect by mutexes

* update app version in advance

* changed canceling launch

* increased waiting time

* Fix optional parameter load from json

* changed arranger waiting time

* additional waiting time for Outlook

* added app id

* ensure ids before launch

* set id in editor

* minor updates

* [Workspaces] Move: Get the nearest window when moving a window

* [Workspaces] convert optional boolean to enum to avoid json problems

* Handle case when the new Application Property "moveIfExists" does not exist

* Re-implementing app-window pairing for moving feature.

* spell checker

* XAML formatting

* Fixing bug: IPC message not arriving

* spell checker

* Removing app-level-setting for move app. Also fixed compiler errors due styling.

* Updating editor window layout

* Re-implementing window positioning UI elements

* XAML formatting

* Code review findings

* Code cleanup

* Code cleanup

* Code cleanup

* code cleanup

* Code cleanup

* Code cleanup

* fix Move attribute after launch and snapshot

* Extend WindowArranger with PWA functionality to detect different PWA apps. PwaHelper moved to the common library

* fix repeat counter in the editor

* Code optimization

* code cleanup, optimization

* fix double-processing window

---------

Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: donlaci <donlaci@yahoo.com>

* [KeyboardManager]Fix mapping shift to numpad (#35890)

* Keyboard Manger fix numpad as shift

Fixed shift not being released if a numpad key as shift.

* Added comments

* Fix typo

* Fix the numpad unlocked key not working if the locked version is overridden by shift

* Fix spelling check.

* Revert the VK_CLEAR change.

---------

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* [Analyzers] Update .editorconfig with rules to relax IDE errors (#36095)

* [Analyzers] Remove duplicate pascal case style from .editorconfig

* [Analyzers] Configured severity for individual IDE and CA rules showing as errors in VS

Set severity for IDE0005, IDE0008, IDE0016, IDE0018, IDE0019, IDE0021, IDE0022, IDE0023, IDE0025, IDE0027, IDE0028, IDE0029, IDE0031, IDE0032, IDE0034, IDE0036, IDE0039, IDE0042, IDE0044, IDE0045, IDE0046, IDE0047, IDE0057, IDE0051, IDE0052, IDE0054, IDE0055, IDE0056, IDE0057, IDE0059, IDE0060, IDE0061, IDE0063, IDE0071, IDE0073, IDE0074, IDE0075, IDE0077, IDE0078, IDE0083, IDE0090, IDE0100, IDE0130, IDE160, IDE180, IDE0200, IDE0240, IDE0250, IDE0251, IDE0260, IDE0270, IDE0290, IDE0300, IDE0301, IDE0305, IDE1005, IDE1006, CA1859, CA2022, CA2263

* [Analyzers] Fix mismatched analyzer descriptions

* [Analyzers] Fix misspelling

* Update .editorconfig

Made the following style rules `silent` instead of `suggestion`: 
- Use explicit type instead of 'var'
- Use expression body for ...
- Use block-scoped namespace

* [Analyzers] Set IDE0290 to silent

* [Analyzers] Remove IDE1006 configuration from .editorconfig in favor of making exclusions for the few entries

* [Analyzers][Indexer] Add IDE1006 suppressions

* [Analyzers][Peek] Add IDE1006 suppression

* [Analyzers][MWB] Add IDE1006 suppression.

* [Analyzers][Plugins] Add IDE1006 suppression

* [Analyzers][ImageResizer] Suppress IDE0073 to retain original copyright

* [Analyzers] Remove IDE0073 severity change in .editorconfig

---------

Co-authored-by: Ani <115020168+drawbyperpetual@users.noreply.github.com>

* [Workspaces] PWA follow-up (#36217)

* [PTRun][Calculator]Allow scientific notation with lowercase 'e' (#36187)

* [Workspaces] Add encoder parameter to bitmap.save() (#36228)

* [Workspaces] Add encoder parameter to bitmap.save()

* 1 more call fixed

* Move repeated code to the csharp library

* [Workspaces] Implement store of app window's size and position (#36086)

* [Workspaces] Implement store of app window's size and position

* Modifying the default values to -1. The program will use the original default values for the first run.

* [ScreenRuler]Add setting to show the measurement in an extra unit (#35887)

* display ruler: supporting millimeter and other units

* Measurement Tool: UI Setting for an extra unit

* Update images

* spelling

* spelling

* suit code style

* Fix for code review

* remove weird file

* rename field

* [Deps]Update MSTest from 3.5.0 to 3.6.3 (#36115)

* Update MSTest from 3.5.0 to 3.6.3

* Use STA attributes that are now part of MSTest

* Adding Jerry to community.md (#36232)

Update COMMUNITY.md

* [Workspaces] Arranger: smart timer (#36096)

* [Workspaces] Add move functionality

* spell checker

* [Workspaces] Modify Arranger to move apps without launch

* moved ipc helper

* removed callback

* use LauncherStatus in WindowArranger

* wait for launching next app

* launch in a separate thread and protect by mutexes

* update app version in advance

* changed canceling launch

* increased waiting time

* Fix optional parameter load from json

* changed arranger waiting time

* additional waiting time for Outlook

* added app id

* ensure ids before launch

* set id in editor

* minor updates

* [Workspaces] Move: Get the nearest window when moving a window

* [Workspaces] convert optional boolean to enum to avoid json problems

* Handle case when the new Application Property "moveIfExists" does not exist

* Re-implementing app-window pairing for moving feature.

* spell checker

* XAML formatting

* Fixing bug: IPC message not arriving

* spell checker

* Removing app-level-setting for move app. Also fixed compiler errors due styling.

* Updating editor window layout

* Re-implementing window positioning UI elements

* XAML formatting

* Code review findings

* Code cleanup

* Code cleanup

* Code cleanup

* code cleanup

* Code cleanup

* Code cleanup

* [Workspaces] Arranger: Reset wait timer after each successful arrange action

* fix merge error

---------

Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: donlaci <donlaci@yahoo.com>

* Upgrade to check-spelling v0.0.24 (#36235)

This upgrades to [v0.0.24](https://github.com/check-spelling/check-spelling/releases/tag/v0.0.24).

A number of GitHub APIs are being turned off shortly, so you need to upgrade or various uncertain outcomes will occur.

There's a new accessibility forbidden pattern:

> Do not use `(click) here` links
> For more information, see:
> * https://www.w3.org/QA/Tips/noClickHere
> * https://webaim.org/techniques/hypertext/link_text
> * https://granicus.com/blog/why-click-here-links-are-bad/
> * https://heyoka.medium.com/dont-use-click-here-f32f445d1021
```pl
(?i)(?:>|\[)(?:(?:click |)here|link|(?:read |)more)(?:</|\]\()
```

There are some minor bugs that I'm aware of and which I've fixed since this release, but I don't expect to make another release this month.

I've added a pair of patterns for includes and pragmas. My argument is that the **compiler** will _generally_ tell you if you've misspelled an include and the **linker** will _generally_ tell you if you misspell a lib.

- There's a caveat here: If your include case-insensitively matches the referenced file (but doesn't properly match it), then unless you either use a case-sensitive file system (as opposed to case-preserving) or beg clang to warn, you won't notice when you make this specific mistake -- this matters in that a couple of Windows headers (e.g. Unknwn.h) have particular case and repositories don't tend to consistently/properly write them.

* Adjust to community.md, shifting jerry's github user name (#36242)

Update COMMUNITY.md

* [AOT compatible] Resolve AOT Build Error in Peek.UI (#36194)

* add partial for aot support

* add Microsoft.NET.ILLink.Tasks to packages.props

* format

* Revert "format"

This reverts commit 742d5e2214.

* add Microsoft.NET.ILLink.Tasks to notice.md

* add auto reference

* update script to remove the 'Auto-reference line'

---------

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Awake Updates - `TILLSON_11272024` (#36049)

* Update with bug fixes for tray icon and support for parent process

* Process information enum

* Update the docs

* Fix spelling

* Make sure that PID is used in PT config flow

* Logic for checks based on #34148

* Update with link to PR

* Fixes #34717

* Small cleanup

* Proper task segmentation in a function

* Cleanup the code

* Fix synchronization context issue

* Update planning doc

* Test disabling caching to see if that manages to pass CI

* Cleanup to make sure that we're logging things properly.

* Update ci.yml

* Disable cache to pass CI

* Retry logic

* Cleanup

* Code cleanup

* Fixes #35848

* Update notes and codename

* After third attempt, log error instead of throwing exception

* More cleanup to avoid double execution

* Add expected word

* Safeguards for bad values for timed keep-awake

* More updates to make sure I am using uint

* Update error message

* Update packages

* Fix notice and revert CsWinRT upgrade

* Codename update

* Update expect.txt

* Update the struct

* Ensuring we're properly awaiting tray initialization

* Update to make sure tray reflects the bound process

* Cleanup, proper JSON serialization for logs.

* Not needed.

* Add command validation logic

* Moving the initialization logic earlier

* Make sure we show the display state in the tooltip

* Update tray string

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update logic for icon resets

* Update doc

* Simplify function for setting mode shell icon

* Issues should be properly linked

* Minor cleanup

* Update timed behavior

---------

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>

* [Workspaces] detecting right app version (#36100)

* [Workspaces] Add move functionality

* spell checker

* [Workspaces] Modify Arranger to move apps without launch

* moved ipc helper

* removed callback

* use LauncherStatus in WindowArranger

* wait for launching next app

* launch in a separate thread and protect by mutexes

* update app version in advance

* changed canceling launch

* increased waiting time

* Fix optional parameter load from json

* changed arranger waiting time

* additional waiting time for Outlook

* added app id

* ensure ids before launch

* set id in editor

* minor updates

* [Workspaces] Move: Get the nearest window when moving a window

* [Workspaces] convert optional boolean to enum to avoid json problems

* Handle case when the new Application Property "moveIfExists" does not exist

* Re-implementing app-window pairing for moving feature.

* spell checker

* XAML formatting

* Fixing bug: IPC message not arriving

* spell checker

* Removing app-level-setting for move app. Also fixed compiler errors due styling.

* Updating editor window layout

* Re-implementing window positioning UI elements

* XAML formatting

* Code review findings

* Code cleanup

* Code cleanup

* Code cleanup

* code cleanup

* Code cleanup

* Code cleanup

* [Workspaces] fix detection of specific version of apps

---------

Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: donlaci <donlaci@yahoo.com>

* Move the XamlStyler config to src/ (#36202)

my never ending goal to minimize files in the root dir

* [AdvancedPaste]Add Semantic Kernel opt-in to allow chaining of paste actions (#35902)

* [AdvancedPaste] Semantic Kernel support

* Changed log-line with potentially sensitive info

* Spellcheck issues

* Various improvements for Semantic Kernel

* Spellcheck issue

* Refactored Clipboard routines

* Added integration tests for KernelService

* Extra telemetry for AdvancedPaste

* Added 'Hotkey' suffix to AdvancedPaste_Settings telemetry event

* Added IsSavedQuery

* Added KernelQueryCache

* Refactoring

* Added KernelQueryCache to BugReportTool delete list

* Added opt-n for Semantic Kernel

* Fixed bug with KernelQueryCache

* Ability to view last AI chat message on error

* Improved kernel query cache

* Used System.IO.Abstractions and improved tests

* Fixed under-count of token usage

* Used Semantic Kernel icon

* Cleanup

* Add missing EndProject line

* Fix dependency version conflicts

* Fix NOTICE.md

* Correct place of SemanticKernel in NOTICE.md

* Unlinked CustomPreview toggle from AI

* Added Microsoft.Bcl.AsyncInterfaces dependency to AdvancedPaste

* Fixed NOTICE.md order

* Moved Custom Preview to behaviour section

* Made Image to Text raise error on empty output

* Added AIServiceBatchIntegrationTests

* Updated AIServiceBatchIntegrationTests

* Added prompt moderation

* Moved GPO Infobar to better location

* [Launcher]Port from WPF-UI to .NET 9 WPF (#36215)

* Initial implementation

* Fix fluent style

* Fix no endline

* Update expect.txt

* Fix formatting

* Fix light theme looking bad on Windows 10

* fix formatting

* test change

* Now really fixed W10

* Add a comment

* Fix typos

* Fix spellcheck errors

* Fix spellcheck pattern for websites

* Change patterns for spellcheck in the right file

* Fix XAML styling

* Fix contrast colors on W11

* Fix formatting

* Removed emty line

* Fix formatting

* Added comment to fluentHC file

* fix comment

* Fix Windows10 again.
Adress feedback.

* W11 fix chaning from high contrast to normal not having correct background

* W10 Fix high contrast not working after switching from light/dark moed

* Address feedback

* Fix formatting

* Second W11 fix chaning from high contrast to normal not having correct background

* [UX]Updating New+ and Settings icons (#36290)

* Updated icons

* Updating more icons and icos

* [Settings][Dashboard] Accessibility fixes (#36280)

* make narrator announce buttons/toggles

* add toggles module name

* [ci]Sign OpenAI dll that's not signed (#36299)

* Update CODEOWNERS to include gordon, jerry and kayla (#36308)

* Update CODEOWNERS

* Update names.txt

* Making the powertoys-code-owners team code owners (#36310)

* Update CODEOWNERS

* Update names.txt

* Update CODEOWNERS

* [FZEditor]Fix Create new layout dialog radio buttons IsChecked values  (#36320)

* 0.87 changelog (#36335)

* 0.87 changelog

* Fix spellcheck

* Update README.md

Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

---------

Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

* [PTRun]Fix WPF transparent border issue on Windows 10 (#36392)

* Added border on W10

* Added a comment

---------
Co-authored-by: Davide Giacometti <25966642+davidegiacometti@users.noreply.github.com>

* [PTRun]Fix .NET 9 crash in OneNote (#36417)

* Fix crash in OneNote Run

* added better comment

* [AdvancedPaste]Fix NullReferenceException on Dispose (#36428)

[AdvancedPaste] Fixed NullReferenceException on Dispose

* [Fuzz] Add fuzz testing for AdvancedPaste and new pipeline for onboarding OneFuzz (#36329)

* add fuzz

* install .net8

* add spelling check

* refine the pipeline

* add readme and update the test code

* fix spelling error

* change to weekly run

* Add New CI Pipeline for Latest WindowsAppSDK (#36282)

This PR introduces the following changes to the CI pipeline and version management:

Pipeline Enhancements:
1. Added a new script UpdateVersions.ps1 to automate the update of Microsoft.WindowsAppSDK versions across various project files.
2. Introduced a new pipeline configuration ci-using-the-latest-winappsdk.yml to build using the latest Microsoft.WindowsAppSDK.
3. Updated existing pipeline configurations to support the new useLatestWinAppSDK parameter.

Pipeline Configuration Updates:
1. Updated job-build-project.yml to handle the useLatestWinAppSDK parameter and adjust the RestoreAdditionalProjectSourcesArg accordingly.
2. Added a new template steps-update-winappsdk-and-restore-nuget.yml for updating and restoring NuGet packages with the latest Microsoft.WindowsAppSDK.
3. Added WinAPPSDK version selection, the pipeline can be manually triggered to use the specified version.

---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>

* [AOT compatible] Make HostsUILib become AOT compatible (#36136)

* Remove AOT configuration

* Refer to AOT compatibility props

---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>

* [AOT compatible] Clean up some AOT build issue in FilePreviewCommon and MarkdownPreviewHandler (#36207)

* Use AppContext.BaseDirectory to replace assembly.GetExeAseembly.Location.
Fix json serilizer aot issue.

* clean up some AOT build issue

* Update src/modules/previewpane/MarkdownPreviewHandler/MarkdownPreviewHandlerControl.cs

Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

* Update src/common/FilePreviewCommon/Formatters/JsonFormatter.cs

Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>
Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

* Add new pipeline using the latest webview2 from Edge Canary (#36317)

* using the latest webview2 for testing


---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>

* [Bug fix] Making the OpenAI key configuration page scrollable. (#36359)

* Fixed #34470

---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>

* [Bug fix] Add a format validation step before format conversion. (#36404)

This PR aims to fix the bug #35225 by introducing a new method IsJson to determine if a given text is in JSON format.
The IsJson method is then utilized in the ToJsonFromXmlOrCsvAsync method to optimize the processing logic.
If the text is already in JSON format, it is returned directly without further conversion from XML or CSV.

Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>
Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

* Add more STCA team members (#36438)

* Add more STCA team members

* Include more spelling check errors

* Remove non-alpha in dictionary

* Add Zhaopeng Wang

* Fix spell checking error

* Remove "prerelease: true" (#36484)

* Remove "prerelease: true"

The Microsoft.WinGet.DSC module is GA so prerelease: true is no longer needed.

* Update expect.txt

fixing spellcheck warning

---------

Co-authored-by: Clint Rutkas <clint@rutkas.com>

* [Docs]Update README for 0.87.1 release (#36534)

* [CI] Enhance build Pipeline Reliability with Retry Logic and Improved Error Messaging (#36529)

* update pipeline with retry

* remove tests

* Add team member (#36590)

* [New+]Don't override New actions from Explorer on Windows 10 (#36467)

* [New+]Don't override New actions from Explorer

* Update src/modules/NewPlus/NewShellExtensionContextMenu.win10/shell_context_menu_win10.cpp

* Update src/modules/NewPlus/NewShellExtensionContextMenu.win10/shell_context_menu_win10.cpp

* Add pattern for learn.microsoft links

* Also only Query for context menu

* [PTRun][Calculator]Handle hexadecimal numbers to not return divide by 0 error (#36390)

* add '0x' handling for divide by 0 scenarios

* fix comment on division by 0 check

---------

Co-authored-by: Connor Plante <connor.plante@gmail.com>

* [TextExtractor]Minor UI/Accessibility fixes in the overlay UI (#36356)

minor UI and accessibility fixes

* [PTRun][Calculator]Update mages to v3.0.0 and support for `randi(n)` (#36560)

* update to mages 3.0.0

* allow randi() in calculator plugin

* fix tests and input validation

* fix spell check

* [QuickAccent]Added ć for Slovenian (#36336) (#36338)

* Fix snapping Workspaces Editor to Fancy Zones (#36463)

* Remove Workspaces Editor from Fancy Zone's excluded app list

* removed unused string

---------

Co-authored-by: Seraphima <zykovas91@gmail.com>

* [PTRun]Fix drag on .NET 9 WPF (#36635)

* [CQ]Continued to move stuff out of root - Solution.props (#36244)

* [QuickAccent]Add Proto-Indo-European (#36408)

* Add ḱ to PowerAccent for Proto-Indo-European

* Fix Spelling Check

* Add more letters to PIE

* Order PIE after PI

---------

Co-authored-by: Hao Liu (from Dev Box) <haoliu3@microsoft.com>
Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* [PTRun]Add context buttons for VSCodeWorkspaces plugin (#36517)

* [Settings][QuickAccent]Change 'character set' to plural form (#36565)

* [PTRun][Calculator]Fix unit tests on non-english systems (#36569)

* fix tests

* update comment

* [PTRun][Calc]Improve handling of non-base 10 numbers (#36700)

* [Settings][PTRun]Show plugin version and website (#36580)

* [Monaco]Add support for .resx and .resw preview support. (#36499)

Added support for .resx and .resw preview support. These files are XML based files so I added the file extensions as part of the registerAdditionalLanguage("xmlExt"...) function.

* [Settings] Add Workspaces' workspaces.json file to backup/restore list (#36714)

* [Localization] Fix loc pipeline to send downloaded localized files to TDBuild upon retry after failure (#36766)

* [AdvancedPaste]Fixed issues with Screen Reader integration (#36778)

* Remove Advent calendar from README (#36777)

* Remove Advent calendar from README

* Update hero image

* Delete doc/images/overview/PT_holiday_hero_image.png

* [AdvancedPaste]Add all BitmapDecoder supported image filetypes to ImageToText (#35600)

Adds support to ImageToText for all image filetypes supported by BitmapDecoder.

* [AOT]Clean up some AOT build issues in PowerAccent.Core (#36264)

* init

* Use AotCompatibility instead

* Replace typeof(Lanaguge) with GetValues<Language>

* Create new folder to place source generation context file.

---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>

* [WinUI3]Fix Windows 10 title bar borders (#36429)

* Fix borders for windows in the Settings UI

* Fix HOSTS window

* Fix Advanced Paste

* Fix Environment Variables

* Fix File Locksmith

* Fix Peek, with a caveat

* Fix Registry Preview

* Remove unused imports

* Clean up imports in OobeShellPage

* Move OSVersionHelper from Common.UI up into ManagedCommon

* [QuickAccent]Fix unstable language loading (#36721)

* [Peek]Bring into foreground if previously minimized (#36506)

Added Activate() to bring Peek.UI window into focus upon Toggle. This allows the UI to be presented even if it was previously minimized.

* Update Run docs README (#36857)

* Update Run docs README

* Remove System dupe

* [Monaco]Make minimap toggleable (#33742)

* [Monaco]Fix Json format preview setting (#36867)

* [KBM]Added option for exact match shortcut (#36000)

* Added option for exact match shortcut

* Fix spell-check

* [Deps][Security]Update .NET Packages from 9.0.0 to 9.0.1  (#36879)

* [Deps] Update NuGet packages to version 9.0.1

Updated several NuGet packages from version 9.0.0 to 9.0.1, including:
- Microsoft.Data.Sqlite
- Microsoft.Bcl.AsyncInterfaces
- Microsoft.Extensions.DependencyInjection
- Microsoft.Extensions.Logging
- Microsoft.Extensions.Logging.Abstractions
- Microsoft.Extensions.Hosting
- Microsoft.Extensions.Hosting.WindowsServices
- Microsoft.Win32.SystemEvents
- Microsoft.Windows.Compatibility
- System.CodeDom
- System.ComponentModel.Composition
- System.Configuration.ConfigurationManager
- System.Data.OleDb
- System.Diagnostics.EventLog
- System.Diagnostics.PerformanceCounter
- System.Drawing.Common
- System.Management
- System.Runtime.Caching
- System.ServiceProcess.ServiceController
- System.Text.Encoding.CodePages
- System.Text.Json

* [Deps] Update NOTICE.md

* [Peek]Fix using the correct Monaco assets at runtime (#36890)

* [Workspaces] fixing bug: editor starts outside of visible desktop area (#36769)

* [Workspaces] fixing bug: editor starts outside of visible desktop area

* Update src/modules/Workspaces/WorkspacesEditor/MainWindow.xaml.cs

Co-authored-by: Seraphima Zykova <zykovas91@gmail.com>

---------

Co-authored-by: Seraphima Zykova <zykovas91@gmail.com>

* [Workspaces] Saving app properties on launch and recapture (#36751)

* [Workspaces] Implementing set and get GUID to/from HWND to distinguish windows moved by the Workspaces tool

* After launch and capture copy the CLI args from the "original" project

* Fix getting GUID

* spell check

* modification to be able to handle different data sizes on different systems

* code optimisation

* Replacing string parameter by InvokePoint

* renaming variable

* [AdvancedPaste]Use background thread for interactions between runner and Advanced Paste (#36858)

* [Advanced Paste] Use background thread for runner-Advanced Paste interaction

* Fixed typo

* [VCM]Deprecate the Video Conference Mute utility (#36772)

* Remove all VideoConferenceMute related code and files

* Clean up vcm driver registry keys

* Also remove the Webcam report tool

* Also clean out video conference on the installer

* Fix spellcheck

* Remove comment about video conf

* Update gpo files revision

* Revert removing the VCM policies

* Deprecate VCM GPO policy

* Change deprecation message to show first supported version

* Tweak supported strings in the adml

* Goodbye friends, you are forever part of the team (#36905)

* Goodbye friends

Forever part of the team 😢

* Update COMMUNITY.md

* Fix formatting issues in COMMUNITY.md

* [New utility]Sysinternals ZoomIt (#35880)

* ZoomIt initial code dump

* Change vcxproj to normalize dependency versions

* Fix code quality to build

* Add to PowerToys solution

* Clean out C-style casts

* Fix some more analyzer errors

* Constexpr a function

* Disable some warnings locally that it seemed better not to touch

* Add ZoomIt module interface

* Add GPO

* Add Settings page with Enable button

* Output as PowerToys.ZoomIt.exe

* Extract ZoomIt Settings definition to its own header

* Make ZoomItModuleInterface build with ZoomItSettings too

* WinRT C++ interop for ZoomItSettings

* From Registry To PowerToys Json

* Properly fix const_cast analyzer error

* Initial Settings page loading from registry

* Zoom mode settings

* Save settings

* Add file picker and DemoType file support

* Remaining DemoType settings

* Have ZoomIt properly reloading Settings and exiting

* Remove context menu entries for Options and Exit

* ZoomIt simple Break Options

* Break advanced options

* Simple Record settings

* Record Microphone setting

* Fix break background file picker title

* Font setting

* Fix build issues after merge

* Add ZoomIt conflict warning to Settings

* Exclude Eula from spell checking

* Fix spellcheck errors

* Fix spell check for accelerated menu items

* Remove cursor files from spellcheck. They're binary

* Fix forbidden patterns

* Fix XAML style

* Fix C# analyzers

* Fix signing

* Also sign module interface dll

* Use actual ZoomIt icon

* Add OOBE page for ZoomIt

* ZoomIt image for Settings

* Flyout and Dashboard entries

* Fix type speed slider labels

* Correctly load default Font

* Correctly register shortcuts on ZoomIt startup first run

* Fix modifier keys not changing until restart

* Show MsgBox on taken shortcut

* Start PowerToys Settings

* Normalize ZoomIt file properties with rest of PowerToys

* Add attribution

* Add ZoomIt team to Community.md

* More copyright adjustments

* Fix spellcheck

* Fix MsgBox simultaneous instance to the front

* Add mention of capturevideosample code use

* Add ZoomIt to process lists

* Add telemetry

* Add logging

* React to gpo

* Normalize code to space identation

* Fix installer build

* Localize percent setting

* Fix XAML styling

* Update src/settings-ui/Settings.UI/Strings/en-us/Resources.resw

Co-authored-by: Stefan Markovic <57057282+stefansjfw@users.noreply.github.com>

* Fix spellcheck

* One more spellcheck fix

* Integrate LiveDraw feature changes from upstream

* Fix name reuse in same scope

* Fix c-style casts

* Also register LIVEDRAW_HOTKEY

* Fix newLiveZoomToggleKey

* Update LiveZoom description in Settings to take LiveDraw into account

* Fix spellcheck

* Fix more spellcheck

* Fix Sysinternals capitalization

* Fix ARM64 Debug build

* Support Sysinternals build (#36873)

* Remove unneeded files

* Make build compatible with Sysinternals

* Separate PowerToys ZoomIt product name (#36887)

* Separate PowerToys ZoomIt product name

To help maintain the Sysinternals branding in the standalone version.

* Clarify branding-related includes

* Remove ZoomIt.sln

* Add foxmsft to spell-check names

* Add ZoomIt to README

* Add ZoomIt to GH templates

* Add ZoomIt events to DATA_AND_PRIVACY.md

* Remove publish_config.json

* Remove publish_config.json from vcxproj too

---------

Co-authored-by: Mark Russinovich <markruss@microsoft.com>
Co-authored-by: Alex Mihaiuc <69110671+foxmsft@users.noreply.github.com>
Co-authored-by: John Stephens <johnstep@microsoft.com>
Co-authored-by: Stefan Markovic <57057282+stefansjfw@users.noreply.github.com>

* [PTRun]Add hotkey to the show telemetry event (#36869)

* [PTRun]Update the code for .NET 9.0.1 - remove workarounds (#36909)

* Revove some unneeded changes after pdating to .net9.1

* [RegistryPreview]Copy context menu, data tooltip, MULTI_SZ fix (#36631)

* add context menus

* string resources for contextmenu

* fix line break parsing for MULTI_SZ

* better presentation of multiline values and value tooltip

* cleanup

* [MWB] - refactoring "Common" classes - Common.Log.cs, Common.Receiver.cs (#35726)

* [PTRun]Add setting for different trigonometric units in Calculator (#36717)

* Added angle units to PowerToys Run Calculator plugin.

* Update Resources.resx

* Added GitHub SpellCheck rule for 'gradians'.

---------

Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

* [ci]Remove steps to build abstracted utilities packages (#36934)

* [Settings]Update GPO infobar icon, improve some pages and fix bugs (#33703)

* changes part 1

* fix xaml code

* changes part 2

* fix cmdNotFound page

* Update PowerOcrPage

* More Pages changed

* More Pages changed

* revert temporary change

* fix spelling

* add resw comment

* add resw comment

* Update MouseWihtoutBorderPage.xaml

* PowerPreview page

* workspaces page

* fix awake page gpo handling

* NewPlus page

* update new+ page!

* AdvancedPaste.xaml: Move Info bar.

* Update MouseJumpPanel.xaml

* Update GeneralPage.xaml

* fix position of info bar and some ui quirks

* fix xaml style

* fix string resources

* string changes

* prepare megre main

* update new+ page

* zoomit page

* various fixes

* [Common]NotificationUtil helper class with FileWatcher (#36720)

* add NotificationUtil helper with file watcher and cache

* fix spellcheck

* indentation

* [PTRun][Docs]Add YubicoOauthOTP to Third-Party plugins (#36761)

* [PTRun]Fixed typo in Value Generator messages (#36951)

* [AOT] Clean up some AOT issues in Advanced Paste module (#36297)

* Clean up the aot build issue.

* Merge main and clean up new AOT build issue

* Update LogEvent define.

* Update src/modules/AdvancedPaste/AdvancedPaste/Helpers/LogEvent.cs

Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

* update typo bug

* Remove unused allow list item

* Create a new folder to place source generation context

* Merge main and rename LogEvent to AIServiceFormatEvent

---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>
Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

* xaml format

* [check-spelling] Update metadata

Update for https://github.com/zadjii-msft/PowerToys/actions/runs/12884838755/attempts/1
Accepted in https://github.com/zadjii-msft/PowerToys/pull/346#issuecomment-2604315393

Signed-off-by: check-spelling-bot <check-spelling-bot@users.noreply.github.com>
on-behalf-of: @check-spelling <check-spelling-bot@check-spelling.dev>

---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>
Signed-off-by: check-spelling-bot <check-spelling-bot@users.noreply.github.com>
Co-authored-by: Laszlo Nemeth <57342539+donlaci@users.noreply.github.com>
Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: donlaci <donlaci@yahoo.com>
Co-authored-by: Ionuț Manța <ionut@janeasystems.com>
Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>
Co-authored-by: Ani <115020168+drawbyperpetual@users.noreply.github.com>
Co-authored-by: PesBandi <127593627+PesBandi@users.noreply.github.com>
Co-authored-by: Wenjian Chern <55335597+Sophanatprime@users.noreply.github.com>
Co-authored-by: Youssef Victor <youssefvictor00@gmail.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>
Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Co-authored-by: leileizhang <leilzh@microsoft.com>
Co-authored-by: Den Delimarsky 🔐 <sign@den.dev>
Co-authored-by: Niels Laute <niels.laute@live.nl>
Co-authored-by: Davide Giacometti <25966642+davidegiacometti@users.noreply.github.com>
Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>
Co-authored-by: Shuai Yuan <128874481+shuaiyuanxx@users.noreply.github.com>
Co-authored-by: moooyo <42196638+moooyo@users.noreply.github.com>
Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>
Co-authored-by: Jerry Xu <n.xu@outlook.com>
Co-authored-by: Demitrius Nelon <denelon@microsoft.com>
Co-authored-by: Kai Tao <69313318+vanzue@users.noreply.github.com>
Co-authored-by: Connor Plante <150482134+plante-msft@users.noreply.github.com>
Co-authored-by: Connor Plante <connor.plante@gmail.com>
Co-authored-by: Domen Soklič <soklicd@gmail.com>
Co-authored-by: Hao Liu <liuhaobupt@163.com>
Co-authored-by: Hao Liu (from Dev Box) <haoliu3@microsoft.com>
Co-authored-by: immi <iafullprogrammer@gmail.com>
Co-authored-by: Asif Islam <77113884+asif4318@users.noreply.github.com>
Co-authored-by: Kayla Cinnamon <cinnamon@microsoft.com>
Co-authored-by: Dave Rayment <dave.rayment@gmail.com>
Co-authored-by: Neil McAlister <pingzing@users.noreply.github.com>
Co-authored-by: Mark Russinovich <markruss@microsoft.com>
Co-authored-by: Alex Mihaiuc <69110671+foxmsft@users.noreply.github.com>
Co-authored-by: John Stephens <johnstep@microsoft.com>
Co-authored-by: Michael Clayton <mike@kingslandconsulting.co.uk>
Co-authored-by: Nathan Gill <nathan.j.gill@outlook.com>
Co-authored-by: Daniel Nilsson <daniel.nilsson1989@gmail.com>
Co-authored-by: Stefan Markovic <stefansjfw@users.noreply.github.com>
2025-01-21 14:28:51 +01:00
Stefan Markovic
0b60644c57 Xaml format (#341) 2025-01-17 14:02:21 +01:00
Mike Griese
21c6f9674e Restore a minimized window, before we summon it (#340)
Closes #327

Pretty straightforward this. Just restore the window if we're minimized.

Co-authored-by: Mike Griese <zadjii@gmail.com>
2025-01-17 06:42:06 -06:00
Jordi Adoumie
9b97db9cd8 Fix the Web Search Fallback Command (#325)
The fallback command was still showing up on empty query because we weren't explicitly setting the underlying command name to the empty string when it is empty. This is what it looked like in the root view: 

![image](https://github.com/user-attachments/assets/eff8249f-8acb-47ef-9529-86ebb7011811)

This is a really small PR that just fixes that issue.
2025-01-17 06:05:37 -06:00
Mike Griese
d53979bb5d Add a setting that controls if we go back home when summoned or not (#326)
Adds a setting which controls what happens when you press the global hotkey. 

When enabled, the hotkey will bring you home when you activate the hotkey, rather than just leave the palette on the current page. 

Closes #271
2025-01-17 06:04:46 -06:00
Mike Griese
a06750b18d Add tags to show which commands have aliases (#334)
_targets #281_

Adds tags onto top-level items that have an alias assigned to them

![image](https://github.com/user-attachments/assets/de2932ca-49f2-41d4-8e86-a96d3b85f42a)

Closes #312
2025-01-17 06:04:25 -06:00
Mike Griese
b86dfab994 Use the SearchText from the extension (#319)
And the placeholder text too.

This one's mildly confusing, because we don't want the View and the Model fighting over the same exact property. Basically I just have the view be able to call the SearchText setter, and the model's PropChanged is listened to by the View. They shouldn't fight too much then. 

Closes #163
Closes #112
2025-01-17 05:57:21 -06:00
Mike Griese
5873cacabe Add support for showing status messages in the host (#281)
This PR is a ton of _plumbing_. UX-wise, this is very rough. What's more important in this PR is the broad wiring this does, to connect individual pages with the `IExtension` that's hosting them. 

`CommandPaletteHost` is the important new class that we're introducing. This is the class that implements the `IExtensionHost` interface, and is the one by which extensions can use to log messages back to the host. 

There's both:
* A singleton instance of the `CommandPaletteHost`, which represents all global state,
* per-extension instances of the `CommandPaletteHost`, which allows us to know which extension a message came from. 

When we fetch a command provider, we'll create a new `CommandPaletteHost` for that extension, and connect the extension to that instance.
* Log messages from an extension go to the global list of messages, so those go to the global instance's list of `LogMessageViewModel`s		
* When an extension writes status messages, we'll add the messages to _that extension's_ `CommandPaletteHost`. 
* The `PageContext` is aware of the `CommandPaletteHost`, so it can now retrieve information about the hosting extension for that page. Since all pages for an extension share a single `CommandPaletteHost`, status messages can be shown across all the pages in that extension's context, then hidden when the user leaves that context.

This also does part of #253, because now we have a `TopLevelCommandWrapper` AND a `TopLevelCommandItemWrapper`, separately. That lets us store the `CommandPaletteHost` in the `TopLevelCommandWrapper`, which we need so that when we activate a top-level command, we can fetch the extension host out of it and give it to the pages that follow.

Also included is the "single builtin command provider" which is also in #264, because it's kinda insane to have things like "Quit", "Reload extension", "View log", things which are all _core pieces of the palette itself_, each need a separate provider. That's insane. 

I didn't add support for:
* Extensions to hide messages once they're shown
* I dunno if `PropChanged`'ing a status message works
* I didn't add support for progress bars yet, because it's NOT TRIVIAL to replace the icon of an InfoBar with a progress wheel. What the heck WinUI 😠 
* Again, this is Programmer Xaml - we'll need real designers to come around and clean this up

---------

Co-authored-by: Mike Griese <zadjii@gmail.com>
2025-01-17 05:43:17 -06:00
Mike Griese
7da291e398 Add a ctor for Tag to initialize the text (#335)
This is like, the 99% ues case, so it would be nice if this was easy.
I'm also experimenting with making fewer instances of Tag objects, to
see if that helps things. Not yet, but we'll see
2025-01-17 04:00:51 -06:00
Mike Griese
67eadef5bf Fix the tag crash (#339)
Most of my notes are in #322. This one was a journey.

The app was doing something re-entrant when we changed the selected item. It had nothing to do with `ScrollIntoView` (though, not calling that would stop the crash).

Seems like that `ItemsList_SelectionChanged` -> `UpdateSelectedItemCommand` -> `WeakReferenceMessenger.Default.Send<ShowDetailsMessage>`, all on the UI thread, seemed to really make XAML mad. And a combination of hopping to the background thread, and debouncing the `ShowDetails` call, seemed to fix it. 

Tags made it worse - presumbaly it made the XAML layout pass take longer, which widened the window for the app to think it was re-entrant

Closes #322
2025-01-17 04:00:09 -06:00
Mike Griese
8ed322cce3 Use localappdata to store settings, instead of in WindowsApps (#304)
I'm smarter than that, really. 

As described in #302. You can't write into `WindowsApps`, where actual packages are installed. Instead, you need to use the local app data path. 

This replicates logic that we've got in the Terminal, for getting the right LocalAppData path, without using Windows.Storage. Original code looks like:

```c++
_TIL_INLINEPREFIX bool IsPackaged()
{
    static const auto isPackaged = []() {
        UINT32 bufferLength = 0;
        const auto hr = GetCurrentPackageId(&bufferLength, nullptr);
        return hr != APPMODEL_ERROR_NO_PACKAGE;
    }();
    return isPackaged;
}

std::filesystem::path GetBaseSettingsPath()
{
    static auto baseSettingsPath = []() {
        /* some portable mode code we don't need */

        wil::unique_cotaskmem_string localAppDataFolder;
        // KF_FLAG_FORCE_APP_DATA_REDIRECTION, when engaged, causes SHGet... to return
        // the new AppModel paths (Packages/xxx/RoamingState, etc.) for standard path requests.
        // Using this flag allows us to avoid Windows.Storage.ApplicationData completely.
        THROW_IF_FAILED(SHGetKnownFolderPath(FOLDERID_LocalAppData, KF_FLAG_FORCE_APP_DATA_REDIRECTION, nullptr, &localAppDataFolder));

        std::filesystem::path parentDirectoryForSettingsFile{ localAppDataFolder.get() };

        if (!IsPackaged())
        {
            parentDirectoryForSettingsFile /= UnpackagedSettingsFolderName;
        }

        // Create the directory if it doesn't exist
        std::filesystem::create_directories(parentDirectoryForSettingsFile);

        return parentDirectoryForSettingsFile;
    }();
    return baseSettingsPath;
}
```

I stuck this in a `Helpers.Utilities` class, because we will not be the only ones hitting this. 

Closes #302
2025-01-17 03:58:16 -06:00
Niels Laute
b7c6c9c2df Refactoring and making Tag control actually work (#280)
This PR:
- moves the tag logic from the ListDetailsPage to the Tag control, so it can be re-used at other places as well.
- provides a default style (that can be easily be extended / overriden) that is theme aware.
- adds a BorderBrush property to the Tag viewmodel so that can be set as well

Default dark:
![image](https://github.com/user-attachments/assets/a6dca711-a750-4ed5-89fe-03686f49b104)

Default light:
![image](https://github.com/user-attachments/assets/56e0620b-b7d2-446b-b2c9-8ab9045e408f)

Pokedex:
![image](https://github.com/user-attachments/assets/fe845496-a838-4e74-8b5a-139ed38720cc)
2025-01-17 03:51:23 -06:00
Mike Griese
e0e13f5046 Fix FontIcon padding, again (#308)
When we changed icons to be a pair of IconData in an IconInfo, I forgot this type check.
Oops. Now it works again.

Originally in #265 
Regressed in #286 

(targets #308, which targets #299)

`IconData` and `IconInfo` are unfortunately, not trivially marshallable into the host process. This creates a collection of cases where an app can crash and take the host down, because we'll try to inquire something about the icon. 

It broke reloading when an extension crashed. 
It broke backing out of a crashed extension. 


Previously: #218 
Closes #235
2025-01-16 23:18:53 -06:00
Stefan Markovic
8744c79b96 Fix bad merge (#331) 2025-01-15 16:17:20 +01:00
Stefan Markovic
1b1d65ef8d Merge upstream PT #7 (#330)
* [Workspaces] implement the move feature (#35480)

* [Workspaces] Add move functionality

* spell checker

* [Workspaces] Modify Arranger to move apps without launch

* moved ipc helper

* removed callback

* use LauncherStatus in WindowArranger

* wait for launching next app

* launch in a separate thread and protect by mutexes

* update app version in advance

* changed canceling launch

* increased waiting time

* Fix optional parameter load from json

* changed arranger waiting time

* additional waiting time for Outlook

* added app id

* ensure ids before launch

* set id in editor

* minor updates

* [Workspaces] Move: Get the nearest window when moving a window

* [Workspaces] convert optional boolean to enum to avoid json problems

* Handle case when the new Application Property "moveIfExists" does not exist

* Re-implementing app-window pairing for moving feature.

* spell checker

* XAML formatting

* Fixing bug: IPC message not arriving

* spell checker

* Removing app-level-setting for move app. Also fixed compiler errors due styling.

* Updating editor window layout

* Re-implementing window positioning UI elements

* XAML formatting

* Code review findings

* Code cleanup

* Code cleanup

* Code cleanup

* code cleanup

* Code cleanup

* Code cleanup

* fix Move attribute after launch and snapshot

* Extend WindowArranger with PWA functionality to detect different PWA apps. PwaHelper moved to the common library

* fix repeat counter in the editor

* Code optimization

* code cleanup, optimization

* fix double-processing window

---------

Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: donlaci <donlaci@yahoo.com>

* [KeyboardManager]Fix mapping shift to numpad (#35890)

* Keyboard Manger fix numpad as shift

Fixed shift not being released if a numpad key as shift.

* Added comments

* Fix typo

* Fix the numpad unlocked key not working if the locked version is overridden by shift

* Fix spelling check.

* Revert the VK_CLEAR change.

---------

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* [Analyzers] Update .editorconfig with rules to relax IDE errors (#36095)

* [Analyzers] Remove duplicate pascal case style from .editorconfig

* [Analyzers] Configured severity for individual IDE and CA rules showing as errors in VS

Set severity for IDE0005, IDE0008, IDE0016, IDE0018, IDE0019, IDE0021, IDE0022, IDE0023, IDE0025, IDE0027, IDE0028, IDE0029, IDE0031, IDE0032, IDE0034, IDE0036, IDE0039, IDE0042, IDE0044, IDE0045, IDE0046, IDE0047, IDE0057, IDE0051, IDE0052, IDE0054, IDE0055, IDE0056, IDE0057, IDE0059, IDE0060, IDE0061, IDE0063, IDE0071, IDE0073, IDE0074, IDE0075, IDE0077, IDE0078, IDE0083, IDE0090, IDE0100, IDE0130, IDE160, IDE180, IDE0200, IDE0240, IDE0250, IDE0251, IDE0260, IDE0270, IDE0290, IDE0300, IDE0301, IDE0305, IDE1005, IDE1006, CA1859, CA2022, CA2263

* [Analyzers] Fix mismatched analyzer descriptions

* [Analyzers] Fix misspelling

* Update .editorconfig

Made the following style rules `silent` instead of `suggestion`: 
- Use explicit type instead of 'var'
- Use expression body for ...
- Use block-scoped namespace

* [Analyzers] Set IDE0290 to silent

* [Analyzers] Remove IDE1006 configuration from .editorconfig in favor of making exclusions for the few entries

* [Analyzers][Indexer] Add IDE1006 suppressions

* [Analyzers][Peek] Add IDE1006 suppression

* [Analyzers][MWB] Add IDE1006 suppression.

* [Analyzers][Plugins] Add IDE1006 suppression

* [Analyzers][ImageResizer] Suppress IDE0073 to retain original copyright

* [Analyzers] Remove IDE0073 severity change in .editorconfig

---------

Co-authored-by: Ani <115020168+drawbyperpetual@users.noreply.github.com>

* [Workspaces] PWA follow-up (#36217)

* [PTRun][Calculator]Allow scientific notation with lowercase 'e' (#36187)

* [Workspaces] Add encoder parameter to bitmap.save() (#36228)

* [Workspaces] Add encoder parameter to bitmap.save()

* 1 more call fixed

* Move repeated code to the csharp library

* [Workspaces] Implement store of app window's size and position (#36086)

* [Workspaces] Implement store of app window's size and position

* Modifying the default values to -1. The program will use the original default values for the first run.

* [ScreenRuler]Add setting to show the measurement in an extra unit (#35887)

* display ruler: supporting millimeter and other units

* Measurement Tool: UI Setting for an extra unit

* Update images

* spelling

* spelling

* suit code style

* Fix for code review

* remove weird file

* rename field

* [Deps]Update MSTest from 3.5.0 to 3.6.3 (#36115)

* Update MSTest from 3.5.0 to 3.6.3

* Use STA attributes that are now part of MSTest

* Adding Jerry to community.md (#36232)

Update COMMUNITY.md

* [Workspaces] Arranger: smart timer (#36096)

* [Workspaces] Add move functionality

* spell checker

* [Workspaces] Modify Arranger to move apps without launch

* moved ipc helper

* removed callback

* use LauncherStatus in WindowArranger

* wait for launching next app

* launch in a separate thread and protect by mutexes

* update app version in advance

* changed canceling launch

* increased waiting time

* Fix optional parameter load from json

* changed arranger waiting time

* additional waiting time for Outlook

* added app id

* ensure ids before launch

* set id in editor

* minor updates

* [Workspaces] Move: Get the nearest window when moving a window

* [Workspaces] convert optional boolean to enum to avoid json problems

* Handle case when the new Application Property "moveIfExists" does not exist

* Re-implementing app-window pairing for moving feature.

* spell checker

* XAML formatting

* Fixing bug: IPC message not arriving

* spell checker

* Removing app-level-setting for move app. Also fixed compiler errors due styling.

* Updating editor window layout

* Re-implementing window positioning UI elements

* XAML formatting

* Code review findings

* Code cleanup

* Code cleanup

* Code cleanup

* code cleanup

* Code cleanup

* Code cleanup

* [Workspaces] Arranger: Reset wait timer after each successful arrange action

* fix merge error

---------

Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: donlaci <donlaci@yahoo.com>

* Upgrade to check-spelling v0.0.24 (#36235)

This upgrades to [v0.0.24](https://github.com/check-spelling/check-spelling/releases/tag/v0.0.24).

A number of GitHub APIs are being turned off shortly, so you need to upgrade or various uncertain outcomes will occur.

There's a new accessibility forbidden pattern:

> Do not use `(click) here` links
> For more information, see:
> * https://www.w3.org/QA/Tips/noClickHere
> * https://webaim.org/techniques/hypertext/link_text
> * https://granicus.com/blog/why-click-here-links-are-bad/
> * https://heyoka.medium.com/dont-use-click-here-f32f445d1021
```pl
(?i)(?:>|\[)(?:(?:click |)here|link|(?:read |)more)(?:</|\]\()
```

There are some minor bugs that I'm aware of and which I've fixed since this release, but I don't expect to make another release this month.

I've added a pair of patterns for includes and pragmas. My argument is that the **compiler** will _generally_ tell you if you've misspelled an include and the **linker** will _generally_ tell you if you misspell a lib.

- There's a caveat here: If your include case-insensitively matches the referenced file (but doesn't properly match it), then unless you either use a case-sensitive file system (as opposed to case-preserving) or beg clang to warn, you won't notice when you make this specific mistake -- this matters in that a couple of Windows headers (e.g. Unknwn.h) have particular case and repositories don't tend to consistently/properly write them.

* Adjust to community.md, shifting jerry's github user name (#36242)

Update COMMUNITY.md

* [AOT compatible] Resolve AOT Build Error in Peek.UI (#36194)

* add partial for aot support

* add Microsoft.NET.ILLink.Tasks to packages.props

* format

* Revert "format"

This reverts commit 742d5e2214.

* add Microsoft.NET.ILLink.Tasks to notice.md

* add auto reference

* update script to remove the 'Auto-reference line'

---------

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Awake Updates - `TILLSON_11272024` (#36049)

* Update with bug fixes for tray icon and support for parent process

* Process information enum

* Update the docs

* Fix spelling

* Make sure that PID is used in PT config flow

* Logic for checks based on #34148

* Update with link to PR

* Fixes #34717

* Small cleanup

* Proper task segmentation in a function

* Cleanup the code

* Fix synchronization context issue

* Update planning doc

* Test disabling caching to see if that manages to pass CI

* Cleanup to make sure that we're logging things properly.

* Update ci.yml

* Disable cache to pass CI

* Retry logic

* Cleanup

* Code cleanup

* Fixes #35848

* Update notes and codename

* After third attempt, log error instead of throwing exception

* More cleanup to avoid double execution

* Add expected word

* Safeguards for bad values for timed keep-awake

* More updates to make sure I am using uint

* Update error message

* Update packages

* Fix notice and revert CsWinRT upgrade

* Codename update

* Update expect.txt

* Update the struct

* Ensuring we're properly awaiting tray initialization

* Update to make sure tray reflects the bound process

* Cleanup, proper JSON serialization for logs.

* Not needed.

* Add command validation logic

* Moving the initialization logic earlier

* Make sure we show the display state in the tooltip

* Update tray string

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update logic for icon resets

* Update doc

* Simplify function for setting mode shell icon

* Issues should be properly linked

* Minor cleanup

* Update timed behavior

---------

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>

* [Workspaces] detecting right app version (#36100)

* [Workspaces] Add move functionality

* spell checker

* [Workspaces] Modify Arranger to move apps without launch

* moved ipc helper

* removed callback

* use LauncherStatus in WindowArranger

* wait for launching next app

* launch in a separate thread and protect by mutexes

* update app version in advance

* changed canceling launch

* increased waiting time

* Fix optional parameter load from json

* changed arranger waiting time

* additional waiting time for Outlook

* added app id

* ensure ids before launch

* set id in editor

* minor updates

* [Workspaces] Move: Get the nearest window when moving a window

* [Workspaces] convert optional boolean to enum to avoid json problems

* Handle case when the new Application Property "moveIfExists" does not exist

* Re-implementing app-window pairing for moving feature.

* spell checker

* XAML formatting

* Fixing bug: IPC message not arriving

* spell checker

* Removing app-level-setting for move app. Also fixed compiler errors due styling.

* Updating editor window layout

* Re-implementing window positioning UI elements

* XAML formatting

* Code review findings

* Code cleanup

* Code cleanup

* Code cleanup

* code cleanup

* Code cleanup

* Code cleanup

* [Workspaces] fix detection of specific version of apps

---------

Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: donlaci <donlaci@yahoo.com>

* Move the XamlStyler config to src/ (#36202)

my never ending goal to minimize files in the root dir

* [AdvancedPaste]Add Semantic Kernel opt-in to allow chaining of paste actions (#35902)

* [AdvancedPaste] Semantic Kernel support

* Changed log-line with potentially sensitive info

* Spellcheck issues

* Various improvements for Semantic Kernel

* Spellcheck issue

* Refactored Clipboard routines

* Added integration tests for KernelService

* Extra telemetry for AdvancedPaste

* Added 'Hotkey' suffix to AdvancedPaste_Settings telemetry event

* Added IsSavedQuery

* Added KernelQueryCache

* Refactoring

* Added KernelQueryCache to BugReportTool delete list

* Added opt-n for Semantic Kernel

* Fixed bug with KernelQueryCache

* Ability to view last AI chat message on error

* Improved kernel query cache

* Used System.IO.Abstractions and improved tests

* Fixed under-count of token usage

* Used Semantic Kernel icon

* Cleanup

* Add missing EndProject line

* Fix dependency version conflicts

* Fix NOTICE.md

* Correct place of SemanticKernel in NOTICE.md

* Unlinked CustomPreview toggle from AI

* Added Microsoft.Bcl.AsyncInterfaces dependency to AdvancedPaste

* Fixed NOTICE.md order

* Moved Custom Preview to behaviour section

* Made Image to Text raise error on empty output

* Added AIServiceBatchIntegrationTests

* Updated AIServiceBatchIntegrationTests

* Added prompt moderation

* Moved GPO Infobar to better location

* [Launcher]Port from WPF-UI to .NET 9 WPF (#36215)

* Initial implementation

* Fix fluent style

* Fix no endline

* Update expect.txt

* Fix formatting

* Fix light theme looking bad on Windows 10

* fix formatting

* test change

* Now really fixed W10

* Add a comment

* Fix typos

* Fix spellcheck errors

* Fix spellcheck pattern for websites

* Change patterns for spellcheck in the right file

* Fix XAML styling

* Fix contrast colors on W11

* Fix formatting

* Removed emty line

* Fix formatting

* Added comment to fluentHC file

* fix comment

* Fix Windows10 again.
Adress feedback.

* W11 fix chaning from high contrast to normal not having correct background

* W10 Fix high contrast not working after switching from light/dark moed

* Address feedback

* Fix formatting

* Second W11 fix chaning from high contrast to normal not having correct background

* [UX]Updating New+ and Settings icons (#36290)

* Updated icons

* Updating more icons and icos

* [Settings][Dashboard] Accessibility fixes (#36280)

* make narrator announce buttons/toggles

* add toggles module name

* [ci]Sign OpenAI dll that's not signed (#36299)

* Update CODEOWNERS to include gordon, jerry and kayla (#36308)

* Update CODEOWNERS

* Update names.txt

* Making the powertoys-code-owners team code owners (#36310)

* Update CODEOWNERS

* Update names.txt

* Update CODEOWNERS

* [FZEditor]Fix Create new layout dialog radio buttons IsChecked values  (#36320)

* 0.87 changelog (#36335)

* 0.87 changelog

* Fix spellcheck

* Update README.md

Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

---------

Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

* [PTRun]Fix WPF transparent border issue on Windows 10 (#36392)

* Added border on W10

* Added a comment

---------
Co-authored-by: Davide Giacometti <25966642+davidegiacometti@users.noreply.github.com>

* [PTRun]Fix .NET 9 crash in OneNote (#36417)

* Fix crash in OneNote Run

* added better comment

* [AdvancedPaste]Fix NullReferenceException on Dispose (#36428)

[AdvancedPaste] Fixed NullReferenceException on Dispose

* [Fuzz] Add fuzz testing for AdvancedPaste and new pipeline for onboarding OneFuzz (#36329)

* add fuzz

* install .net8

* add spelling check

* refine the pipeline

* add readme and update the test code

* fix spelling error

* change to weekly run

* Add New CI Pipeline for Latest WindowsAppSDK (#36282)

This PR introduces the following changes to the CI pipeline and version management:

Pipeline Enhancements:
1. Added a new script UpdateVersions.ps1 to automate the update of Microsoft.WindowsAppSDK versions across various project files.
2. Introduced a new pipeline configuration ci-using-the-latest-winappsdk.yml to build using the latest Microsoft.WindowsAppSDK.
3. Updated existing pipeline configurations to support the new useLatestWinAppSDK parameter.

Pipeline Configuration Updates:
1. Updated job-build-project.yml to handle the useLatestWinAppSDK parameter and adjust the RestoreAdditionalProjectSourcesArg accordingly.
2. Added a new template steps-update-winappsdk-and-restore-nuget.yml for updating and restoring NuGet packages with the latest Microsoft.WindowsAppSDK.
3. Added WinAPPSDK version selection, the pipeline can be manually triggered to use the specified version.

---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>

* [AOT compatible] Make HostsUILib become AOT compatible (#36136)

* Remove AOT configuration

* Refer to AOT compatibility props

---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>

* [AOT compatible] Clean up some AOT build issue in FilePreviewCommon and MarkdownPreviewHandler (#36207)

* Use AppContext.BaseDirectory to replace assembly.GetExeAseembly.Location.
Fix json serilizer aot issue.

* clean up some AOT build issue

* Update src/modules/previewpane/MarkdownPreviewHandler/MarkdownPreviewHandlerControl.cs

Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

* Update src/common/FilePreviewCommon/Formatters/JsonFormatter.cs

Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>
Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>

* Add new pipeline using the latest webview2 from Edge Canary (#36317)

* using the latest webview2 for testing


---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>

* [Bug fix] Making the OpenAI key configuration page scrollable. (#36359)

* Fixed #34470

---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>

* [Bug fix] Add a format validation step before format conversion. (#36404)

This PR aims to fix the bug #35225 by introducing a new method IsJson to determine if a given text is in JSON format.
The IsJson method is then utilized in the ToJsonFromXmlOrCsvAsync method to optimize the processing logic.
If the text is already in JSON format, it is returned directly without further conversion from XML or CSV.

Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>
Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

* Add more STCA team members (#36438)

* Add more STCA team members

* Include more spelling check errors

* Remove non-alpha in dictionary

* Add Zhaopeng Wang

* Fix spell checking error

* Remove "prerelease: true" (#36484)

* Remove "prerelease: true"

The Microsoft.WinGet.DSC module is GA so prerelease: true is no longer needed.

* Update expect.txt

fixing spellcheck warning

---------

Co-authored-by: Clint Rutkas <clint@rutkas.com>

* [Docs]Update README for 0.87.1 release (#36534)

* [CI] Enhance build Pipeline Reliability with Retry Logic and Improved Error Messaging (#36529)

* update pipeline with retry

* remove tests

* Add team member (#36590)

* [New+]Don't override New actions from Explorer on Windows 10 (#36467)

* [New+]Don't override New actions from Explorer

* Update src/modules/NewPlus/NewShellExtensionContextMenu.win10/shell_context_menu_win10.cpp

* Update src/modules/NewPlus/NewShellExtensionContextMenu.win10/shell_context_menu_win10.cpp

* Add pattern for learn.microsoft links

* Also only Query for context menu

* [PTRun][Calculator]Handle hexadecimal numbers to not return divide by 0 error (#36390)

* add '0x' handling for divide by 0 scenarios

* fix comment on division by 0 check

---------

Co-authored-by: Connor Plante <connor.plante@gmail.com>

* [TextExtractor]Minor UI/Accessibility fixes in the overlay UI (#36356)

minor UI and accessibility fixes

* [PTRun][Calculator]Update mages to v3.0.0 and support for `randi(n)` (#36560)

* update to mages 3.0.0

* allow randi() in calculator plugin

* fix tests and input validation

* fix spell check

* [QuickAccent]Added ć for Slovenian (#36336) (#36338)

* Fix snapping Workspaces Editor to Fancy Zones (#36463)

* Remove Workspaces Editor from Fancy Zone's excluded app list

* removed unused string

---------

Co-authored-by: Seraphima <zykovas91@gmail.com>

* [PTRun]Fix drag on .NET 9 WPF (#36635)

* [CQ]Continued to move stuff out of root - Solution.props (#36244)

* [QuickAccent]Add Proto-Indo-European (#36408)

* Add ḱ to PowerAccent for Proto-Indo-European

* Fix Spelling Check

* Add more letters to PIE

* Order PIE after PI

---------

Co-authored-by: Hao Liu (from Dev Box) <haoliu3@microsoft.com>
Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* [PTRun]Add context buttons for VSCodeWorkspaces plugin (#36517)

* [Settings][QuickAccent]Change 'character set' to plural form (#36565)

* [PTRun][Calculator]Fix unit tests on non-english systems (#36569)

* fix tests

* update comment

* [PTRun][Calc]Improve handling of non-base 10 numbers (#36700)

* [Settings][PTRun]Show plugin version and website (#36580)

* [Monaco]Add support for .resx and .resw preview support. (#36499)

Added support for .resx and .resw preview support. These files are XML based files so I added the file extensions as part of the registerAdditionalLanguage("xmlExt"...) function.

* [Settings] Add Workspaces' workspaces.json file to backup/restore list (#36714)

* [Localization] Fix loc pipeline to send downloaded localized files to TDBuild upon retry after failure (#36766)

* [AdvancedPaste]Fixed issues with Screen Reader integration (#36778)

* Remove Advent calendar from README (#36777)

* Remove Advent calendar from README

* Update hero image

* Delete doc/images/overview/PT_holiday_hero_image.png

* [AdvancedPaste]Add all BitmapDecoder supported image filetypes to ImageToText (#35600)

Adds support to ImageToText for all image filetypes supported by BitmapDecoder.

* [AOT]Clean up some AOT build issues in PowerAccent.Core (#36264)

* init

* Use AotCompatibility instead

* Replace typeof(Lanaguge) with GetValues<Language>

* Create new folder to place source generation context file.

---------

Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>

* [WinUI3]Fix Windows 10 title bar borders (#36429)

* Fix borders for windows in the Settings UI

* Fix HOSTS window

* Fix Advanced Paste

* Fix Environment Variables

* Fix File Locksmith

* Fix Peek, with a caveat

* Fix Registry Preview

* Remove unused imports

* Clean up imports in OobeShellPage

* Move OSVersionHelper from Common.UI up into ManagedCommon

* [QuickAccent]Fix unstable language loading (#36721)

* [Peek]Bring into foreground if previously minimized (#36506)

Added Activate() to bring Peek.UI window into focus upon Toggle. This allows the UI to be presented even if it was previously minimized.

* Update Run docs README (#36857)

* Update Run docs README

* Remove System dupe

* [Monaco]Make minimap toggleable (#33742)

* [Monaco]Fix Json format preview setting (#36867)

* [KBM]Added option for exact match shortcut (#36000)

* Added option for exact match shortcut

* Fix spell-check

* [Deps][Security]Update .NET Packages from 9.0.0 to 9.0.1  (#36879)

* [Deps] Update NuGet packages to version 9.0.1

Updated several NuGet packages from version 9.0.0 to 9.0.1, including:
- Microsoft.Data.Sqlite
- Microsoft.Bcl.AsyncInterfaces
- Microsoft.Extensions.DependencyInjection
- Microsoft.Extensions.Logging
- Microsoft.Extensions.Logging.Abstractions
- Microsoft.Extensions.Hosting
- Microsoft.Extensions.Hosting.WindowsServices
- Microsoft.Win32.SystemEvents
- Microsoft.Windows.Compatibility
- System.CodeDom
- System.ComponentModel.Composition
- System.Configuration.ConfigurationManager
- System.Data.OleDb
- System.Diagnostics.EventLog
- System.Diagnostics.PerformanceCounter
- System.Drawing.Common
- System.Management
- System.Runtime.Caching
- System.ServiceProcess.ServiceController
- System.Text.Encoding.CodePages
- System.Text.Json

* [Deps] Update NOTICE.md

* Fix bad merge

* [check-spelling] Update metadata

Update for https://github.com/zadjii-msft/PowerToys/actions/runs/12790673218/attempts/1
Accepted in https://github.com/zadjii-msft/PowerToys/pull/330#issuecomment-2593053640

Signed-off-by: check-spelling-bot <check-spelling-bot@users.noreply.github.com>
on-behalf-of: @check-spelling <check-spelling-bot@check-spelling.dev>

---------

Signed-off-by: Shawn Yuan <shuai.yuan.zju@gmail.com>
Signed-off-by: check-spelling-bot <check-spelling-bot@users.noreply.github.com>
Co-authored-by: Laszlo Nemeth <57342539+donlaci@users.noreply.github.com>
Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: donlaci <donlaci@yahoo.com>
Co-authored-by: Ionuț Manța <ionut@janeasystems.com>
Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>
Co-authored-by: Ani <115020168+drawbyperpetual@users.noreply.github.com>
Co-authored-by: PesBandi <127593627+PesBandi@users.noreply.github.com>
Co-authored-by: Wenjian Chern <55335597+Sophanatprime@users.noreply.github.com>
Co-authored-by: Youssef Victor <youssefvictor00@gmail.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>
Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Co-authored-by: leileizhang <leilzh@microsoft.com>
Co-authored-by: Den Delimarsky 🔐 <sign@den.dev>
Co-authored-by: Niels Laute <niels.laute@live.nl>
Co-authored-by: Davide Giacometti <25966642+davidegiacometti@users.noreply.github.com>
Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>
Co-authored-by: Shuai Yuan <128874481+shuaiyuanxx@users.noreply.github.com>
Co-authored-by: moooyo <42196638+moooyo@users.noreply.github.com>
Co-authored-by: Yu Leng (from Dev Box) <yuleng@microsoft.com>
Co-authored-by: Jerry Xu <n.xu@outlook.com>
Co-authored-by: Demitrius Nelon <denelon@microsoft.com>
Co-authored-by: Kai Tao <69313318+vanzue@users.noreply.github.com>
Co-authored-by: Connor Plante <150482134+plante-msft@users.noreply.github.com>
Co-authored-by: Connor Plante <connor.plante@gmail.com>
Co-authored-by: Domen Soklič <soklicd@gmail.com>
Co-authored-by: Hao Liu <liuhaobupt@163.com>
Co-authored-by: Hao Liu (from Dev Box) <haoliu3@microsoft.com>
Co-authored-by: immi <iafullprogrammer@gmail.com>
Co-authored-by: Asif Islam <77113884+asif4318@users.noreply.github.com>
Co-authored-by: Kayla Cinnamon <cinnamon@microsoft.com>
Co-authored-by: Dave Rayment <dave.rayment@gmail.com>
Co-authored-by: Neil McAlister <pingzing@users.noreply.github.com>
Co-authored-by: Stefan Markovic <stefansjfw@users.noreply.github.com>
2025-01-15 16:15:09 +01:00
Stefan Markovic
d970a686ee Generate msix package for local build (#329) 2025-01-15 11:02:16 +01:00
Stefan Markovic
9448d0fb56 Xaml format (#328) 2025-01-14 12:17:01 +01:00
Mike Griese
30fe5e8d76 Fix clicks not working on the top half of the back button (#301)
Hey guess what, 24px is too tall! If you reserver 24 for the titlebar
"drag area", it'll steal input from the top half of the back button,
making it un-clickable. fun!
2025-01-13 12:54:29 -08:00
Seraphima Zykova
664218af82 [Indexer] Results ordering (#298)
Changed results ordering to achieve the same relevance as in the current PT Run Indexer.

Also adds fuzzy match support
2025-01-13 12:49:57 -08:00
Mike Griese
df7878342b Add a setting to control if details are shown for apps (#300)
Adds a setting to control if the `Details` pane is shown for apps on the main page or not. I'm defaulting this to off, because that pane doesn't add any value currently.
2025-01-13 12:48:32 -08:00
Mike Griese
72f2907485 Fix the icons on Window Walker (#310)
The ListItems were having their icons manually initialized to `icon`, which was always passed as `string.Empty`.

I suspect this is vestigial from PT Run - where the icon would be paseed in based on the theme. This prevented us from being able to fall back to the icon from the command, which is where we stuck the actual icon
2025-01-13 10:48:11 -06:00
Mike Griese
36635379ce Add support for different "branding" for CmdPal (#299)
The meat of this PR is in `Microsoft.CmdPal.UI\CmdPal.Branding.props`. 

**TL;DR**: You can build cmdpal locally and have it not conflict with the selfhost build, allowing you to use the selfhost CmdPal while _also_ building and testing new features in a _separate_ package. 

This PR allows us to have different packages deployed by the build, depending on the "branding" of cmdpal which you're building. It's highly cribbed from the Terminal's concept of branding. 

This is all keyed off the `CommandPaletteBranding` property. This accepts different values:
* `Release` / `Preview` / `Canary`: These are all the same currently. This is the "release" / "stable" branded version
* `Dev` (or omitted, which is the default for local builds): Build the "dev" version of the package

closes #297 


Co-authored-by: Stefan Markovic <stefan@janeasystems.com>
2025-01-13 08:56:30 -06:00
Stefan Markovic
f5aff80b88 Install msix on PT install (#296)
* Refactor package.h

* Install on install

* Fix install, remove package on uninstall and some auto-format

* Start on enable() and close on PT close

* Fix build

* Change settings to toggle. If not installed, install on enable

* Fix disable

* Add infobar to PT Run page

* Remove trailing sln project

* remove reference

* Remove comment
2025-01-10 09:08:00 +01:00
Mike Griese
d1c7b3e2da Fix the reload extensions command item (#241)
This never got hooked up in TRA. Now it is. 

And it actually does things smartly - it'll dismiss all the old extension instances, then re-populate all of them. Really helpful for testing extensions. You don't need to keep re-launching the palette, you can just reload and presto - we'll release the old package, let the new one deploy, then load the new one. 

It also revealed that we were updating the `.SearchText` from #234 on the UI thread. Oh no! Can't do that - that might be a x-proc call. Very bad. So that fixes this.
2025-01-09 15:23:56 -08:00
Jordi Adoumie
9292658981 Add ?? alias to TRA for web search plugin (#295) 2025-01-09 15:02:39 -08:00
Mike Griese
2efdbb6cbd Allow both light and dark icons (#286)
This adds one _last_ change to the API to allow apps to specify different icons for light and dark mode. 

If it's important to an app to specify different icons for light vs dark mode, then `IconInfo` is exactly what you want to use. It contains _two_ `IconDataType`s, for two different icons. Simple as that. 

And to keep things even easier, I slapped on a `IconInfo(string)` constructor, so that you can easily build a `IconInfo` with both icons set to the same string. Especially useful for font icons, which we're using everywhere already. That allows almost all the extensions to have _no code change_ here, so that's super!

Some of the places where we were evaluating if an icon existed or not - that needs to move into the view. `ShellPage.xaml.cs` does one variant of that already for `IDetails.HeroImage`. The view is the only part of the app that knows what the theme is. 

Closes #78
2025-01-09 14:30:25 -08:00
Mike Griese
f679c88a16 Implement Allowing CommandProviders to ItemsChanged themselves (#289)
This is the implementation of what was spec'd in #282.

When we get an `ItemsChanged`, we'll look through the top level commands, slice out all the old ones, then fetch the new ones and stitch them in the same place in the list. 

I've only implemented it for the Bookmarks provider so far. 

Closes #277
2025-01-09 14:05:02 -08:00
Mike Griese
9eafc8346e Spec GoToPageArgs.NavigationMode (#294)
As discussed in #273.

This will allow extensions that want to navigate around the page stack
more control.

For example, the Obsidian Notes extension will want to start with a form
for "Set up vault path". When they submit, instead of just going
home, they'll want to GoToPage('com.obsidian.notes', mode=GoHome), so
that submitting the form takes them to the notes list, rather than just
_home_.

Doesn't actually implement this, of course. Just gets the API ready for
it.
2025-01-09 14:04:29 -08:00
Mike Griese
4b9b15f493 Fix Loading on pages (#290)
This subtly regressed in #244, so subtly that I didn't really notice it till I fixed it.

In that PR, we replaced the `visibility` binding of the `ProgressBar` with a binding to `IsInitialized`. For most pages, this actually just works fine - they're only initialized once they return some results. And most pages are only loading until they first return something.  

But the trick is with pages that do some `Loading` _after_ they're initialized. For them, the progress bar never shows up, because `Initialized` is already true.

I actually only stumbled upon this because of a totally different bug (which this also fixes). 

In rare cases we'd load a little out of order, and the ShellPage would try to determine if it should hide the `ErrorMessage` or not. About 25% of the time, it would evaluate `{x:Bind ViewModel.CurrentPage.ErrorMessage, Converter={StaticResource StringNotEmptyToVisibilityConverter}, Mode=OneWay}` _before_ the `CurrentPage` got set, so it would show it initially. That looked real janky.
2025-01-09 11:16:09 -08:00
Mike Griese
0bd356c11c When an extension item fails to load, replace it with an error item (#293)
Right now, the main page really explodes if an extension dies. It really does not like it. 

Instead, this PR changes it so that if we fail to load the properties from an ICommandItem, we won't kill the whole page, we'll just replace that _single_ item with an error item. The item _would_ look like:

![image](https://github.com/user-attachments/assets/c5e74af1-5d79-47db-81f9-ab6ea1448881)


however, we ended up just silently ignoring the item entirely.
2025-01-09 10:44:47 -08:00
Mike Griese
d7c2037955 Add some padding for font icons (#265)
Random nits, part the first.

Emoji render just a little too big currently, and they get clipped. 

This PR fixes that, by making emoji icons have just a bit of negative padding, to give them space to not get clipped. 

Is also replaces the icons on the Services page, because the icon on the list items was the icon of the thing to do to the service (i.e. running services would have a "stop" icon, which is insane). Of course, this made the emoji problem much more apparent.
2025-01-09 10:22:27 -08:00
Mike Griese
8e66d8ec5b Fix the KB control build, part the second (#292)
Okay I made everything worse in #291, this should actually fix it.

I have no idea why it passed before. Must have been branched from before the upstream change
2025-01-09 08:10:53 -08:00
Mike Griese
e0654bc88a Fix the namespaces for the pilfered KB control (#291)
When I pilfered the ShortcutControl, I didn't change the namespaces at
all. I also didn't build the whole PT sln.

After the latest merge with upstream, either I built more or new rules
got added, and now there are conflicts, since the same exact type is
being built in two places.

Easy enough to fix that
2025-01-09 07:09:05 -08:00
Jordi Adoumie
fe2927b683 Add WebSearch Plugin from PT Run (#209)
This PR Adds the equivalent functionality as the web search plugin from PT Run: 

![image](https://github.com/user-attachments/assets/d82d449c-e36c-46a4-9a8d-308d610f1dd4)

![image](https://github.com/user-attachments/assets/f9c97988-4c2a-4bba-b652-75c493bad1c4)


I also took a spin at adding history items (new concept for plugin) so that users in theory can quickly launch previous queries. You can configure the number of items to show up in your history in the settings of course!

![image](https://github.com/user-attachments/assets/102dadad-651b-4d25-9d62-82277cdb0cfe)

![image](https://github.com/user-attachments/assets/50ca0847-fbc5-4309-806a-f10839473f70)

And we got the fallback handler working naturally: 

![image](https://github.com/user-attachments/assets/eaca73dc-c880-4b00-87e3-c849c1a7ee45)
2025-01-09 07:08:31 -08:00
Stefan Markovic
d9ce0e8eae Merge upstream PT #6 (#288) 2025-01-09 06:42:39 -08:00
Seraphima Zykova
750408629a Indexer pagination (#287)
Added pagination and updated fetching results to improve performance.
2025-01-09 06:40:36 -08:00
Mike Griese
6149981428 Add a settings page (#264)
I just wanted to make loading JSON settings a little easier.

* "Well, these `SettingsManager` classes all do the same thing, what if they shared a base class?"
* "You know, I bet I could put all the built-in settings into one file if we 'namespaced' the individual settings"
* "Hey what about those bodgy core settings pages, those need to be not just an adaptive card"
* "Woah, the `SettingsCard` in the toolkit is really cool"
* "Dang look I bet I can stick all the extensions into that page pretty trivially"
* "Okay it wasn't that trivial but hey it works, and it's awesome"
* "You know, PT already has this awesome keybinding editor. How hard could that be to stick in there"
* "Once again, pretty hard, but that mostly works"
* "Yes, yes, resources, we need localization, that's not too hard"
* "Yea saving to a file isn't too hard"
* "I should probably use that hotkey setting when we actually bind the key"

and then accidentally the whole thing
![image](https://github.com/user-attachments/assets/fabfc09f-b155-482d-9805-7ec79369d043)

---------

Co-authored-by: Mike Griese <zadjii@gmail.com>
2025-01-09 07:00:38 -06:00
Mike Griese
55f4632ad8 Fix form submits, once and for all (#284)
if you don't hang onto a reference to the RenderedAdaptiveCard, then the GC might clean it up sometime, even while the card is in the UI tree. If this gets GC'd, then it'll revoke our Action handler, and the form will do seemingly nothing.
2025-01-08 15:36:50 -06:00
Mike Griese
a56916fc33 Format will complain about trailing whitespace (#285)
oops
2025-01-07 14:44:35 -06:00
Jordi Adoumie
dcb15db3c8 Change single/double click behavior on list items (#259)
This PR adjusts the UX for single-clicking / double-clicking on list items. With this change: 

- A single-click on a list item will navigate the user to that list item. It will not automatically invoke the associated command.
- A double-click on a list item will invoke the command for the list item.

It is a really small code change, _but_ I have a suspicion that there are cleaner ways to handle what I'm doing. Since it is so small, I figured just creating the PR and getting quick @zadjii-msft feedback would do the trick.
2025-01-07 14:23:04 -06:00
Jordi Adoumie
77cdd2bc9f Change the default debounce timer from 100ms to 50ms (#283)
PowerToys Run has 50ms as the default input smoothing: 

![image](https://github.com/user-attachments/assets/69a8b823-b6ed-46b6-afbf-08209e10b97a)

This PR simply changes the current value from 100ms to 50ms. This causes a noticeable improvement for fast typers.
2025-01-07 13:24:55 -06:00
Mike Griese
c275f07f64 Fix all the broken form pages (#266)
Random nits, part the second

TRA is particular about form pages. It'll actually break itself if an extension throws an exception (which it should do). The POC was more forgiving (but technically incorrect)

Well, turns out, all the form pages we had did not give an F and just threw exceptions. They shouldn't! That's bad!
2025-01-07 13:19:01 -06:00
Jordi Adoumie
bbff0fe7ab Backspace on empty query in FilterBox navigates back (#260)
This is a feature request @plante-msft has had for a while, but I don't see an open issue for it.

Does what title says, navigates backwards when a user types `Backspace` and the filterbox is already empty.

The functionality works as follows: 

1. If a user presses down on the backspace key with an empty query and holds the backspace key, cmdpal will not navigate back until the key is released 

2. If a user presses down on the backspace key with a non-empty query and holds the backspace key, cmdpal will not navigate back even after the key is released. This is to ensure that folks can hold backspace and delete the entire text field without inadvertently getting sent backwards in the flow. In this case, they would have to explicitly hit backspace again. 

TLDR - hitting backspace will only ever navigate back on release AND if backspace was originally hit with an empty query.
2025-01-07 06:48:39 -06:00
Mike Griese
0a22219080 Allow CommandProviders to ItemsChanged themselves (#282)
Specs out #277

Extensions might want to change their list of top-level commands. Classic example is the bookmarks provider, or the spongebot.

The API needs to allow this. This wasn't a problem in the prototype, because the prototype literally fetched the commands every time it went home.
2025-01-07 06:40:52 -06:00
Mike Griese
182d2b2546 Support CommandResult.GoBack in the host (#279)
I think I added this to the spec while there was like, 80 branches flying around and never actually merged support for it in the host app. Oops.
2025-01-07 06:35:33 -06:00
Mike Griese
9c416a01db Update observable content on the UI thread (#278)
Both these methods are operating on a BG thread, not the UI thread. They can't touch the ObservableCollection, otherwise they'll just throw exceptions.
2025-01-07 06:33:31 -06:00
Mike Griese
6a505cd773 Tags should be Mode=OneWay in the XAML (#275)
Yea, this one's stupid. I spent too long debugging why changing the list
of tags in an extension didn't do anything. Turns out, we just never had
XAML listen for the PropertyChanged. That hurts.
2025-01-07 06:24:26 -06:00
Mike Griese
b40874a7ad Spec out empty content (#272)
Specs #261


##### Empty content

Developers can specify an `EmptyState` to customize the way the list page looks
when there are no search results. This will control what's displayed to the user
when both:
* `IsLoading = false`
* `GetItems()` returns null or an empty list

This property is observable like anything else, which allows developers to
change the empty state contextually. For example, consider a "search winget"
extension:

* If the user hasn't typed anything yet -> `Title="Start typing to search winget"`
* If the user has typed and no results were found -> `Title="No results found"`,
  `Subtitle="Your search '...' returned no packages on winget"`
2025-01-07 06:23:35 -06:00
Mike Griese
de7fc855f8 Introduce an Id property for command providers (#269)
Originally a part of #264 

I need command providers to have an ID, so that we can differentiate between multiple providers in the same package.

It's really only relevant for _us_, but I don't know what the future has in store for us. 

Also includes a minor refactoring that combines a couple of the built-ins into a single provider. Reload and quit aren't really separate from _the app itself_.
2025-01-07 06:20:16 -06:00
Mike Griese
86c614dc59 Actually add all the commands to the context menu (#267)
Whoops. Looks like the context menu was pretty specifically _not_
getting initialized with the default command. It definitely should.
2025-01-07 06:17:38 -06:00
Michael Hawker MSFT (XAML Llama)
3a1f88cfdf Centralize Loading code for Shell/Pages (#244)
## Summary of the Pull Request

This PR is ready to review with a bunch of code clean-up around shell and page initialization/navigation, progress, errors, and the back button.

There's still some future items to think about, but that's beyond the scope of this work right now. See more notes in comments below on changes:

> Alright, I cleaned up all the Page Initialization and Navigation code for Shell, it's all centralized there now (which makes sense) and removes 3x duplicated code we had in the ExtPage templates. They're just basic XAML controls now which don't really need to worry about how they get loaded, and just get their VMs.
>
> I also tidied up the massive if statement we had in ShellPage.xaml.cs for each page type so we have a singular logical flow that just branches in two statements with an inline switch for the VM constructor and the page type.
> 
> In the future, we may want to cache some page VMs there, so if you navigate back/forth we don't reload everything...
>
> This also let us remove a message which was effectively just internal communication. Should be a bit cleaner now, certainly easier to add new page types now too.

These are some of the last remnants of things from the original MVVM setup when we were still testing patterns and then just copied.

This uses `IsInitialized` for tracking the progress bar and bubbles up errors better without blocking the app (and provides better context for errors).

This also fixes the issue with the Back Button stealing focus instead of the search box (by moving it to the Shell page to leave the SearchBox control as just responsible for the searchbox/keyboard input).

-------

Future Open questions/TODO:
- [ ] How do we better track the parent extension/owner of pages/commands/etc... for error reporting?
- [x] Need to clean-up backend logic of VMs for the loading state for the new Shell page centralization
  - [x] For instance, progress only happens like once now...
  - [x] May be able to centralize some of the loading bits logic?
- [x] Finalize some brushes for error items
- [ ] Still need to potentially track individual issues loading specific items, but maybe this is a good enough start for a single PR once the above are addressed?
- [ ] Cache page VMs?
- [ ] Clean-up async loading of pages and their content

Helps with #220.
This will make #238 easier as then we don't need as much XAML/Loading glue for those


Co-authored-by: Niels Laute <niels.laute@live.nl>
Co-authored-by: Mike Griese <zadjii@gmail.com>
2024-12-31 12:13:57 -06:00
Seraphima Zykova
86ec28d9e3 File search extension (#183)
Adds support for a basic Indexer-based file search extension. 

Co-authored-by: Mike Griese <migrie@microsoft.com>
2024-12-30 19:20:59 -06:00
Mike Griese
dc0693e0de Don't kill the mainpage when typing a space (#255)
I think this is what @joadoumie  was seeing when he thought the main page crashed a lot. 

Some weird bug where the main page gcrashes with some frequency if the first thing you type is a space. Weird. `FuzzySearch` just can't handle the space
2024-12-27 07:12:31 -06:00
Mike Griese
ada7ca8b96 Down-weight fallback handlers (#256)
As it stands, since the shell/run handler always exactly matches the `SearchText`, it _always_ shows up first in the results. 

That's annoying. Make it a little less popular. Sometimes, you just have to be mean to the kid that's really, really popular.
2024-12-27 07:12:18 -06:00
Stefan Markovic
fa2ed4b114 Auto install msix deps packages (#252)
* Install msix dependencies automatically

* xaml format
2024-12-25 15:35:07 +01:00
Mike Griese
95887afbad Swap the POC for TRA in PowerToys (#246)
I think this swaps the POC for TRA in PowerToys. 

I don't think I have enough disk space left on this machine currently to actually _build_ PowerToys all up (🙃) so I'm gonna see what CI comes up with. 

---------

Co-authored-by: Mike Griese <zadjii@gmail.com>
Co-authored-by: Stefan Markovic <stefan@janeasystems.com>
2024-12-19 07:19:32 -08:00
Mike Griese
769f9dadae Let mike use cmdpal to launch steam games (#249)
The app enumeration was very poorly stolen from PowerToys, and I clearly just skipped the most important category of thing to get right: games

![image](https://github.com/user-attachments/assets/30a60c5a-bd2e-4e61-8b2b-4ee953f25dbe)

happy holidays everyone
2024-12-19 06:29:03 -06:00
Niels Laute
93558d1cde UX tweaks (#248)
- @ zadjii-msft added back button support
- Font tweaks
- Back button animation
- Cleaner shortcut UI
- Created a `Tag` control, but not ready yet. will continue in a separate PR

Before vs after

![image](https://github.com/user-attachments/assets/7f5f8e2f-d83c-4df4-bf1a-48d8527f275c)


---------

Co-authored-by: Mike Griese <zadjii@gmail.com>
2024-12-18 14:30:46 -08:00
Mike Griese
3795bdd767 Fix TRA launching (#247)
This broke in #215
2024-12-18 13:03:38 -08:00
Mike Griese
467989bf52 Add support for aliases (#236)
Honestly, code is pretty simple.

* Add an `AliasManager` to track the alias strings bound to which commands. 
  * Only a couple aliases are built-in currently. The ones from PT Run. 
* When the text is updated on the MainPage, if it matches an alias, we'll immediately just _do that command_. 
* When we do fire off an alias, we need to clear the search text on the main page, because we _don't_ want to come back with that text populated (as opposed to something like `masto↲` which we would want to leave in the search box

Closes #143 

---------

Co-authored-by: Mike Griese <zadjii@gmail.com>
2024-12-18 10:17:14 -08:00
Stefan Markovic
291838a28a Integrate into PowerToys (#215)
- Integrated into PowerToys - add module iface project
- Added settings page
- Added to installer
- CI updates to sign msix and it's content and to check if msix content is signed

TODO:
- see how to install msix dependencies automatically
- Start app automatically after installing from settings?
- Installed by default?
2024-12-18 09:59:55 -08:00
Stefan Markovic
44d574027f Spellcheck additions (#243)
* REVERT THIS: just to trigger spellcheck

* [check-spelling] Update metadata

Update for https://github.com/zadjii-msft/PowerToys/actions/runs/12390783207/attempts/1
Accepted in https://github.com/zadjii-msft/PowerToys/pull/243#issuecomment-2551005106

Signed-off-by: check-spelling-bot <check-spelling-bot@users.noreply.github.com>
on-behalf-of: @check-spelling <check-spelling-bot@check-spelling.dev>

* Revert "REVERT THIS: just to trigger spellcheck"

This reverts commit f1e87cdb4c.

* manual check and fixes

* [check-spelling] Update metadata

Update for https://github.com/zadjii-msft/PowerToys/actions/runs/12392635493/attempts/1
Accepted in https://github.com/zadjii-msft/PowerToys/pull/243#issuecomment-2551170253

Signed-off-by: check-spelling-bot <check-spelling-bot@users.noreply.github.com>
on-behalf-of: @check-spelling <check-spelling-bot@check-spelling.dev>

* manual check and fixes 2

* Add patterns

* No jokes here says spellcheck

* merge and again

* one more

* forbidden patterns fix

* More forbidden patterns fixes

* now?

* now??

---------

Signed-off-by: check-spelling-bot <check-spelling-bot@users.noreply.github.com>
Co-authored-by: Stefan Markovic <stefansjfw@users.noreply.github.com>
2024-12-18 16:08:06 +01:00
Mike Griese
9cd56217a0 Hook up the buttons, and othe UX nits (#229)
_targets #224_

A big collection of UX nits. 
* The command buttons at the bottom work now.
* The context menu works with `enter` now
* `ctrl+enter` will do the secondary command now
* `ctrl+k` will open the context menu now
* Lists will do a better job of starting with a selected item, so that you can immediately start arrowing through the list
* Lists will also do a better job of keeping at least one item selected as the list changes. 
* I manually dispatch a `CurrentPageViewModel.Filter = FilterBox.Text` when the filterbox backspaces to a single character. IIRC there's a bug in the debouncer upstream, but I had no patience for that
* I reworded some things and changed some icons. 
  * "Execute shell commands" felt _so_ "I am a 1337 haxor", when "sir, this is a run dialog" 
  * "Switch between open windows" is tooooooooo lllllllllllooooooooooooonnnnnnngggggggggg


Co-authored-by: Michael Hawker MSFT (XAML Llama) <24302614+michael-hawker@users.noreply.github.com>
Co-authored-by: Mike Griese <zadjii@gmail.com>
2024-12-18 06:20:07 -06:00
Stefan Markovic
2dccda7400 Merge PT upstream no.5 (#237)
* [Workspaces] implement the move feature (#35480)

* [Workspaces] Add move functionality

* spell checker

* [Workspaces] Modify Arranger to move apps without launch

* moved ipc helper

* removed callback

* use LauncherStatus in WindowArranger

* wait for launching next app

* launch in a separate thread and protect by mutexes

* update app version in advance

* changed canceling launch

* increased waiting time

* Fix optional parameter load from json

* changed arranger waiting time

* additional waiting time for Outlook

* added app id

* ensure ids before launch

* set id in editor

* minor updates

* [Workspaces] Move: Get the nearest window when moving a window

* [Workspaces] convert optional boolean to enum to avoid json problems

* Handle case when the new Application Property "moveIfExists" does not exist

* Re-implementing app-window pairing for moving feature.

* spell checker

* XAML formatting

* Fixing bug: IPC message not arriving

* spell checker

* Removing app-level-setting for move app. Also fixed compiler errors due styling.

* Updating editor window layout

* Re-implementing window positioning UI elements

* XAML formatting

* Code review findings

* Code cleanup

* Code cleanup

* Code cleanup

* code cleanup

* Code cleanup

* Code cleanup

* fix Move attribute after launch and snapshot

* Extend WindowArranger with PWA functionality to detect different PWA apps. PwaHelper moved to the common library

* fix repeat counter in the editor

* Code optimization

* code cleanup, optimization

* fix double-processing window

---------

Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: donlaci <donlaci@yahoo.com>

* [KeyboardManager]Fix mapping shift to numpad (#35890)

* Keyboard Manger fix numpad as shift

Fixed shift not being released if a numpad key as shift.

* Added comments

* Fix typo

* Fix the numpad unlocked key not working if the locked version is overridden by shift

* Fix spelling check.

* Revert the VK_CLEAR change.

---------

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* [Analyzers] Update .editorconfig with rules to relax IDE errors (#36095)

* [Analyzers] Remove duplicate pascal case style from .editorconfig

* [Analyzers] Configured severity for individual IDE and CA rules showing as errors in VS

Set severity for IDE0005, IDE0008, IDE0016, IDE0018, IDE0019, IDE0021, IDE0022, IDE0023, IDE0025, IDE0027, IDE0028, IDE0029, IDE0031, IDE0032, IDE0034, IDE0036, IDE0039, IDE0042, IDE0044, IDE0045, IDE0046, IDE0047, IDE0057, IDE0051, IDE0052, IDE0054, IDE0055, IDE0056, IDE0057, IDE0059, IDE0060, IDE0061, IDE0063, IDE0071, IDE0073, IDE0074, IDE0075, IDE0077, IDE0078, IDE0083, IDE0090, IDE0100, IDE0130, IDE160, IDE180, IDE0200, IDE0240, IDE0250, IDE0251, IDE0260, IDE0270, IDE0290, IDE0300, IDE0301, IDE0305, IDE1005, IDE1006, CA1859, CA2022, CA2263

* [Analyzers] Fix mismatched analyzer descriptions

* [Analyzers] Fix misspelling

* Update .editorconfig

Made the following style rules `silent` instead of `suggestion`: 
- Use explicit type instead of 'var'
- Use expression body for ...
- Use block-scoped namespace

* [Analyzers] Set IDE0290 to silent

* [Analyzers] Remove IDE1006 configuration from .editorconfig in favor of making exclusions for the few entries

* [Analyzers][Indexer] Add IDE1006 suppressions

* [Analyzers][Peek] Add IDE1006 suppression

* [Analyzers][MWB] Add IDE1006 suppression.

* [Analyzers][Plugins] Add IDE1006 suppression

* [Analyzers][ImageResizer] Suppress IDE0073 to retain original copyright

* [Analyzers] Remove IDE0073 severity change in .editorconfig

---------

Co-authored-by: Ani <115020168+drawbyperpetual@users.noreply.github.com>

* [Workspaces] PWA follow-up (#36217)

* [PTRun][Calculator]Allow scientific notation with lowercase 'e' (#36187)

* [Workspaces] Add encoder parameter to bitmap.save() (#36228)

* [Workspaces] Add encoder parameter to bitmap.save()

* 1 more call fixed

* Move repeated code to the csharp library

* [Workspaces] Implement store of app window's size and position (#36086)

* [Workspaces] Implement store of app window's size and position

* Modifying the default values to -1. The program will use the original default values for the first run.

* [ScreenRuler]Add setting to show the measurement in an extra unit (#35887)

* display ruler: supporting millimeter and other units

* Measurement Tool: UI Setting for an extra unit

* Update images

* spelling

* spelling

* suit code style

* Fix for code review

* remove weird file

* rename field

* [Deps]Update MSTest from 3.5.0 to 3.6.3 (#36115)

* Update MSTest from 3.5.0 to 3.6.3

* Use STA attributes that are now part of MSTest

* Adding Jerry to community.md (#36232)

Update COMMUNITY.md

* [Workspaces] Arranger: smart timer (#36096)

* [Workspaces] Add move functionality

* spell checker

* [Workspaces] Modify Arranger to move apps without launch

* moved ipc helper

* removed callback

* use LauncherStatus in WindowArranger

* wait for launching next app

* launch in a separate thread and protect by mutexes

* update app version in advance

* changed canceling launch

* increased waiting time

* Fix optional parameter load from json

* changed arranger waiting time

* additional waiting time for Outlook

* added app id

* ensure ids before launch

* set id in editor

* minor updates

* [Workspaces] Move: Get the nearest window when moving a window

* [Workspaces] convert optional boolean to enum to avoid json problems

* Handle case when the new Application Property "moveIfExists" does not exist

* Re-implementing app-window pairing for moving feature.

* spell checker

* XAML formatting

* Fixing bug: IPC message not arriving

* spell checker

* Removing app-level-setting for move app. Also fixed compiler errors due styling.

* Updating editor window layout

* Re-implementing window positioning UI elements

* XAML formatting

* Code review findings

* Code cleanup

* Code cleanup

* Code cleanup

* code cleanup

* Code cleanup

* Code cleanup

* [Workspaces] Arranger: Reset wait timer after each successful arrange action

* fix merge error

---------

Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: donlaci <donlaci@yahoo.com>

* Upgrade to check-spelling v0.0.24 (#36235)

This upgrades to [v0.0.24](https://github.com/check-spelling/check-spelling/releases/tag/v0.0.24).

A number of GitHub APIs are being turned off shortly, so you need to upgrade or various uncertain outcomes will occur.

There's a new accessibility forbidden pattern:

> Do not use `(click) here` links
> For more information, see:
> * https://www.w3.org/QA/Tips/noClickHere
> * https://webaim.org/techniques/hypertext/link_text
> * https://granicus.com/blog/why-click-here-links-are-bad/
> * https://heyoka.medium.com/dont-use-click-here-f32f445d1021
```pl
(?i)(?:>|\[)(?:(?:click |)here|link|(?:read |)more)(?:</|\]\()
```

There are some minor bugs that I'm aware of and which I've fixed since this release, but I don't expect to make another release this month.

I've added a pair of patterns for includes and pragmas. My argument is that the **compiler** will _generally_ tell you if you've misspelled an include and the **linker** will _generally_ tell you if you misspell a lib.

- There's a caveat here: If your include case-insensitively matches the referenced file (but doesn't properly match it), then unless you either use a case-sensitive file system (as opposed to case-preserving) or beg clang to warn, you won't notice when you make this specific mistake -- this matters in that a couple of Windows headers (e.g. Unknwn.h) have particular case and repositories don't tend to consistently/properly write them.

* Adjust to community.md, shifting jerry's github user name (#36242)

Update COMMUNITY.md

* [AOT compatible] Resolve AOT Build Error in Peek.UI (#36194)

* add partial for aot support

* add Microsoft.NET.ILLink.Tasks to packages.props

* format

* Revert "format"

This reverts commit 742d5e2214.

* add Microsoft.NET.ILLink.Tasks to notice.md

* add auto reference

* update script to remove the 'Auto-reference line'

---------

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Awake Updates - `TILLSON_11272024` (#36049)

* Update with bug fixes for tray icon and support for parent process

* Process information enum

* Update the docs

* Fix spelling

* Make sure that PID is used in PT config flow

* Logic for checks based on #34148

* Update with link to PR

* Fixes #34717

* Small cleanup

* Proper task segmentation in a function

* Cleanup the code

* Fix synchronization context issue

* Update planning doc

* Test disabling caching to see if that manages to pass CI

* Cleanup to make sure that we're logging things properly.

* Update ci.yml

* Disable cache to pass CI

* Retry logic

* Cleanup

* Code cleanup

* Fixes #35848

* Update notes and codename

* After third attempt, log error instead of throwing exception

* More cleanup to avoid double execution

* Add expected word

* Safeguards for bad values for timed keep-awake

* More updates to make sure I am using uint

* Update error message

* Update packages

* Fix notice and revert CsWinRT upgrade

* Codename update

* Update expect.txt

* Update the struct

* Ensuring we're properly awaiting tray initialization

* Update to make sure tray reflects the bound process

* Cleanup, proper JSON serialization for logs.

* Not needed.

* Add command validation logic

* Moving the initialization logic earlier

* Make sure we show the display state in the tooltip

* Update tray string

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update logic for icon resets

* Update doc

* Simplify function for setting mode shell icon

* Issues should be properly linked

* Minor cleanup

* Update timed behavior

---------

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>

* [Workspaces] detecting right app version (#36100)

* [Workspaces] Add move functionality

* spell checker

* [Workspaces] Modify Arranger to move apps without launch

* moved ipc helper

* removed callback

* use LauncherStatus in WindowArranger

* wait for launching next app

* launch in a separate thread and protect by mutexes

* update app version in advance

* changed canceling launch

* increased waiting time

* Fix optional parameter load from json

* changed arranger waiting time

* additional waiting time for Outlook

* added app id

* ensure ids before launch

* set id in editor

* minor updates

* [Workspaces] Move: Get the nearest window when moving a window

* [Workspaces] convert optional boolean to enum to avoid json problems

* Handle case when the new Application Property "moveIfExists" does not exist

* Re-implementing app-window pairing for moving feature.

* spell checker

* XAML formatting

* Fixing bug: IPC message not arriving

* spell checker

* Removing app-level-setting for move app. Also fixed compiler errors due styling.

* Updating editor window layout

* Re-implementing window positioning UI elements

* XAML formatting

* Code review findings

* Code cleanup

* Code cleanup

* Code cleanup

* code cleanup

* Code cleanup

* Code cleanup

* [Workspaces] fix detection of specific version of apps

---------

Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: donlaci <donlaci@yahoo.com>

* Move the XamlStyler config to src/ (#36202)

my never ending goal to minimize files in the root dir

* [AdvancedPaste]Add Semantic Kernel opt-in to allow chaining of paste actions (#35902)

* [AdvancedPaste] Semantic Kernel support

* Changed log-line with potentially sensitive info

* Spellcheck issues

* Various improvements for Semantic Kernel

* Spellcheck issue

* Refactored Clipboard routines

* Added integration tests for KernelService

* Extra telemetry for AdvancedPaste

* Added 'Hotkey' suffix to AdvancedPaste_Settings telemetry event

* Added IsSavedQuery

* Added KernelQueryCache

* Refactoring

* Added KernelQueryCache to BugReportTool delete list

* Added opt-n for Semantic Kernel

* Fixed bug with KernelQueryCache

* Ability to view last AI chat message on error

* Improved kernel query cache

* Used System.IO.Abstractions and improved tests

* Fixed under-count of token usage

* Used Semantic Kernel icon

* Cleanup

* Add missing EndProject line

* Fix dependency version conflicts

* Fix NOTICE.md

* Correct place of SemanticKernel in NOTICE.md

* Unlinked CustomPreview toggle from AI

* Added Microsoft.Bcl.AsyncInterfaces dependency to AdvancedPaste

* Fixed NOTICE.md order

* Moved Custom Preview to behaviour section

* Made Image to Text raise error on empty output

* Added AIServiceBatchIntegrationTests

* Updated AIServiceBatchIntegrationTests

* Added prompt moderation

* Moved GPO Infobar to better location

* [Launcher]Port from WPF-UI to .NET 9 WPF (#36215)

* Initial implementation

* Fix fluent style

* Fix no endline

* Update expect.txt

* Fix formatting

* Fix light theme looking bad on Windows 10

* fix formatting

* test change

* Now really fixed W10

* Add a comment

* Fix typos

* Fix spellcheck errors

* Fix spellcheck pattern for websites

* Change patterns for spellcheck in the right file

* Fix XAML styling

* Fix contrast colors on W11

* Fix formatting

* Removed emty line

* Fix formatting

* Added comment to fluentHC file

* fix comment

* Fix Windows10 again.
Adress feedback.

* W11 fix chaning from high contrast to normal not having correct background

* W10 Fix high contrast not working after switching from light/dark moed

* Address feedback

* Fix formatting

* Second W11 fix chaning from high contrast to normal not having correct background

* [UX]Updating New+ and Settings icons (#36290)

* Updated icons

* Updating more icons and icos

* [Settings][Dashboard] Accessibility fixes (#36280)

* make narrator announce buttons/toggles

* add toggles module name

* [ci]Sign OpenAI dll that's not signed (#36299)

* Update CODEOWNERS to include gordon, jerry and kayla (#36308)

* Update CODEOWNERS

* Update names.txt

* Making the powertoys-code-owners team code owners (#36310)

* Update CODEOWNERS

* Update names.txt

* Update CODEOWNERS

* [FZEditor]Fix Create new layout dialog radio buttons IsChecked values  (#36320)

* 0.87 changelog (#36335)

* 0.87 changelog

* Fix spellcheck

* Update README.md

Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

---------

Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>

---------

Co-authored-by: Laszlo Nemeth <57342539+donlaci@users.noreply.github.com>
Co-authored-by: Seraphima <zykovas91@gmail.com>
Co-authored-by: donlaci <donlaci@yahoo.com>
Co-authored-by: Ionuț Manța <ionut@janeasystems.com>
Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
Co-authored-by: Jeremy Sinclair <4016293+snickler@users.noreply.github.com>
Co-authored-by: Ani <115020168+drawbyperpetual@users.noreply.github.com>
Co-authored-by: PesBandi <127593627+PesBandi@users.noreply.github.com>
Co-authored-by: Wenjian Chern <55335597+Sophanatprime@users.noreply.github.com>
Co-authored-by: Youssef Victor <youssefvictor00@gmail.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>
Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Co-authored-by: leileizhang <leilzh@microsoft.com>
Co-authored-by: Den Delimarsky 🔐 <sign@den.dev>
Co-authored-by: Niels Laute <niels.laute@live.nl>
Co-authored-by: Davide Giacometti <25966642+davidegiacometti@users.noreply.github.com>
Co-authored-by: Heiko <61519853+htcfreek@users.noreply.github.com>
2024-12-18 08:57:45 +01:00
Mike Griese
8214331752 Use the non-labs markdown block, because pain and suffering (#240)
Co-authored-by: Mike Griese <zadjii@gmail.com>
2024-12-18 08:55:57 +01:00
Mike Griese
b0bfeec888 Make fallback commands work again (#234)
Add support for fallback commands again. Couple important parts:

* Lists shouldn't contain items with blank `Title`s. That's spec'd that way, and allows fallback items to hide themselves if they don't want to be shown for a given search string
* The CommandProviderWrapper, as well as extension infrastructure needs to know to get the fallbacks out of a commandprovider too. 
* `TopLevelCommandWrapper` needs to know when its model changes, to update itself in the list

------
Co-authored-by: Mike Griese <zadjii@gmail.com>
2024-12-16 13:49:57 -08:00
Mike Griese
4048d76d87 Add global hotkey again (#232)
This was originally based off `dev/migrie/f/ux-nits`, which is #229 

* Adds support for our `win+ctrl+.` global hotkey again. 
* Makes our window a transient toolwindow. It doesn't show up in alt+tab. It can only be summoned with the hotkey
  * Unless you're debugging, because that's an absolute chore
* Manually makes Quit visible as a command. Quit is usually a fallback command, but I implemented that _right after this commit_. However, I _believe_ the fallback commands need #224 to merge, whereas this subset of deltas didn't exactly

Closes #136
2024-12-16 13:48:07 -08:00
Michael Hawker MSFT (XAML Llama)
8f122b9a4b Colorize the tags! (#227)
Has a contrast issue with foreground text though:

![image](https://github.com/user-attachments/assets/ebc39efd-f796-408b-b5a1-c423ff9ea7d9)

@  niels9001 think we should have a 'smart' thing that tries to create a contrasting brush for the text based on the background brush or would it be best to let devs config this as part of the tag?

For some reason my pokedex sample extension isn't loading, so that'd be the real test for colors... 😆
2024-12-16 13:44:10 -08:00
Mike Griese
a92b1e61a8 Minor Window Walker improvements (#233)
* Add the app's icon, if we can
* Add a setting to display the results in-order (THE NEW DEFAULT)
* Change a couple strings to be tighter, less "power-user"-sounding
* Let the code formatter do its buisiness

Originally from 0b789ad, on `dev/migrie/f/stash-forms-should-submit`, which was buried like 7 branches deep. 

Co-authored-by: Mike Griese <zadjii@gmail.com>
2024-12-16 10:22:07 -08:00
Mike Griese
bf6b6b81b6 Add Dynamic lists and Apps on the main page again (#224)
Just to prove that they work. 

This adds the filtering and weighting we were using before to TRA. Lists all get updated in-place, so that the ListView won't flicker like crazy as items get added. And for lists where items get inserted in the middle, we'll update smoothly. 

* 4ad92b64ff429b6959285b6cf88d0feacb643be9...642d98d0571b5d6e03a6faa431c00ede27ce4b24 is what adds support for dynamic lists.
* 09b63d6 I moved some files around to make more sense.
* 09b63d6...2016bcb is where I added apps back onto the main page.

When the `MainListPage` gets a filter string, it will filter both top-level commands and the apps from the `AllAppsPage`. 

I also made the MainListPage show us that it's loading, by setting `IsLoading = appsLoading || extensionsLoading` (more or less).

Does NOT add support for updating fallback items quite yet. One step at a time. 

---------

Co-authored-by: Mike Griese <zadjii@gmail.com>
2024-12-16 09:38:37 -08:00
Mike Griese
19ddcdee5f Add a very obvious GoBack command result
Add a very obvious GoBack command result
Closes #230
2024-12-16 10:30:13 -06:00
Mike Griese
28250f99d8 Add a very obvious GoBack command result 2024-12-15 10:53:56 -06:00
Mike Griese
3df8c87f54 Two colors for tags
Update the idl to allow us to specify separate FG and BG colors. I think that's better honestly.
2024-12-13 17:37:05 -06:00
Mike Griese
7db7d7ece7 no yea that's better 2024-12-13 17:36:36 -06:00
Mike Griese
5299582d85 two colors 2024-12-13 17:24:34 -06:00
Mike Griese
4ad92b64ff Merge pull request #219 from zadjii-msft/dev/migrie/f/TRA-forms-pr
Get the other two types of pages back in. Form pages and Markdown pages. 

![image](https://github.com/user-attachments/assets/27d10b91-6920-421e-912b-a64ca26baf93)

When forms fail to parse, we'll display the exception by replacing the card with one of our one authoring
![image](https://github.com/user-attachments/assets/e3e74d7c-d6da-4d8a-b91b-d66aff8b3d9c)

Markdown pages support multiple bodies, and possibly details:
![image](https://github.com/user-attachments/assets/8abb36e9-d3aa-4d1a-b045-d34d84fe16e6)
![image](https://github.com/user-attachments/assets/047d4bdd-e356-4a70-b62d-4ccd678b7285)



Ref #73
2024-12-13 11:44:53 -06:00
Jordi Adoumie
23e94f2eb9 Merge pull request #188 from zadjii-msft/joadoumie/window-walker
Migrate Window Walker from PT Run
2024-12-13 11:27:04 -05:00
Jordi Adoumie
35f4416fe2 make toplevelcommand a single object that lives over the lifetime of the app 2024-12-13 11:23:21 -05:00
Mike Griese
c5f0881b43 Merge remote-tracking branch 'origin/main' into dev/migrie/f/TRA-forms-pr 2024-12-13 08:34:20 -06:00
Mike Griese
06a5b55caa good feedback from reivew 2024-12-13 07:59:53 -06:00
Mike Griese
3388bb2397 Merge pull request #222 from zadjii-msft/llama/icon-control
Fixes #213
Replaces PR #218

FYI @Ryken100 (thanks for the info and assist in debugging the issue and discussing possible avenues of resolution)
Thanks @zadjii-msft for validating the end path in #218

Before:
```xml
                        <Border x:Name="IconBorder"
                                Grid.Column="0"
                                Width="16"
                                Height="16"
                                Margin="0,0,0,0">
                            <!-- LoadIconBehavior will magically fill this border up with an icon -->
                            <Interactivity:Interaction.Behaviors>
                                <cmdpalUI:LoadIconBehavior Source="{x:Bind Icon, Mode=OneWay}"/>
                            </Interactivity:Interaction.Behaviors>
                        </Border>
```

After:
```xml
                        <cpcontrols:IconBox
                            Grid.Column="0"
                            Width="16"
                            Height="16"
                            Margin="0,0,0,0"
                            SourceKey="{x:Bind Icon, Mode=OneWay}"
                            SourceRequested="{x:Bind help:IconCacheProvider.SourceRequested}" />
```

The IconCacheProvider is the translation layer between having a light-weight control and our specific app's logic/desire for an icon cache, using the deferred event pattern:

```cs
public static partial class IconCacheProvider
{
    private static readonly IconCacheService IconService = new(Microsoft.UI.Dispatching.DispatcherQueue.GetForCurrentThread());

    public static async void SourceRequested(IconBox sender, SourceRequestedEventArgs args)
    {
        if (args.Key == null)
        {
            return;
        }

        if (args.Key is IconDataType iconData)
        {
            var deferral = args.GetDeferral();

            args.Value = await IconService.GetIconSource(iconData);

            deferral.Complete();
        }
    }
}
```

## Details

`IconBox` is a custom control that's a ContentControl, its generic (toolkitable) and should be able to be styled and templated (haven't tested, but no reason it shouldn't as a XAML `ContentControl`, should help @niels9001 a ton). 

It knows how to take an `IconSource` and create the underlying `IconElement` as its content.

It can also take any general value as a `SourceKey` and via an implementation of the `SourceRequested` event, translate a bound general object into the `IconSource` required. This is how caching can be provided by an application as well, for instance (like we'll do here). This uses the deferred events pattern to await the call to the `SourceRequested` event which may need to load data asynchronously

We create a static x:Bind helper `IconCacheProvider` to encapsulate our shared logic for our eventual Icon cache.

Also:
- Renamed IconCacheService.xaml.cs -> IconCacheService.cs 
- Removed old broken behavior (believe ultimate issue was due to instability in loaded/unloaded events, i.e. issue https://github.com/microsoft/microsoft-ui-xaml/issues/1900)
- XAML Styler also did its thing... (some conflict here in config from PowerToys to resolve later, imagine this is also a consequence of us not having CI setup in fork...)
2024-12-13 07:08:59 -06:00
Michael Hawker
80f63dbb9d Fix #213 by implementing a light-weight IconBox control
Replaces PR #218

IconBox is a custom control that's a ContentControl, it's generic (toolkitable) and should be able to be styled and templated.
It knows how to take an IconSource and create the underlying IconElement as its content.
It can also take any general value as a `SourceKey` and via an implementation of the SourceRequested event, translate a bound general object into the `IconSource` required. This is how caching can be provided by an application as well, for instance (like we'll do here).
This uses the deferred events pattern to await the call to the `SourceRequested` event which may need to load data asynchronously

We create a static x:Bind helper `IconCacheProvider` to encapsulate our shared logic for our eventual Icon cache.

Renamed IconCacheService.xaml.cs -> IconCacheService.cs
Removed old broken behavior (believe ultimate issue was due to instability in loaded/unloaded events, i.e. issue https://github.com/microsoft/microsoft-ui-xaml/issues/1900)
XAML Styler also did its thing...
2024-12-13 00:46:36 -08:00
Mike Griese
fa89e1a879 Merge remote-tracking branch 'origin/main' into dev/migrie/f/TRA-forms-pr 2024-12-12 17:23:49 -06:00
Mike Griese
afc9279c24 show details 2024-12-12 17:12:54 -06:00
Mike Griese
7957282af2 more samples, styling 2024-12-12 17:12:54 -06:00
Mike Griese
caf578d0f6 it cannot be this easy, right? 2024-12-12 17:12:54 -06:00
Mike Griese
0884c8c247 Form pages are all wired up 2024-12-12 17:12:54 -06:00
Mike Griese
6578549f98 plumbing 2024-12-12 17:12:54 -06:00
Mike Griese
03b22a545b scrolly posts 2024-12-12 17:12:54 -06:00
Mike Griese
0f6adb0b1b static constructors are neat 2024-12-12 17:12:54 -06:00
Mike Griese
9a2c0f75c8 a binding that makes sense to me 2024-12-12 17:12:54 -06:00
Mike Griese
5a366b523b okay, so yes, if an extension implements this by crashing, we'll throw an exception, that makes sense 2024-12-12 17:12:54 -06:00
Mike Griese
a27cd54501 start adding views, but I have branches to merge down now 2024-12-12 17:12:54 -06:00
Mike Griese
d293421218 Do the AdaptiveCards workaround, but with PreserveNewest so it doesn't rebuild every launch 2024-12-12 17:12:54 -06:00
Mike Griese
719cfb3469 Merge pull request #217 from zadjii-msft/dev/migrie/f/error-context-pr
This allows extension objects to write error messages specifically to the page that owns them. We don't need the `ShowExceptionMessage` anymore, because that just tossed the error at whatever page was open (even if it wasn't the page that had an error).

I also made this a `IPageContext`, rather than `IErrorContext`, so we could pass the page's task scheduler to that object too. That lets us have one base `UpdateProperties` implementation for all extension objects. 

I think this sneakily also adds support for `Page.Title` (separate from `Page.Name`)

Closes #203
2024-12-12 17:11:14 -06:00
Mike Griese
bae9c0cf3b I guess this is how you propertychange a dependencyproperty 2024-12-12 14:12:21 -06:00
Mike Griese
4f8b905369 Merge remote-tracking branch 'origin/main' into dev/migrie/f/error-context-pr 2024-12-12 05:48:18 -06:00
Mike Griese
4dca9436aa Merge remote-tracking branch 'origin/main' into dev/migrie/f/error-context-pr 2024-12-12 05:48:09 -06:00
Mike Griese
44070f83bd Merge pull request #214 from zadjii-msft/llama/image-loading-perf
Just some minor clean-up/perf things I was trying, doesn't actually fix anything though, unfortunately (outside of maybe making startup a bit faster)...

Does NOT fix https://github.com/zadjii-msft/PowerToys/issues/213

We were effectively getting called to load images twice in a few spots, and we were trying to load them everywhere at startup. This minimized that in a few places, but we can't use x:Phase in the DataTemplate for the List Items (as it needs a UIElement), so that caused some issues.

I thought I had a fix for all the duplicate items loading on the home page, but alas no. Have to continue digging into that, but got side-tracked by the above.
2024-12-12 05:45:15 -06:00
joadoumie
7e512565df fixed a bunch of PR comments 2024-12-11 21:03:04 -05:00
Michael Hawker
f176b0d058 Ensure the equality checks for our ViewModels use the underlying Model object so even if we create a new wrapper we'll compare it against what it actually contains. 2024-12-11 12:03:56 -08:00
joadoumie
e791bcdbcd Merge remote-tracking branch 'origin/main' into joadoumie/window-walker 2024-12-11 12:56:24 -05:00
Mike Griese
0ffadc56aa Merge pull request #212 from zadjii-msft/dev/migrie/b/TRA-quits-extensions-on-close
Ref #73. 

What it says on the tin. Terminate extensions when the main window closes.
2024-12-11 05:19:31 -06:00
Michael Hawker
7580872e82 Attempt to fix duplicate items (doesn't work) 2024-12-10 17:33:49 -08:00
Michael Hawker
436ae902f6 Clean-up DP patterns in Loading Behavior 2024-12-10 17:33:28 -08:00
Michael Hawker
80c538733d Iniital attempt at deferring loading of some images 2024-12-10 17:32:03 -08:00
Mike Griese
6a7a2442d9 Load icons again (#208)
This adds a magic helper to load icons for us. Any time you want an icon, just do this:

```xaml
<Border Width="16"
        Height="16"
        Margin="4,4,4,4">
    <Interactivity:Interaction.Behaviors>
        <cmdpalUI:LoadIconBehavior Source="{x:Bind ViewModel.PrimaryAction.Icon, Mode=OneWay}"/>
    </Interactivity:Interaction.Behaviors>
</Border>
```

And that'll magically give us a border filled with the icon, and updating with the binding.

I believe it'll also work with `IRandomAccessStreamReference`s, but I didn't actually test that with #151 yet. 

I didn't actually implement the "caching" bit of this yet. That'll involve doing some locking per-key inside the factory and I didn't want to futz with that in this initial PR to restore icons

---------

Co-authored-by: Mike Griese <zadjii@gmail.com>
2024-12-10 15:34:55 -08:00
Mike Griese
78e7134b93 remove this unneeded nonsense 2024-12-10 17:14:51 -06:00
Mike Griese
3aebd83847 Just make the scheduler part of the page context, that makes more sense 2024-12-10 17:05:09 -06:00
Mike Griese
b731fe9c14 everyone gets an exception context 2024-12-10 17:05:07 -06:00
Mike Griese
1f6daecf98 Add support for the Details pane again (#202)
* 5ff225216cab1690ce55088a0aa2fc1af013c867 Adds the ViewModel
* The rest of the commits work on adding it to the View. 

I had to re-add `CommunityToolkit.WinUI.UI.Controls.Markdown` to get the MD rendered again. 



---------

Co-authored-by: Mike Griese <zadjii@gmail.com>
Co-authored-by: Michael Hawker MSFT (XAML Llama) <24302614+michael-hawker@users.noreply.github.com>
2024-12-10 14:39:10 -08:00
Michael Hawker MSFT (XAML Llama)
a6eba69e60 Merge pull request #199 from zadjii-msft/llama/page-filtering
[WIP] Some initial clean-up for Current Page and test Filtering
2024-12-10 14:26:32 -08:00
Mike Griese
c208d4b842 Terminate extensions on exit (again) 2024-12-10 11:58:54 -06:00
Michael Hawker
f769446ac9 Close when we hit Esc at top-level 2024-12-10 00:02:03 -08:00
Michael Hawker
6810d2cd8a Add some memory to the SearchBox based on the last Filter of the VM 2024-12-09 23:55:01 -08:00
Michael Hawker
39bb62ca1c Fix issue with initial values not showing up (not added during load when there's no Filter) 2024-12-09 23:54:16 -08:00
Michael Hawker
25550fb756 Uncomment Code that was due to a local stale extension 2024-12-09 23:53:34 -08:00
Michael Hawker
c4b930c6d9 Use existing StringMatcher.FuzzySearch helper for the pattern matching of search box 2024-12-09 17:44:14 -08:00
Michael Hawker
cc13026941 Some intial clean-up for Current Page and test Filtering
Has some issues still... (in part needs to update toolkit package for debounce extension update...)
2024-12-09 17:44:14 -08:00
Jordi Adoumie
42a9131800 Merge pull request #210 from zadjii-msft/llama/fix-webview2
Fix missed config update to WebView2 version
2024-12-09 20:35:08 -05:00
Michael Hawker
65668a07b3 Fix missed config update to WebView2 version from https://github.com/zadjii-msft/PowerToys/pull/205 2024-12-09 17:25:49 -08:00
Mike Griese
a3ea44977b Windows.UI.Color considered harmful (#196)
_targets #192_

Adds our own struct to the API for passing colors around. This is lifted straight out of the Terminal, which had to deal with this quite a lot. 

Since this color is a struct (so that it trivially marshals across the ABI), it can't be _null_. So we also added `OptionalColor`, which is explicitly "Maybe a color, maybe not". We were bit enough times by trying to have a special secret `INVALID_COLOR` value that it ultimately made sense just to put another bool in there. 

While I'm touching the SDK and breaking everyone, I figured I'd also do the `s/Loading/IsLoading/g` thing now too. 

---------

Co-authored-by: Mike Griese <zadjii@gmail.com>
2024-12-09 15:05:58 -06:00
Mike Griese
8d8c8c6ab7 Add a bunch more ListItem viewmodel properties, namely tags (#192)
Doesn't use all these everywhere, but starts plumbing them into ViewModel's so that @niels9001 can start using more things in more places. 

![image](https://github.com/user-attachments/assets/f1c7c0c4-c4b2-49a4-889f-2c2e5f595f63)

I didn't actually colorize the tags, because that requires a Brush, and I don't think I'm supposed to put brushes in the viewmodels

ref #73
2024-12-09 11:44:25 -08:00
Mike Griese
186d411382 Bump our WebView2 version, to fix a bunch of build breaks (#205)
WASDK including WebView2 was a mistake. 

Supersedes #200

I also had to:

* Manually restore the WebView2 package into `/packages`. I'm assuming this was just VS being dumb and most people won't have to?
* `git clean -fdx -e *.user -e *.cmd -e packages/** -e Appx/** -e *.svg`  
  * I did it this way because MAYBE i had a couple WIP extensions that I didn't want to nuke, and one .svg file in particular that I yanked from espn.com that I didn't want to nuke
2024-12-09 10:28:43 -08:00
Mike Griese
b586dd611b Add a fallback command for she shell command extension (#207)
Rebase of #201, onto `main`, to avoid the wacky conflicts circa #200 ~ #205

Can you believe, for a second there, I almost forgot we were building a Run replacement. 


---------

Co-authored-by: Mike Griese <zadjii@gmail.com>
2024-12-09 10:10:13 -08:00
Eric Johnson
b7f32e1d18 fix pipeline build (#204)
These copy file tasks were from before moving sdk generation to its own stage.  These are no longer needed.
2024-12-09 09:26:24 -08:00
Eric Johnson
e147abd73d Merge pull request #198 from zadjii-msft/user/ejohn/sdkFix
Fix the sdk generation script
2024-12-06 12:49:25 -08:00
Eric Johnson
cb963f7ed1 Fix the sdk generation script 2024-12-06 10:49:38 -08:00
Jordi Adoumie
d881cf89a6 Add the shell plugin from PT Run, and a ChoiceSet settings helper (#185)
* not super happy with this approach - scratch that, not happy at all

* that's a bit better, still gonna need a review, but it works atm

* going home is better than not... for save action in settings

* welp, undoing that. that did NOT work. something is going on with RaiseSettingsChanged

* hmmm... update() doesn't work the way I want it to - on to the next one

* working on file saving... not working yet

* saving to/loading from file works... but needs some refactoring I'd imagine

* we should dismiss palette on launch...

* make settings a context menu command

* add icon as content in .csproj

* fix icon name

* remove hardcoding settings file

* move SettingsJsonPath to Settings Manager class

* more sensical version of saved settings

* remove settings.json from csproj

* removing comment

* whoops, removing unused Settings.json idea

* no more hadcorded strings... helo Resources!

* here you go

* dont do anything to setting if key is not found in payload

* ChoiceSetSetting example working with fake setting in terminal...

* remove random extra terminal settings changes

* working on shell plugin from PT Run

* getting closer to a reasonable prototype

* it kinda makes some sense now

* maybe ChoiceSetSetting should should only take in array of Choices with the default one being just the first choice

* I think this fixes our winmd pains, but at what cost

* fix naming for command

* fixing vd extension publish profiles + a few other things

* Add choice setting example to the sample pages

* add an additional choice in sample pages choice set example

* add icon

* whoops, forgot the command context menu was broken before this fix!

* address first few PR comments

* removed extra file + removing wox refs in .resx

* changed for loop to for each

* fixing some things for PR review

---------

Co-authored-by: Jordi Adoumie <jordiadoumie@microsoft.com>
Co-authored-by: Mike Griese <migrie@microsoft.com>
2024-12-06 06:51:39 -08:00
Eric Johnson
aeb39043fe Adding extensions SDK nuget generation (#184)
## Summary of the Pull Request
Packing the SDK into a nuget package and creating the build scripts and pipeline to build it.
Pipeline: will auto build the SDK and publish it to ADO artifacts in that build.
Script: Devs can build nuget locally by running BuildSDKHelper.ps1.  This will build and pack the SDK nuget and place it in src\modules\cmdpal\extensionsdk\_build.  This directory has been added to the nuget.config as well.
2024-12-06 06:48:19 -08:00
Mike Griese
b16537dd01 Add the All Apps page to the MVVM app. (#190)
Pretty straightforward. This never got ported, because it didn't have a CommandProvider. Now it does.
2024-12-05 14:07:40 -08:00
Mike Griese
2b986196d6 Bind to Page properties, and add support for item propchange's (#186)
A lot of this is just samples work, so skip on down to `src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/ActionBarViewModel.cs`.

* Updates the Action Bar with the title of the currently active page when we navigate to it
* listens for PropChanged events from `ICommandItem`s in lists and on `IPage`'s (to display a loading bar)
  * Also didn't put this on the ShellPage quite yet, because the diff was already massive, and there's complicated "are _we_ loading the page? did the `IPage` say it was loading?" plumbing that needs to be done. 
* adds rudimentary support for showing an exception, if there's an error we catch
  * I didn't add log this everywhere yet though, since we're not 100% confident on the messaging infrastructure here
  * I decided against putting this on the shell page, because I want users to be able to _go back_ from a page with an exception, and that didn't seem trivial if it was on the shellpage itself
* Then updates a bunch of extensions to better utilize the loading state. 
* Then discovers a really weird bug with event callbacks in WinRT, so I decided to wrap those in try/catches to have extensions explode less often. (#181)
* Then also adds a bunch of "evil" samples, to make a unified place of "things to try and break us"

ref #73

---------

Co-authored-by: Mike Griese <zadjii@gmail.com>
2024-12-05 09:43:27 -08:00
Stefan Markovic
ef35a4ca32 Merge pull request #189 from zadjii-msft/stefan/merge_main_pt_4
Merge upstream PowerToys #4
2024-12-04 18:28:31 +01:00
Stefan Markovic
b082ed45e8 merge conflict fix 2024-12-04 17:53:20 +01:00
Stefan Markovic
5c45cddf86 Merge remote-tracking branch 'mainPT/main' into stefan/merge_main_pt_4 2024-12-04 17:46:32 +01:00
Jordi Adoumie
eb9395001f merging main into branch 2024-12-03 10:01:36 -08:00
Mike Griese
0ccbfd955d Load extensions into TRA (#176)
Targets both #175 (which targets #171), and #172, so the delta is very sloppy. 

There's also some sloppy bits of delta here where I tried to see if the single-instance thing fixed the RoOriginate thing. 

I'm gonna try to tidy all this up a bit. 

Refs #73
2024-12-02 16:35:56 -08:00
Michael Hawker MSFT (XAML Llama)
7f9608f21d ListViewModel Loading Pattern (#180)
On top of #175

This applies the same loading setup between the View and the ViewModel that we had for the ShellPage/ShellViewModel to the ListPage/ListViewModel.

We could abstract this in the View a bit to make work across different combinations of page types and viewmodels later, so they're all consistent, e.g. IInitializableViewModel interface for the `InitializeCommand`.
2024-11-28 03:35:11 -08:00
Niels Laute
c66efdaa32 Niels9001/ux explorations (#174)
UX changes:

![image](https://github.com/user-attachments/assets/12ca13fc-835f-4ff8-8511-98ecefc486b3)
2024-11-27 10:44:14 -08:00
Mike Griese
858db45ece Add more layers of ViewModels to wrap extension objects (#175)
_targets #171_ 

This is the direction I was thinking with the comments in https://github.com/zadjii-msft/PowerToys/issues/73#issuecomment-2496004179.

Mainly, 
* I'm making sure that ViewModels which wrap up some extension object all have a local copy of their data.
* They all use an `async Task InitializePropertiesAsync()` to retrieve their properties from the extension itself. 
* Beyond the `ExtensionObject` they own, they only keep around _other view models_.

I did this for `ListItem` and `CommandContextItem` currently. They both inherit from `CommandItemViewModel`, so they're really all doing the same thing.

If this seems like the direction we want to go, I can tidy up ListPage too, and keep wrapping up more extension objects like this. 

The BODGY thing I'm doing here is 

```cs
viewModel.InitializePropertiesAsync().ContinueWith(t => { /*TODO this feels dirty*/ });
```

in `ListViewModel.cs`. Basically just yeeting off a task to load the properties for the item (separately for each item?!). Feels DEFINITELY wrong.
2024-11-27 10:20:42 -08:00
Mike Griese
f7a1d23358 Populate the context menu with actual items (#171)
* Allows `enter` to activate items again
* populates the context menu in the `ActionBar` with real values, as the user moves the selection
* Also adds a generic `PerformCommandMessage`, which lets us have one message for "go to a page, or invoke a command"

ref #73
2024-11-27 10:19:09 -08:00
Michael Hawker MSFT (XAML Llama)
1279241322 Merge pull request #177 from zadjii-msft/dev/migrie/single-instance
Make the app single-instanced again
2024-11-26 16:04:59 -08:00
Michael Hawker MSFT (XAML Llama)
51e2ad8333 Merge pull request #178 from zadjii-msft/dev/migrie/silencio-debugo
Silence nativeDebugging spew
2024-11-26 16:02:08 -08:00
Mike Griese
e4b78a7c34 silencio nativeDebugging 2024-11-26 15:17:46 -06:00
Mike Griese
55b07c597a The amazing duplicating copyright header 2024-11-26 15:16:23 -06:00
Mike Griese
8b3325bb03 making it single instanced wasn't the source of the rooriginates 2024-11-26 15:10:03 -06:00
Mike Griese
01d56665c9 I think this fixes our winmd pains, but at what cost (#172)
1. Manually copy `Microsoft.CmdPal.Extensions.winmd` into our helper library's output directory. If we do that, then it rolls up to the packages that reference it. 
   * This only started failing for me on 17.13. Before that (I think on 17.11) this just worked automatically?
   * This feels bodgy
2. Update the helper script to be more informative

Refs #104. I don't want to say that it fixes it till we never see it again, but I think this fixes it.

I did not test this on 17.11. I'll need to find a machine that has it to make sure I don't explode the world
2024-11-26 13:08:19 -08:00
Jordi Adoumie
79f24bc290 cleaned up command result 2024-11-25 15:40:39 -08:00
Jordi Adoumie
6e3507af16 returning a new commanditem each time in toplevelcommands seems to work best? 2024-11-25 15:36:39 -08:00
Jordi Adoumie
1147b9a7af commit before I remove cancellation token (I hope) 2024-11-25 15:18:09 -08:00
Jordi Adoumie
652ed91d81 it works... but is a bit buggy 2024-11-25 10:35:33 -08:00
Stefan Markovic
014a340c7a Merge latest PowerToys upstream (#173)
d26bf6e7bca938305e3d7f60072c9c3dbc3fb581 with the notable changes

This is needed in order to build successfully other PT modules that use CommunityToolkit.Mvvm nuget package package. Warnings are introduced by newer version of MVVM package used for CmdPal - 8.4.0-preview2. I tried using the same MVVM used in PT but then CmdPal fails to build. I guess let's go with this here as I expect we'll bump mvvm package sometime soon on upstream so issues will be resolved on PT side.
2024-11-25 03:26:23 -08:00
Jordi Adoumie
7f026592bf mid merge -- doesn't build 2024-11-24 16:34:24 -08:00
Jordi Adoumie
3ce188d47a no more errors 2024-11-24 09:39:49 -08:00
Jordi Adoumie
7b597c047e bug fix 2024-11-24 09:39:31 -08:00
Jordi Adoumie
8de07ae5c7 adding settings manager 2024-11-24 09:39:02 -08:00
Jordi Adoumie
679c0a9cbe removed empty folders 2024-11-24 08:39:08 -08:00
Jordi Adoumie
cfc9b1c057 fix properites bug 2024-11-24 08:35:39 -08:00
Jordi Adoumie
adce6da4ba add built in window walker command to Poc 2024-11-24 08:34:54 -08:00
Jordi Adoumie
5203d716be scaffolding set up for window walker migration from og PT Run Plugin 2024-11-24 08:32:51 -08:00
Michael Hawker MSFT (XAML Llama)
e45c253fd9 Some various minor clean-up (#170)
<!-- Enter a brief description/summary of your PR here. What does it fix/what does it change/how was it tested (even manually, if necessary)? -->
## Summary of the Pull Request

- 17a3088ea581ec0826ffa212103fe3099d085c32 Switches non-AOT safe RegisterAll call to Register with type for Messenger pattern
- fa962a574db0bcf168f322127bc3fbae8c649e7a Use Dependency Injection for Constructor of ShellViewModel to start this pattern going (as we covered in the MVVM crash course mtg)
- 0bdd21a837352bba13901a7fc58ff28f89551147 Re-add Quit/Reload and use Messenger, but they won't appear in UI yet as Fallback Commands and we don't have search
- dd1b1289cb4ccf4a1dece59f5ed4bb206c5ee39a Setup initial debounce strategy for search in UI layer, though search still not implemented (think found a WCT bug too, will investigate)
- 98041ea11043732fa449c7a99d9e64d43597fcaf Update to latest WCT packages to help us test before our release 😅
2024-11-22 04:47:31 -08:00
Mike Griese
c0589f833a Hide the titlebar, again (#169)
Does the `ExtendsContentIntoTitleBar` thing to hide the titlebar.

Also re-adds the logic that resizes our drag rect, so that the window is movable again.
2024-11-22 04:42:33 -08:00
Mike Griese
dcc56861b9 A couple small MVVM changes, as a sanity check (#168)
This is my absolute first attempt at doing anything in the MVVM project, so I want to make sure i'm not wildly off base.

* 7afc7954b Simplest possible thing: Add the other builltins
  * Just re-includes the old builtins, save for quit and reload. 
* c203c3385 Styles from the original prototype too
  * Adds the ListItem styling from before, with the subtitles below. Leaves space for icons, but I'm leaving them out for now. 
* 56eb141bf Navigate deeper into lists
  * My first attempt at doing things The Right Way - I think I can just send messages like this, to have the ShellPage navigate us around
* 57bb6ebe6 Navigate back too
  * Similarly - if we can go in, we should be able to go out
* 5c87a62bf slide-y navigations
  * I like the slide transitions, so I just wanted to see them in action again. It's _good_
* b1ef6896a Keep focus in the search box
  * When we navigate to a new list page, try to keep the focus in the search box still
2024-11-21 09:55:02 -08:00
Mike Griese
0a275fd7bd ListItems, ContextItems, and the TopLevel are ICommandItems (#164)
This PR targets #160. A lot of the ideas that led here were written down there first. Especially the "stub" command bits, which precipitated the value for an interface that matched what the top-level commands can really return. 
 
The TL;DR of this PR is found here:
https://github.com/zadjii-msft/PowerToys/issues/153#issuecomment-2486367825

* [x] Closes #153 
* [x] Closes #109 


Shockingly, the code change is kinda small. It's mostly just careful find/replace's. 

Fallback handlers took the biggest delta, but even they work again in the prototype.
2024-11-21 08:05:17 -08:00
Mike Griese
b1039f74cc Add aliases to the protoype; improve calculator command (#167)
One final yolo for the prototype app, just to see how it feels. 

This adds very rudimentary alias support to the prototype app. I only hardcoded a few of them - calculator, registry, windows settings, and my own virtual desktop switcher. The aliases are powered by the ICommand.Id, added in #160 

Now that we have the alias for the calculator though, it needed to be a lot better. I did that too. Now it saves your history (per launch session), and you can copy the results to the clipboard. And also use TextToSuggest to fill in the current result. And also if you select an old result, it'll plop it back into the search text.
2024-11-21 07:49:15 -08:00
Mike Griese
6b21ef2e5d Remaining spec details for the extension lifecycle (#160)
Cleans up a huge remaining TODO section from the spec about the extension lifecycle. 

This documents affordances for extensions to be lazy-loaded, so that we don't always load every extension process. Extensions can also opt-out of this behavior. 

This one doesn't actually have code associated with it. It sounded like a lot to write, for code that would eventually just be tossed next week. 

It does, however, have a drive-by fix for the spongebot extension

Closes #81
2024-11-21 04:49:14 -08:00
Mike Griese
da314ce4c7 Add a snippet for making a new PR (#165)
What it says on the tin. 

I usually keep this in the palette, but I keep also clean building and blowing away my `state.json`

---------

Co-authored-by: Mike Griese <migrie@microsoft.com>
2024-11-21 04:47:25 -08:00
Jordi Adoumie
cc3f1f9515 Add Settings to Terminal Profiles Extension (Core) (#162)
## Summary of the Pull Request

This PR adds the equivalent settings functionality seen in PT Run Profiles Plugin out of the box. 

It leverages the Settings class helpers to create the settings form. 

Here are some screenshots of the resulting changes:

![image](https://github.com/user-attachments/assets/c7bb9582-93a2-41c0-9351-0bec5c27fbbf)

![image](https://github.com/user-attachments/assets/c932cd4c-6cfd-47be-9bf9-d18ff4dbb85c)

![image](https://github.com/user-attachments/assets/cee62edb-aa35-42e0-b73a-aab79514c7e1)


---------

Co-authored-by: Jordi Adoumie <jordiadoumie@microsoft.com>
Co-authored-by: Mike Griese <migrie@microsoft.com>
2024-11-21 04:46:10 -08:00
Mike Griese
fdc483ce2c Merge pull request #159 from zadjii-msft/dev/migrie/check-extensions-script
To help debug #104, though, doesn't fix it
2024-11-21 06:36:57 -06:00
Mike Griese
175a16058d Merge pull request #166 from zadjii-msft/dev/migrie/f/side-by-side-prototype
What it says on the tin.
2024-11-21 06:24:47 -06:00
Mike Griese
a6eeba9816 Allow the prototype and TRA to run at the same time 2024-11-21 06:23:16 -06:00
Mike Griese
dc8a529e86 A collection of prototype fixes (#158)
Probably the last real prototype commit. 

There was a collection of _little things_ that made the current state of the prototype a little wacky. This fixes a lot of them, so that the prototype is in a "demoable" state. 

* Updates the WinUI version - there was a bugfix in that minor version bump that's needed to help fix the `E_LAYOUTCYCLE`. 
* The list no longer flickers uncontrollably as it loads top-level commands
* filtering the list is a lot more efficient (still not what it used to be though)
* Forms us a `ListView` instead of an `ItemsRepeater`. `ItemsView` also had a layout cycle, go figure. 
* Fixes the namespace of the samples extension, so it doesn't conflict with the SSH one
* Adds a bunch of icons, subtitles
* When the list updates, we'll try to maintain the selected item (really useful for something like the mastodon extension)
* When we update tthe filter text, we'll do _way_ better at actually updating our own `SelectedItem`, 
  * so that the Details doesn't stay open on an app if you hit `esc`
  * so that the selection doesn't.... fuck off to space (closes #155)
* Fixes the calculator command to show up originally in the list
* Includes _some_ of the styling changes @niels9001 is working on (notably, the subtitle being on it's own line)
* I think also fixes #113
2024-11-15 11:00:15 -08:00
Mike Griese
42e7566926 Add AccentColors to Pages (#157)
Just for @ niels9001 to play around with.
2024-11-15 10:54:14 -08:00
Mike Griese
f675217508 Add a helper to sanity check extension installs 2024-11-15 08:44:29 -06:00
Mike Griese
eb76898d2c Fix a layout cycle crash in the prototype (#156)
Resurrects the Pokedex extension I was working on before Luca was born.

This is a simple sample of a list with a _lot_ of items, and tags tags tags. It helps to repro a E_LAYOUT_CYCLE that we were seeing. 

This also fixes that layout cycle, by removing that unneeded `StackPanel`


Fixes #WaitItLooksLikeINeverFiledThis
2024-11-15 05:31:46 -08:00
Mike Griese
1e7cc5cbda Spec, basic impl for TextToSuggest (#145)
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 https://github.com/zadjii-msft/PowerToys/issues/121#issuecomment-2464704543, 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
2024-11-12 05:58:43 -08:00
Mike Griese
a41e7e7d00 MAIN: Update lists for better dynamic lists, pagination, async (#150)
Originally in #142 and #144, but github didn't automatically change the base branch 😨 

----- 

As discussed in #77. 

Biggest change is that `IDynamicListPage` doesn't have `GetItems(String query)` anymore. Instead, the host will call the `SearchText` setter, and the list can raise `ItemsChanged` to let the host know to call `GetItems` again

See src/modules/cmdpal/Exts/EverythingExtension/Pages/EverythingExtensionPage.cs for an example of how to update dynamic extensions. 

Closes #131 
Closes #77 

----

* I put the sample pages into a single top-level command, so deploying that extension didn't add 5 top-level commands to your palette
* I tightened up some of the phrasing for the samples, and the builtins, to be less repetitive
* I added a few icons
* I made the markdown sample longer (and work more reliably)
* and also thank you Hawker for auto-format on save, you the man
2024-11-12 05:55:40 -08:00
Mike Griese
b96ab5e871 Add helper classes for very simple settings (#141)
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`](https://github.com/zadjii-msft/PowerToys/compare/main...dev/migrie/s/settings-for-extensions#diff-ac06e39258579222e94539315ad59e0bf04f3b0f3e83a2f8a11aa5a42d569ebe) for an example.


Closes #123
2024-11-12 05:37:51 -08:00
Stefan Markovic
4a23ba25ac Merge upstream main (#149)
* [Settings]Fix release cycle links in OOBE What's New page (#35801)

* Fix release cycle link in OOBE

Previously it would point to the 5ft last release instead.

* Adressed feedback

* [Deps]Upgrade System.IO.Abstractions (#35656)

* Upgrade System.IO.Abstractions to the latest stable release
2024-11-12 05:37:23 -08:00
Mike Griese
8344fe77a6 Fix the build (#146)
Whoops. 

We were accidentally deploying all the extension packages to the _same_ directory. That meant we could only ever register one at a time - including the extension host. yikes.
2024-11-11 05:36:16 -08:00
Stefan Markovic
b10325430c Integrate into PowerToys.sln (#140)
## Summary of the Pull Request
 - integrate all projects into PowerToys.sln
 - remove all other .sln files
 - remove unneeded files IMO (LET ME KNOW IF SOME OF THOES FILES ARE ACTUALLY NEEDED!)
2024-11-08 10:02:07 -08:00
Mike Griese
c319a74e74 Create an IExtensionHost class, to enable logging (#137)
Allow extensions to send status messages to the host app.

As an example, you can now:

```cs
ExtensionHost.LogMessage(new LogMessage() { Message = "This is a test, from the HackerNews sample" });
```

And have that appear in the host apps debug console. 

Closes #134 
Closes #118 

Should also make resolving #87 and #135 easier. 

We don't have the design of these status messages totally planned out yet. But this should at least make it possible. For those in the back, **this does not actually display these messages anywhere in the host UX currently**. 

-----

Other information that's currently included:
* The host app's HWND. Way too many times does the Windows API need an HWND, which extensions won't have, but the host app does. 
* The `LanguageOverride`. This is in case we ever want to support `PrimaryLanguageOverride` in the host app.
2024-11-05 10:22:15 -06:00
Mike Griese
6ee3ad68b0 Implement the "explore" page from mastodon (#132)
Actually implements the mastodon extension. Open APIs are great. My baby sleeping for four hours is even better. 

This sample has a list of posts. Each item has Details, which are the post bodies. viewing the post opens a form page with the whole thread of that post and any replies on it. 

* closes #101 
* closes #79 
* Also removes the space for the `HeroImage` if we don't need it. 
* Fixes an issue where forms straight up didn't work (they weren't loading on the main thread)
* Adds a helper `OpenUrl` command (does what it says on the tin)

This extension covers a lot of concepts so I think it's a valuable test. I'm hoping to do auth for allowing you to post/comment/favorite/boost/etc in the future. 

Also helped understand what we need for pagination. 

Also revealed that ItemsRepeaters are cursed.
2024-11-05 10:21:39 -06:00
Jaime Bernardo
40dc46b6e1 Merge upstream main into zadjii-msft/stefan/merge_pt_main
Merge PT main
2024-11-05 13:29:33 +00:00
Stefan Markovic
20914094a9 Merge remote-tracking branch 'mainPT/main' into stefan/merge_pt_main 2024-11-05 14:12:01 +01:00
Mike Griese
878692650a Removed sections from the spec, prototype (#129)
As discussed. 

I'm getting rid of  ``ISection[]`` and replacing that with just a `String Section { get; }`[^1] property on `ListItem`'s themselves. 
 
I didn't want to bother wasting engineering resurrecting the `SectionListView` thing in the prototype without `ISection`s, so I'll just leave that for us to implement The Right Way in the MVVM exe. 
 
This should keep the prototype running, and keep us moving forward

[^1]: we discussed making this an object. I didn't here, but we probably can in the future.
2024-11-03 10:38:18 -06:00
Jordi Adoumie
3ef20c5b23 Adding Windows Settings from PT Plugin (#128)
* first pass for windows services core ext

* added Windows Registry Plugin

* updated PR to reflect wt profiles, registry, and services extensions and incorporating feedback

* first pass for windows settings

* Added gh issues for TODOs

* fixed placeholder text for open command and added additional GH issue refs

* move list page and command to ctor to avoid new allocation each time TopLevelCommands is invoked

* change KeepOpen to Dismiss on CommandResult for OpenSettingsCommand

---------

Co-authored-by: Mike Griese <migrie@microsoft.com>
2024-11-03 08:47:15 -06:00
Jordi Adoumie
580fe99094 Adding Windows Services, Registry Core Ext from PT Run (#120)
* first pass for windows services core ext

* added Windows Registry Plugin

* updated PR to reflect wt profiles, registry, and services extensions and incorporating feedback

* fixing dead code
2024-10-31 10:56:00 -05:00
Mike Griese
ae5e6ed594 Add Connor's Everything extension (#106)
This is his Everything extension from the Hackathon. I'm merging this in as-is, to use as a base for future testing. I don't want to have a bunch of prototypes that are totally orphaned

It requires Everything to be running in the background.

My changes are
* 0e2d9edfcec65b032adc860ffb5be04bb3076f07: merge main
* 7d1e4dfeb54e58838c75a2209bd85dc2ccf14448: don't use an absolute path to everything64.dll
* 3f71bd5670e98d508291516db34c583a2d2d9e13: Add a `Details` to the error element that's displayed when there's an exception from an extension. 
* 67453d732f0e825913f232e04d05d934306518c7: Add actual error messages specific to Everything
* a69f811594aa4f18756e60293e7bcd9cee16341a: Use the x86 path to the icon, if needed




---------

Co-authored-by: Connor Plante <connor.plante@gmail.com>
2024-10-23 14:54:46 -05:00
Jordi Adoumie
2c8e24ad65 Merge pull request #119 from zadjii-msft/joadoumie/windows-terminal
Adding Windows Terminal Plugin from PT Run
2024-10-23 15:03:47 -04:00
Jordi Adoumie
4db1cc8fcc Added runas admin to Context Menu 2024-10-23 15:00:20 -04:00
Jordi Adoumie
63dcead687 Added terminal icon for profiles 2024-10-23 14:35:51 -04:00
Jordi Adoumie
f878b42abe launching works for profiles 2024-10-23 11:36:02 -04:00
Jordi Adoumie
8e9e9f1a66 terminal profiles showing up 2024-10-23 10:25:21 -04:00
Clint Rutkas
7b0b298f00 Merge pull request #105 from microsoft/main
sync to main
2024-10-21 20:30:56 -07:00
Clint Rutkas
950f6afdda Merge branch 'main' into main 2024-10-21 20:29:41 -07:00
Clint Rutkas
c7fae30123 Merge branch 'microsoft:main' into main 2024-10-08 17:26:40 -07:00
Clint Rutkas
8ba465476f Merge branch 'microsoft:main' into main 2024-09-27 03:43:06 -07:00
Jordi Adoumie
57fe0280b3 Merge pull request #71 from zadjii-msft/joadoumie/sample-clean-up
sample clean up
2024-09-23 11:56:42 -04:00
joadoumie
94931494f3 sample clean up 2024-09-23 11:54:38 -04:00
Michael Hawker MSFT (XAML Llama)
e5b1594dba Merge pull request #68 from zadjii-msft/llama/di+vm
Setup DependencyInjection
2024-09-20 15:24:16 -07:00
Jordi Adoumie
18f6b5b0fd Merge pull request #69 from zadjii-msft/users/ethanfang/youtube-ext
YouTube Extension for Command Palette
2024-09-20 15:53:13 -04:00
Kristen Schau
b99f530cc5 nits 2024-09-20 10:33:16 -04:00
Ethan Fang
88e5ad1f3d Updated naming and taggin 2024-09-20 00:10:21 -05:00
Michael Hawker
53b584049c Basic keyboard handling in SearchBox demonstrating decoupled control messaging 2024-09-19 15:35:35 -07:00
Michael Hawker
e6df40eec7 Use ObservableGroupedCollection to handle grouping of sections for UI between ViewModel and View
ObservableGroupedCollection is from MVVM Toolkit: https://learn.microsoft.com/dotnet/communitytoolkit/mvvm/observablegroupedcollections
2024-09-19 12:44:48 -07:00
Michael Hawker
4cba257bdd Setup DependencyInjection for the initialization of the Built-In Providers and the main view model
Does some quick plumbing to show things in the existing UI via MVVM.
TODO: Need to sort out how to better separate the models and viewmodels and how things behave within our special top-level 'main' page vs. extension pages, etc...
2024-09-19 12:44:01 -07:00
Kristen Schau
9ab84cb3a5 Merge pull request #70 from zadjii-msft/krschau/size-acrylic 2024-09-19 13:06:04 -04:00
Kristen Schau
7ac0358a5d Bring in window size and acrylic 2024-09-19 12:56:28 -04:00
Ethan Fang
19f46d2c71 updates based on Jordi convo 2024-09-19 10:41:41 -05:00
Ethan Fang
70ddb2e0ac Merge branch 'users/ethanfang/youtube-ext' of https://github.com/zadjii-msft/PowerToys into users/ethanfang/youtube-ext 2024-09-19 10:11:16 -05:00
Ethan Fang
8524961d34 minor fixes to query size and naming 2024-09-19 10:11:01 -05:00
Kristen Schau
66411a91cb Fix copyright in editorconfig 2024-09-19 10:30:58 -04:00
Kristen Schau
9316566f91 Cleanup / typos 2024-09-19 10:13:55 -04:00
Jordi Adoumie
961823d6a9 Merge branch 'main' into users/ethanfang/youtube-ext 2024-09-19 09:51:58 -04:00
Ethan Fang
0a6b500e1a YouTube Extension V0 Complete 2024-09-19 01:31:48 -05:00
Kristen Schau
5ceb38671a Fix some typos 2024-09-18 18:56:23 -04:00
Kristen Schau
36195db409 tabs -> spaces 2024-09-18 18:44:57 -04:00
Kristen Schau
0a02d19701 Merge pull request #67 from zadjii-msft/user/krschau/actionbar
Add ActionBar control
2024-09-18 18:40:27 -04:00
Kristen Schau
95c880ca21 Add ViewModels for ActionBar 2024-09-18 17:40:52 -04:00
Ethan Fang
e9ee4046df savings changes for jordi to play around 2024-09-18 15:04:41 -05:00
Kristen Schau
b7a4706e49 Add ActionBar 2024-09-18 15:20:09 -04:00
Michael Hawker MSFT (XAML Llama)
22cfd60863 Merge pull request #65 from zadjii-msft/llama/ext
Add ShellPage
2024-09-18 11:25:29 -07:00
Clint Rutkas
71375e75f1 Merge pull request #66 from zadjii-msft/dev/crutkas/moveAppsToDedicatedPlugin
refactoring apps to dedicated project
2024-09-18 11:03:10 -07:00
Clint Rutkas
080d21b09f removing x86 references 2024-09-18 11:02:47 -07:00
Clint Rutkas
6b7930a879 refactoring apps to dedicated project 2024-09-18 10:57:20 -07:00
Michael Hawker
12f29ab6a3 Setup ShellPage and Loading Placeholder 2024-09-18 10:52:37 -07:00
Michael Hawker
c92800fc32 Give new UI app same identity as POC 2024-09-18 10:51:08 -07:00
Clint Rutkas
2cfbe68942 Merge branch 'microsoft:main' into main 2024-09-18 09:10:43 -07:00
Kristen Schau
5f778cfe43 Merge pull request #64 from zadjii-msft/krschau/searchbar
Make SearchBar its own control
2024-09-18 11:37:23 -04:00
Kristen Schau
2f64260fef Put back events 2024-09-18 11:24:42 -04:00
Kristen Schau
d6636b9450 Add SearchBar 2024-09-18 11:24:38 -04:00
Kristen Schau
a8f12731a2 Merge pull request #63 from zadjii-msft/user/krschau/converters2
Use built in converters
2024-09-18 11:11:01 -04:00
Kristen Schau
9561ff9e28 Use built in converters 2024-09-17 20:07:29 -04:00
Ethan Fang
52cac94e26 tags, details, & minor updates 2024-09-17 16:17:49 -05:00
Kristen Schau
316aefba64 Add assets 2024-09-17 16:35:07 -04:00
Kristen Schau
b12930e943 cleanup 2024-09-17 15:41:12 -04:00
Clint Rutkas
91f659e1ed Shuffling a smidge just for visual to know UI vs POC 2024-09-17 12:23:44 -07:00
Clint Rutkas
40ef2547ee Getting MVVM in 2024-09-17 12:17:14 -07:00
Kristen Schau
355762629f Remove unused title bar (#62)
Remove unused title bar
2024-09-17 14:52:43 -04:00
Kristen Schau
1748b78034 Remove some stuff we don't use 2024-09-17 14:38:34 -04:00
Jordi Adoumie
3403031505 Merge pull request #61 from zadjii-msft/joadoumie/sample-updates
small changes to sample
2024-09-17 13:34:55 -04:00
Jordi Adoumie
bb51ca544f small changes to sample 2024-09-17 13:33:50 -04:00
Ethan Fang
26ced6c51e Merge branch 'main' of https://github.com/zadjii-msft/PowerToys into users/ethanfang/youtube-ext 2024-09-17 12:17:01 -05:00
Jordi Adoumie
1436fc0d6e Merge pull request #60 from zadjii-msft/niels9001/fluent3
[UX] Fluent design
2024-09-17 13:07:57 -04:00
Ethan Fang
54e7f694c8 YouTube Extension with API Auth (& verification) as well as "Search Videos" command (working) 2024-09-17 12:04:34 -05:00
Niels Laute
3c44be0648 More tweaks 2024-09-17 16:56:15 +02:00
Niels Laute
a5b861280f Other pages 2024-09-17 15:15:37 +02:00
Niels Laute
ac23fd2c9e Moving styles to resourcedictionary 2024-09-17 14:42:17 +02:00
Niels Laute
964c5eb5cd Adding SubtleButtonStyle 2024-09-17 14:38:19 +02:00
Niels Laute
bd4e058c6f Initial pass 2024-09-17 14:31:49 +02:00
Jordi Adoumie
8395c50093 Merge pull request #58 from krschau/main
Fix namespaces
2024-09-16 17:16:30 -04:00
Kristen Schau
55b4ad62bf Fix more namespaces 2024-09-16 17:05:00 -04:00
Kristen Schau
4a5fd00ce1 DeveloperCommandPalette -> WindowsCommandPalette 2024-09-16 17:04:50 -04:00
Jordi Adoumie
fed659662f Merge pull request #56 from zadjii-msft/joadoumie/updating-docs
fixing bugs in my docs
2024-09-13 14:11:55 -07:00
Jordi Adoumie
2fd268784e fixing bugs in my docs 2024-09-13 14:08:23 -07:00
Jordi Adoumie
6ec2079353 Merge pull request #55 from zadjii-msft/joadoumie/updating-docs
more doc updates
2024-09-13 14:06:13 -07:00
Jordi Adoumie
c71881af54 more doc updates 2024-09-13 13:54:58 -07:00
Jordi Adoumie
598a00f13e Merge pull request #54 from zadjii-msft/joadoumie/updating-docs
doc edits
2024-09-13 13:31:18 -07:00
Jordi Adoumie
c5dc35ce4a doc edits 2024-09-13 13:29:17 -07:00
Jordi Adoumie
f06dd26d41 Merge pull request #53 from zadjii-msft/joadoumie/updating-docs
updating docs
2024-09-13 13:23:30 -07:00
Jordi Adoumie
10afc7e6ca updating docs 2024-09-13 13:21:47 -07:00
Jordi Adoumie
2335e85b00 Merge pull request #52 from zadjii-msft/joadoumie/modify-template
tweaking template
2024-09-13 10:14:47 -07:00
Jordi Adoumie
77e0449b56 Adding folder structure to match docs 2024-09-13 09:44:59 -07:00
Jordi Adoumie
1de870a8a8 tweaking template 2024-09-13 09:40:31 -07:00
Clint Rutkas
f464b6979c Merge pull request #51 from zadjii-msft/merge-wasdk-1.6
Merge latest PowerToys main with Windows App SDK 1.6
2024-09-12 08:51:34 -07:00
Jaime Bernardo
a1a2677c2d Reference WebView2 on Projects where WinAppSDK is referenced 2024-09-12 11:22:12 +01:00
Jaime Bernardo
869fd972db Put .vsconfig more in line with versions in PowerToys 2024-09-12 11:07:18 +01:00
Jaime Bernardo
f96c03de4a Adding partial to classes that implement WinRT interfaces 2024-09-12 10:51:18 +01:00
Jaime Bernardo
882205b8ab Add WebView 2 projects alongside Windows App SDK 2024-09-12 10:41:13 +01:00
Jaime Bernardo
0b0cf459a3 Update versions to WASDK 1.6 2024-09-12 10:40:55 +01:00
Jaime Bernardo
44a04630f4 Merge branch 'main' into merge-wasdk-1.6 2024-09-12 10:08:16 +01:00
Clint Rutkas
d89d2c9c1c slamming in public profiles 2024-09-10 14:59:56 -07:00
Jordi Adoumie
5b48d5f6ea Merge pull request #50 from zadjii-msft/joadoumie/sample-extension
SSH / Sample Pages Exetnsion
2024-09-09 09:01:53 -07:00
Jordi Adoumie
b82840c5ed dynamic list page example 2024-09-07 22:31:52 -07:00
Jordi Adoumie
7f489f2c13 Add example for list page with details 2024-09-07 09:12:47 -07:00
Jordi Adoumie
3cf16421bb cleaned up form page example 2024-09-07 08:59:33 -07:00
Jordi Adoumie
9ba9a93cb5 fixing bugs 2024-09-07 08:40:20 -07:00
Jordi Adoumie
74c7f83482 ty clint 2024-09-07 08:18:05 -07:00
Jordi Adoumie
350ffd372a Merge branch 'main' into joadoumie/sample-extension 2024-09-07 08:11:28 -07:00
Jordi Adoumie
55bef30b01 fix bug 2024-09-07 07:59:02 -07:00
Jordi Adoumie
600d039084 added sample form 2024-09-07 07:51:53 -07:00
Jordi Adoumie
4f14db8772 adding additional samples 2024-09-07 00:36:47 -07:00
Jordi Adoumie
b8ac6b82a8 fix naming in .csproj 2024-09-06 23:29:57 -07:00
Jordi Adoumie
e2c220f5a9 working implementation of SSH Keychain Extension 2024-09-06 23:24:10 -07:00
Clint Rutkas
fc90b2a32e Merge pull request #49 from zadjii-msft/dev/crutkas/remainingErrors
resolving last errors
2024-09-06 17:05:16 -07:00
Clint Rutkas
133627ac2e removing property 2024-09-06 15:42:16 -07:00
Clint Rutkas
c36da68701 last error! 2024-09-06 15:41:26 -07:00
Clint Rutkas
4524a6c079 more and more :) 2024-09-06 15:37:10 -07:00
Clint Rutkas
d157db277e Merge pull request #48 from zadjii-msft/dev/crutkas/addArmBackIn
Recovering arm64 support and adjusting runtime ID for x64
2024-09-06 13:30:23 -07:00
Clint Rutkas
a76af1f8c7 missed one 2024-09-06 13:29:44 -07:00
Clint Rutkas
f77a747d15 Recovering arm64 support and adjusting runtime ID for x64 2024-09-06 13:27:51 -07:00
Mike Griese
3b7a33b3dc Some other SDK renaming (to get rid of old Actions references) (#47)
* All the `ActionProvider`s were renamed to `CommandProvider`
* `Page`s all got a `Title`
* `IListItem` got it own `Icon`
* `ActionResult` -> `CommandResult`
* add all the pubxml's we lost
2024-09-06 14:12:27 -05:00
Mike Griese
f5d58be822 Add a class diagram (#44)
this represents the CURRENT STATE of the spec
2024-09-06 12:53:29 -05:00
Clint Rutkas
6c8f1bf8ba Moving to root cmdpal (#46)
should be unified root now for most things
2024-09-06 12:46:58 -05:00
Clint Rutkas
623ceec2c8 Merge pull request #45 from zadjii-msft/dev/crutkas/pathToRoot
simplifying path roots for cpp
2024-09-06 08:52:12 -07:00
Clint Rutkas
af1bfc8170 simplifying path roots 2024-09-06 08:23:34 -07:00
Clint Rutkas
95df52dc44 Merge pull request #43 from zadjii-msft/dev/crutkas/restOfCleanup
Whole lotta cleanup, calling it a night
2024-09-06 07:01:41 -07:00
Clint Rutkas
a1220e2a4f adjusting 2024-09-05 21:59:18 -07:00
Clint Rutkas
cce3124cdd more adjustments 2024-09-05 21:47:07 -07:00
Clint Rutkas
3c3c82298a getting errors fixed 2024-09-05 21:40:47 -07:00
Clint Rutkas
283d74511c more errors 2024-09-05 21:39:35 -07:00
Clint Rutkas
3258d5c52c adjusting form stuff 2024-09-05 21:16:24 -07:00
Clint Rutkas
411fab236d few more, onward to 50 2024-09-05 21:13:10 -07:00
Clint Rutkas
4c353f2464 samll adjustments 2024-09-05 21:10:33 -07:00
Clint Rutkas
737495d251 More cleanup! 2024-09-05 21:07:31 -07:00
Clint Rutkas
2fb5251f38 more clenaup 2024-09-05 21:02:58 -07:00
Clint Rutkas
4f6ed8f91b lotta cleanup 2024-09-05 20:56:53 -07:00
Clint Rutkas
d7a1d27778 Merge pull request #42 from zadjii-msft/dev/crutkas/sdkRefactorPart3
Dev/crutkas/sdk refactor part3
2024-09-05 20:37:59 -07:00
Clint Rutkas
452f26c53d operational! 2024-09-05 20:36:26 -07:00
Clint Rutkas
a93d8b94d1 should be passing, 2024-09-05 20:34:50 -07:00
Clint Rutkas
234a9314a3 more updates :) 2024-09-05 17:12:15 -07:00
Clint Rutkas
d6f62c0e81 getting tag compliant again 2024-09-05 16:35:31 -07:00
Clint Rutkas
2e32cfad0e vars 2024-09-05 16:35:07 -07:00
Clint Rutkas
28cd7967d0 defaults / spacing 2024-09-05 16:02:38 -07:00
Clint Rutkas
e6d4cde45f lotta baseline adjustments 2024-09-05 15:54:04 -07:00
Clint Rutkas
586d6172a5 Merge branch 'microsoft:main' into main 2024-09-05 13:55:18 -07:00
Clint Rutkas
3b1c615e43 Merge pull request #41 from zadjii-msft/dev/crutkas/sdkRefactorPart2
More renaming and making stuff private
2024-09-05 13:54:48 -07:00
Clint Rutkas
cd59754031 More renaming and making stuff private 2024-09-05 13:09:45 -07:00
Mike Griese
4b7b728825 Rename the extension SDK to Microsoft.CmdPal.Extensions (#40)
This obviously touched the entire world
2024-09-05 14:04:29 -05:00
Clint Rutkas
ecaa2235af Merge pull request #39 from zadjii-msft/dev/crutkas/sdkRenaming
Initial SDK refactors
2024-09-05 11:33:14 -07:00
Clint Rutkas
f436bbfe50 updating details too 2024-09-05 11:11:23 -07:00
Clint Rutkas
25947ce10c doing a few initial fixes 2024-09-05 10:38:41 -07:00
Clint Rutkas
44e95187e0 Merge pull request #38 from zadjii-msft/dev/crutkas/additionalCleanup
Dev/crutkas/additional cleanup
2024-09-05 10:14:59 -07:00
Clint Rutkas
8dda9a3d5e undoing warning 2024-09-05 10:13:46 -07:00
Clint Rutkas
599cec3c30 more baseline cleanup 2024-09-05 10:13:29 -07:00
Clint Rutkas
9ae70eff91 Merge pull request #37 from zadjii-msft/dev/crutkas/moreBaseCleanup
Dev/crutkas/more base cleanup
2024-09-04 20:59:10 -07:00
Clint Rutkas
fd464f1a3a more baseline cleanup efforts 2024-09-04 20:58:15 -07:00
Clint Rutkas
5001d88c44 abstracting files out 2024-09-04 20:39:20 -07:00
Clint Rutkas
bb77b33c05 Merge pull request #36 from zadjii-msft/dev/crutkas/moreBaseCleanup
Dev/crutkas/more base cleanup
2024-09-04 17:06:52 -07:00
Clint Rutkas
c4bcd25e43 breaking more out 2024-09-04 16:57:30 -07:00
Clint Rutkas
62783f3bd5 more breaking stuff out 2024-09-04 16:55:30 -07:00
Clint Rutkas
a84905426b renaming 2024-09-04 16:51:10 -07:00
Clint Rutkas
0c6ce7bfe0 Changing name of commnad 2024-09-04 16:49:44 -07:00
Clint Rutkas
5165a0df49 Getting a bunch more setup 2024-09-04 16:35:54 -07:00
Clint Rutkas
d7189bf0ad Merge pull request #35 from zadjii-msft/dev/crutkas/abstractSettings
Abstracting core settings out
2024-09-04 16:23:41 -07:00
Clint Rutkas
6c0f28429e Abstracting core settings out 2024-09-04 16:22:51 -07:00
Clint Rutkas
67387214f6 Merge pull request #34 from zadjii-msft/dev/crutkas/continueFixes
Bookmarks abstracted out of main project
2024-09-04 15:57:48 -07:00
Clint Rutkas
a4897b5976 namespace adjustment 2024-09-04 15:49:11 -07:00
Clint Rutkas
75ab71f55a bookmarks are moved to new project 2024-09-04 15:44:53 -07:00
Clint Rutkas
0ec9bbb02f few more errors knocked out 2024-09-04 15:36:35 -07:00
Clint Rutkas
14c8f79130 simplifying namespaces 2024-09-04 15:29:14 -07:00
Clint Rutkas
f185bc6442 moving bookmarks and centeralizing json loader 2024-09-04 15:27:17 -07:00
Clint Rutkas
457dcbfb8d Merge pull request #33 from zadjii-msft/dev/crutkas/goingAroundTheWorldWithMoreFixes
moving calc back into individual project
2024-09-04 15:01:09 -07:00
Clint Rutkas
8d65662f10 Merge pull request #32 from zadjii-msft/dev/crutkas/moreCleanup
Bookmarks so it can serialize / deserialize via objects
2024-09-04 15:00:59 -07:00
Clint Rutkas
076841ac70 moving calc back into individual project 2024-09-04 13:58:15 -07:00
Clint Rutkas
6de494d826 Booksmarks now use proper serialization 2024-09-04 13:23:09 -07:00
Clint Rutkas
cee0d3adb6 bunch of cleanup 2024-09-04 09:49:04 -07:00
Clint Rutkas
b5a48292ef Merge pull request #31 from zadjii-msft/dev/migrie/fix-form-pages
Fix form pages
2024-09-04 07:16:21 -07:00
Clint Rutkas
751cdcf166 Merge pull request #30 from zadjii-msft/dev/migrie/vcxproj-relative-path
Use the nuget packages at the PowerToys root
2024-09-04 07:16:07 -07:00
Clint Rutkas
94cadcf1bf Merge pull request #29 from zadjii-msft/dev/migrie/template-project
Add a template project and a script to generate an extension
2024-09-04 07:15:55 -07:00
Clint Rutkas
0e28729683 Merge pull request #28 from zadjii-msft/dev/crutkas/fixMore
lotta more fixes
2024-09-04 07:15:40 -07:00
Mike Griese
37afde1226 Fix form pages
Also, add the spongebot settings page back to test

This fixes the form bubbling thing I was talking about with @crutkas
2024-09-04 09:07:23 -05:00
Mike Griese
6e1ca090d3 readme 2024-09-04 06:40:06 -05:00
Mike Griese
61e0cb53cc less punishing 2024-09-04 06:35:30 -05:00
Mike Griese
7220c979ad make this point at the PowerToys root packages 2024-09-04 06:27:30 -05:00
Mike Griese
f12b9f4c4d sure 2024-09-04 06:05:14 -05:00
Clint Rutkas
c2a47aed27 more stuff 2024-09-03 23:26:20 -07:00
Clint Rutkas
c212c9cbad more cleanup 2024-09-03 23:19:53 -07:00
Clint Rutkas
f9cb4e20ab more and more 2024-09-03 23:15:13 -07:00
Clint Rutkas
384bf6caa7 more basic cleanu 2024-09-03 23:12:35 -07:00
Clint Rutkas
d0646488f1 Fixing more errors 2024-09-03 23:04:30 -07:00
Clint Rutkas
34dda73784 More stuff 2024-09-03 22:52:24 -07:00
Clint Rutkas
442b77cf27 Getting a bunch of errors done 2024-09-03 22:44:19 -07:00
Clint Rutkas
5a93de4c46 Merge pull request #27 from zadjii-msft/dev/crutkas/uiCleanupPart3
Fixing string loader
2024-09-03 16:46:48 -07:00
Clint Rutkas
87d1762031 Fixing string loader 2024-09-03 16:46:10 -07:00
Clint Rutkas
9963a0a8a5 Merge pull request #26 from zadjii-msft/dev/crutkas/moreUiCleanup
refactor for process termination
2024-09-03 15:34:09 -07:00
Clint Rutkas
7575bb7e4f init checkin 2024-09-03 15:10:09 -07:00
Mike Griese
0010511749 That's right - we can generate template projects easily now 2024-09-03 16:55:11 -05:00
Mike Griese
6dc3e9ce94 I think this works 2024-09-03 16:20:14 -05:00
Clint Rutkas
0bcc1841ef Merge pull request #24 from zadjii-msft/dev/crutkas/refactorSponge
init pass
2024-09-03 14:13:12 -07:00
Clint Rutkas
c51a293535 Merge pull request #25 from zadjii-msft/dev/crutkas/cleanupOnUi
lots of baseline adjustments
2024-09-03 14:13:00 -07:00
Clint Rutkas
5c439e7773 lots of baseline adjustments 2024-09-03 14:02:37 -07:00
Clint Rutkas
d33aa63b72 init pass 2024-09-03 13:20:48 -07:00
Mike Griese
b55f81a5a0 template project (does this work?) 2024-09-03 14:48:30 -05:00
Clint Rutkas
8d37fe6005 Merge pull request #23 from zadjii-msft/dev/crutkas/pullOutClasses
Breaking out files from SDK default class
2024-09-03 11:05:59 -07:00
Clint Rutkas
5afb9b1ef8 Only refactor is breaking out the single file. 2024-09-03 11:04:12 -07:00
Mike Griese
a6e29784be Move builtins into sane places (#22)
Gets rid of the `AllApps.csproj` and `Calculator.csproj`
Makes the namespaces a bit more consistent

The sln now looks like
![image](https://github.com/user-attachments/assets/e8cd4bfa-ae83-4c02-acd8-05550262ff67)


with the "sample" extensions here
![image](https://github.com/user-attachments/assets/edf4b47b-012e-46a4-80b6-5e16e7643e02)
to better differentiate between built-in ones and the sample ones

@crutkas as an FYI because I know this was driving him mad
2024-09-03 12:42:14 -05:00
Mike Griese
a8d69fa45b Adds a 'Reload extensions' builtin ; fix a bunch of string.Empty's (#21)
* Adds a 'Reload extensions' builtin ; fix a bunch of string.Empty's

* whoops
2024-09-03 10:35:58 -05:00
Clint Rutkas
c85bc0c372 Merge pull request #20 from zadjii-msft/dev/crutkas/cleanpu
media player plugin
2024-09-02 21:15:32 -07:00
Clint Rutkas
e9c77e81cb media player online 2024-09-02 21:14:36 -07:00
Clint Rutkas
79cfa5dd95 Merge pull request #19 from zadjii-msft/dev/crutkas/cleanpu
cleanup, whitespace and brackets
2024-08-30 23:54:02 -07:00
Clint Rutkas
789245ff9e fixing whitespace style stuff 2024-08-30 23:50:56 -07:00
Clint Rutkas
cab4b46388 Merge pull request #18 from zadjii-msft/dev/crutkas/hackerNews
Dev/crutkas/hacker news
2024-08-30 16:40:56 -07:00
Clint Rutkas
c0b2f1654a hackernews now passes 2024-08-30 16:38:52 -07:00
Clint Rutkas
ea4bbda107 Common is now error free 2024-08-29 21:28:10 -07:00
Clint Rutkas
255dc68f4f Calculator module is online 2024-08-29 21:22:26 -07:00
Mike Griese
99a616ced2 Actually close extension processes when we exit (#14)
* makes `quit` not crash the app
* makes any close actually tell our extensions to exit

once again, thanks devhome folks
2024-08-29 16:32:34 -05:00
Clint Rutkas
c9871e6540 Merge pull request #13 from zadjii-msft/dev/crutkas/moreFixes
headers
2024-08-29 14:17:19 -07:00
Clint Rutkas
da09538f47 headers 2024-08-29 14:13:58 -07:00
Clint Rutkas
b5ff99ba3f Merge pull request #12 from zadjii-msft/dev/crutkas/whitespace1
Headers
2024-08-29 14:09:05 -07:00
Clint Rutkas
f9aa1be671 Headers 2024-08-29 14:08:00 -07:00
Clint Rutkas
b59c114cf0 Merge pull request #11 from zadjii-msft/dev/crutkas/dsafdsaWhiteSpace
small whitespace checkin part 1
2024-08-29 13:53:13 -07:00
Clint Rutkas
1ac57956eb smaller whitespace checkin 2024-08-29 13:52:19 -07:00
Mike Griese
6328ff1160 Use the actual devhome code for loading extensions (#8)
As in title.

I'm adding a `ExtensionObject<T>` object too. It doesn't _enforce_ anything. We can use it to wrap up things we get from extensions. You get the object back out with `.Unsafe`, which is a mental clue "this object might not live in this process". It'll at least give us a better clue of all the places where accessing the object might not totally be safe.

Also fixes a bug that makes cmdpal a bit more resilient to an extension dying and being reloaded. Just go to all apps & back, and presto, reload.
2024-08-29 15:26:55 -05:00
Clint Rutkas
1120e673f7 Merge pull request #7 from zadjii-msft/dev/crutkas/analyzersOnline
analyzers online
2024-08-29 13:07:48 -07:00
Clint Rutkas
8a14aad2bc analyzers on but as warnings 2024-08-29 13:03:29 -07:00
Clint Rutkas
5e64ec219e Moving Extensions into main so we don't break stuff (#6)
* Adding in exts

* modifying exts

* deleting outdated azure extentions

* removing x86
2024-08-29 14:34:56 -05:00
Clint Rutkas
a0dd9d161f Dev/crutkas/name spacepart1 (#5)
* updating namespace for common

* Adjusting folder structure now so we can do larger move
2024-08-29 14:34:46 -05:00
Clint Rutkas
1a89580d7c Merge pull request #4 from zadjii-msft/dev/crutkas/startToBreakoutCode
Getting more of the projects broken into into files. Based on #3
2024-08-29 08:29:06 -07:00
Clint Rutkas
2bc3606b59 removing some older references, breaking stuff into diff class files 2024-08-28 23:13:57 -07:00
Clint Rutkas
b29d8cdb8b renaming the c# projects 2024-08-28 22:48:18 -07:00
Clint Rutkas
280e80c9bb Getting stuff on base + baseline sln 2024-08-28 21:26:52 -07:00
Clint Rutkas
6291692980 Dev/crutkas/sln adjustment (#2)
* Moving plugin folder

* all .net now pointing to the tool ver prop

* fixing cpp proj

* consolidation of packages

* removing non root nuget config

* Update src/modules/cmdpal/ToolingVersions.props

---------

Co-authored-by: Mike Griese <migrie@microsoft.com>
2024-08-28 20:00:39 -05:00
Clint Rutkas
d3ed9f84dd Getting pubxml included 2024-08-28 16:06:42 -07:00
Mike Griese
8c2339c1bd Merge branch 'main' of https://github.com/zadjii-msft/PowerToys 2024-08-28 12:48:21 -05:00
Clint Rutkas
9948714ae9 removing arm / x86 2024-08-27 17:00:31 -07:00
Clint Rutkas
3890d385e7 Merge branch 'dev/cmdpal/main' of https://github.com/microsoft/powertoys into dev/cmdpal/main 2024-08-27 15:33:20 -07:00
Clint Rutkas
91b7e96bdb Adjusting solution so x64 and Arm64 only. 2024-08-27 15:33:09 -07:00
Mike Griese
b3b26b4f69 Whoops M.T.UI shouldn't be in the cmdpal code - I didn't understand how VS works with C# 2024-08-27 16:29:00 -05:00
Mike Griese
ac240df991 extensions too 2024-08-27 09:47:53 -05:00
Mike Griese
b5bcbcc433 Initial commit: the core project builds 2024-08-27 09:34:44 -05:00
6 changed files with 220 additions and 1 deletions

View File

@@ -0,0 +1,35 @@
// Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Microsoft.CmdPal.UI.ViewModels.Models;
using Microsoft.CommandPalette.Extensions;
namespace Microsoft.CmdPal.UI.ViewModels;
public partial class GoToPageArgsViewModel(IGoToPageArgs _args, WeakReference<IPageContext> context) :
ExtensionObjectViewModel(context)
{
public ExtensionObject<IGoToPageArgs> Model { get; } = new(_args);
// Remember - "observable" properties from the model (via PropChanged)
// cannot be marked [ObservableProperty]
public string PageId { get; private set; } = string.Empty;
public NavigationMode NavigationMode { get; private set; } = NavigationMode.Push;
public override void InitializeProperties()
{
var model = Model.Unsafe;
if (model == null)
{
return;
}
PageId = model.PageId;
NavigationMode = model.NavigationMode;
UpdateProperty(nameof(PageId));
UpdateProperty(nameof(NavigationMode));
}
}

View File

@@ -285,6 +285,57 @@ public sealed partial class ShellPage : Microsoft.UI.Xaml.Controls.Page,
}
}
private void HandleGoToPageArgs(IGoToPageArgs args)
{
GoToPageArgsViewModel vm = new(args, new(ViewModel.CurrentPage));
var initializeDialogTask = Task.Run(() => { InitializeGoToPage(vm); });
initializeDialogTask.Wait();
var pageID = vm.PageId;
var navigationMode = vm.NavigationMode;
if (string.IsNullOrEmpty(pageID))
{
_toast.ShowToast("Invalid page id");
return;
}
var tlcManager = App.Current.Services.GetService<TopLevelCommandManager>()!;
var toplevelCommand = tlcManager.LookupCommand(pageID);
if (toplevelCommand == null)
{
return;
}
switch (navigationMode)
{
case NavigationMode.Push:
break;
case NavigationMode.GoHome:
while (RootFrame.CanGoBack)
{
GoBack(false, false);
}
break;
case NavigationMode.GoBack:
if (RootFrame.CanGoBack)
{
GoBack(false, false);
}
break;
}
var msg = new PerformCommandMessage(toplevelCommand) { WithAnimation = true };
WeakReferenceMessenger.Default.Send<PerformCommandMessage>(msg);
return;
}
// This gets called from the UI thread
private void HandleConfirmArgs(IConfirmationArgs args)
{
@@ -341,6 +392,11 @@ public sealed partial class ShellPage : Microsoft.UI.Xaml.Controls.Page,
vm.SafeInitializePropertiesSynchronous();
}
private void InitializeGoToPage(GoToPageArgsViewModel vm)
{
vm.SafeInitializePropertiesSynchronous();
}
private void HandleCommandResultOnUiThread(ICommandResult? result)
{
try
@@ -404,6 +460,16 @@ public sealed partial class ShellPage : Microsoft.UI.Xaml.Controls.Page,
HandleCommandResultOnUiThread(a.Result);
}
break;
}
case CommandResultKind.GoToPage:
{
if (result.Args is IGoToPageArgs a)
{
HandleGoToPageArgs(a);
}
break;
}
}

View File

@@ -0,0 +1,72 @@
// Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Microsoft.CommandPalette.Extensions;
using Microsoft.CommandPalette.Extensions.Toolkit;
namespace SamplePagesExtension;
public sealed partial class SampleGoToPage : ListPage
{
private int depth;
public SampleGoToPage(int depth)
{
this.depth = depth;
Icon = new IconInfo("\uEA37");
Name = "Here is the " + depth + "th layer of the stack";
}
public override IListItem[] GetItems()
{
var goBackArgs = new GoToPageArgs
{
PageId = "com.microsoft.SamplePages.LandingPage",
NavigationMode = NavigationMode.GoBack,
};
var goHomeArgs = new GoToPageArgs
{
PageId = "com.microsoft.SamplePages.LandingPage",
NavigationMode = NavigationMode.GoHome,
};
var pushLandingPageArgs = new GoToPageArgs
{
PageId = "com.microsoft.SamplePages.LandingPage",
NavigationMode = NavigationMode.Push,
};
return [
new ListItem(new SampleGoToPage(depth + 1)),
new ListItem(
new AnonymousCommand(() => { })
{
Result = CommandResult.GoToPage(goBackArgs),
})
{
Title = "Go back and then go to landing page.",
Icon = new IconInfo("\uEA37"),
},
new ListItem(
new AnonymousCommand(() => { })
{
Result = CommandResult.GoToPage(goHomeArgs),
})
{
Title = "Go back to home page and then go to landing page.",
Icon = new IconInfo("\uEA37"),
},
new ListItem(
new AnonymousCommand(() => { })
{
Result = CommandResult.GoToPage(pushLandingPageArgs),
})
{
Title = "Push landing page.",
Icon = new IconInfo("\uEA37"),
},
];
}
}

View File

@@ -0,0 +1,34 @@
// Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Microsoft.CommandPalette.Extensions;
using Microsoft.CommandPalette.Extensions.Toolkit;
namespace SamplePagesExtension;
public sealed partial class SampleLandingPage : ListPage
{
public SampleLandingPage()
{
Icon = new IconInfo("\uEA37");
Name = "This is a sample landing page to land for GotoPage call.";
Id = "com.microsoft.SamplePages.LandingPage";
}
public override IListItem[] GetItems()
{
return [
new ListItem(new NoOpCommand())
{
Title = "This is a basic item in the list",
Subtitle = "I don't do anything though",
},
new ListItem(new NoOpCommand())
{
Title = "This is a sample landing page to land for GotoPage call.",
Subtitle = "I don't do anything though",
},
];
}
}

View File

@@ -21,6 +21,11 @@ public partial class SamplePagesCommandsProvider : CommandProvider
Title = "Sample Pages",
Subtitle = "View example commands",
},
new CommandItem(new SampleLandingPage())
{
Title = "Sample Landing Pages",
Subtitle = "Sample Landing pages example for goto page",
},
];
public override ICommandItem[] TopLevelCommands()

View File

@@ -79,11 +79,18 @@ public partial class SamplesListPage : ListPage
{
Title = "Evil samples",
Subtitle = "Samples designed to break the palette in many different evil ways",
}
},
new ListItem(new SampleGoToPage(0))
{
Title = "Sample GoTo Page",
Subtitle = "A list of items",
},
];
public SamplesListPage()
{
Id = "com.microsoft.SamplePages";
Name = "Samples";
Icon = new IconInfo("\ue946"); // Info
}