<!-- 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
remove test method displayname to fix 'No test matches the given
testcase filter' error.
<!-- 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
- [ ] **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
* fancytest oneswitch test
* add GetActiveWindowTitle
* testcase1 add set layout
* change shortcut to win pgdn
* add hold key
* Snap several windows to one zone, verify switching works.
* pack snaptoonezone
* pack snaptoonezone
* Add Fancy Zone Switch tests
* Add Fancyzones switch zones
* remove code and change zoneuuid to zonesets
* fix spell error and remove files
* remove unuse keyup in elements
* fix spell error
* fix spell error
* remove to common api
* fix spell error
* fix pipeline fail
* add annotations on exe and process
* add dragging tests case
* add dragging tests case TestShowZonesOnDragDuringShift
* change get out window pixel color
* add non-primary mouse test cases
* add make drag window transparent
* clean test initialize code
* fix spell error
* fix make drag setting conflicts with shift and non primary mouse setting tests issue
* add annotations for testmethod and GetWindowRect
* fix spell error
* fix spell error
* change assert prompt
* fix testcase name not match
* set fancyzones tests only in pipeline
* fix pipeline error fancyzones
* add get highlight and inactivate zone color from ui
* add window pre post
* add rect func
* remove keydown and drag
* FIX JSON GETSTRING BUG
* change scrolling times
* fix get out window
* add drag window
* make c file explorer window larger
* remove drag window
* one switch tests change explorer exe to hosts file exe
* set restart in drag
* recover switch tests
* fix scroll position error
* add clean
* clean host
* clean layouts file
* remove during drag case
* resolve conflicts
* fix get pixel color
* add delay when get pixel color
* add delay and make maximize the window
* change onezone to twozone
* add restart scope exe
* add annotations for OneZoneSwitchTests.cs
* clean logger and add annotations
* merge windows helper and pane element
* add test name and test category
* reduce delay time
* resolve conflicts and remove ununsed namespace
* fix spell error
* fix the restart position
* add clean desktop windows and remove unuse code
* clear open window
* only run fancyzones related dll
* add log on customlayouts data
* remove clean the window in switchwindow tests
* rename namespace
* set fancyzones only pipeline
* remove restore
* set layouts without restart
* remove restart
* add delay and retry
* add delay and retry
* fix relaunch error
* add delay time
* tests all uitests
* extend delay time
* close window in onezone switch
* clean console write
* fix conflicts
* test all ui tests
* retry launch
* fix spell error
* move release drag to pane element
* address cannot found custom layouts
* move restart to set customlayouts
* move restart to set customlayouts
* fix spell error
* move restart
* restore data
* add delay time
* test all ui tests
* add clean fancyzones editor window
* remove log
* change get active window Title
* change get active window Title
* align onezone switch tests initialize and try catch with dragwindow
* remove unuse code
* add appzone history deletefile
* Added option to toggle the system tray icon
At the moment, this hides the icon making the settings window inaccessible without first modifying the general `settings.json` file.
* Use IPC messages to manage the tray icon settings
* Fix launching second window binds to active settings process
* Added context menu option to hide tray icon
* Added Exit PT button to settings ui NavigationView.PaneFooter
* Moved DllImports to NativeMethods.cs
* Sentence case titles
* Fix whitespace
* Re-add exit icon to NavView
* Re-added toggle switch to new UI
* Fix build
* Fix build after merge main
* Fix the string to display
* add shut down buttons
* finish polish
* fix string
* Styling tweaks to titlebar and settingscards
* fix comment
* fix unit test
* fix ut
---------
Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
Co-authored-by: vanzue <vanzue@outlook.com>
Co-authored-by: Kayla Cinnamon <cinnamon@microsoft.com>
Co-authored-by: Niels Laute <niels.laute@live.nl>
* fancytest oneswitch test
* add non-primary mouse test cases
* add make drag window transparent
* clean test initialize code
* fix spell error
* fix make drag setting conflicts with shift and non primary mouse setting tests issue
* add annotations for testmethod and GetWindowRect
* fix spell error
* fix spell error
* change assert prompt
* fix testcase name not match
* set fancyzones tests only in pipeline
* fix pipeline error fancyzones
* add get highlight and inactivate zone color from ui
* add window pre post
* add rect func
* remove keydown and drag
* FIX JSON GETSTRING BUG
* change scrolling times
* fix get out window
* add drag window
* make c file explorer window larger
* remove drag window
* one switch tests change explorer exe to hosts file exe
* set restart in drag
* recover switch tests
* fix scroll position error
* add clean
* clean host
* clean layouts file
* remove during drag case
* resolve conflicts
* fix get pixel color
* add delay when get pixel color
* add delay and make maximize the window
* change onezone to twozone
* add restart scope exe
* add annotations for OneZoneSwitchTests.cs
* clean logger and add annotations
* merge windows helper and pane element
* add test name and test category
* reduce delay time
* resolve conflicts and remove ununsed namespace
* fix spell error
* fix the restart position
* add clean desktop windows and remove unuse code
* clear open window
* only run fancyzones related dll
* add log on customlayouts data
* remove clean the window in switchwindow tests
* rename namespace
* set fancyzones only pipeline
* remove restore
* set layouts without restart
* remove restart
* add delay and retry
* add delay and retry
* fix relaunch error
* add delay time
* tests all uitests
* extend delay time
* close window in onezone switch
* clean console write
* fix conflicts
* test all ui tests
* retry launch
* fix spell error
* move release drag to pane element
* address cannot found custom layouts
* move restart to set customlayouts
* move restart to set customlayouts
* fix spell error
* move restart
* restore data
* add delay time
* test all ui tests
* add clean fancyzones editor window
* remove log
* Adjust sleep time between actions
* Adjust sleep time between actions2
* Fix pipeline errors
* Adjust wait time between clear and send input
---------
Co-authored-by: Yaqing Mi (from Dev Box) <yaqingmi@microsoft.com>
* fancytest oneswitch test
* add GetActiveWindowTitle
* testcase1 add set layout
* change shortcut to win pgdn
* add hold key
* Snap several windows to one zone, verify switching works.
* pack snaptoonezone
* pack snaptoonezone
* Add Fancy Zone Switch tests
* Add Fancyzones switch zones
* remove code and change zoneuuid to zonesets
* fix spell error and remove files
* remove unuse keyup in elements
* fix spell error
* fix spell error
* remove to common api
* fix spell error
* fix pipeline fail
* add annotations on exe and process
* add dragging tests case
* add dragging tests case TestShowZonesOnDragDuringShift
* change get out window pixel color
* add non-primary mouse test cases
* add make drag window transparent
* clean test initialize code
* fix spell error
* fix make drag setting conflicts with shift and non primary mouse setting tests issue
* add annotations for testmethod and GetWindowRect
* fix spell error
* fix spell error
* change assert prompt
* fix testcase name not match
* set fancyzones tests only in pipeline
* fix pipeline error fancyzones
* add get highlight and inactivate zone color from ui
* add window pre post
* add rect func
* remove keydown and drag
* FIX JSON GETSTRING BUG
* change scrolling times
* fix get out window
* add drag window
* make c file explorer window larger
* remove drag window
* one switch tests change explorer exe to hosts file exe
* set restart in drag
* recover switch tests
* fix scroll position error
* add clean
* clean host
* clean layouts file
* remove during drag case
* resolve conflicts
* fix get pixel color
* add delay when get pixel color
* add delay and make maximize the window
* change onezone to twozone
* add restart scope exe
* add annotations for OneZoneSwitchTests.cs
* clean logger and add annotations
* merge windows helper and pane element
* add test name and test category
* reduce delay time
* resolve conflicts and remove ununsed namespace
* fix spell error
* fix the restart position
* add clean desktop windows and remove unuse code
* clear open window
* only run fancyzones related dll
* add log on customlayouts data
* remove clean the window in switchwindow tests
* rename namespace
* set fancyzones only pipeline
* remove restore
* set layouts without restart
* remove restart
* add delay and retry
* add delay and retry
* fix relaunch error
* add delay time
* tests all uitests
* extend delay time
* close window in onezone switch
* clean console write
* fix conflicts
* test all ui tests
* retry launch
* fix spell error
* move release drag to pane element
* address cannot found custom layouts
* move restart to set customlayouts
This was especially noticable with the icons extension.
Turns out in #39051, when I was experimenting with getting AoT clean,
i accidentally called this twice. Then we actually commited that
straight up.
This PR reverts that. It also moves a similar case where we were
initializing all the tags on the UI thread. That's wrong too - we need
to fetch properties off the UI thread, then update the list on the UI
thread.
Closes nothing, I didn't file this yet.
<!-- 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
Since we change the launch method by this PR #39269 , we will start cmdpal as admin too if powertoys run as admin.
The fix is leveraging explorer (which will not run as admin) to start the cmdpal
Moreover, without this fix, some of extension cannot be "loaded" when cmdpal run as admin, e.g. winget will be missing, and my own new extension developed by myself will not be loaded successful as well.
Strong-name signing embeds publisher identity into the signature of a
.NET assembly.
This is required if *any other* strong name signed project wants to take
a dependency on it.
To make this work, we need to delay-sign it with a public key (.snk
file)--e.g. say we are going to sign it, but not actually sign it--to
give it an identity and then later submit it to ESRP for final signing.
The snk file does not contain any private material.
Some minor changes were required to build properly:
- `InternalsVisibleTo` requires a PublicKeyToken, but we aren't using
it in the SDK build so it's fine to just leave it out.
- I had to mark a class `sealed` and I can only guess it's because
strong named assemblies have more guarantees?
* add test case and fix bug
* add test
* add test
* add test
* add test case
* add fancyzones window name and fix test case error
* add test case
* add test case
* add test case After creating a virtual desktop
* add test case delete layout
* add test case grid layout change monitor resolution
* fix pipeline error
* fix pipeline error
* fix pipeline error
* fix pipeline error
* fix pipeline error
* fix pipeline error
* fix pipeline error
* fix pipeline error and only run fancyzone uitest
* disable other ui test code
* fix build error
* fix pipeline error
* fix pipeline error
* add restart scope exe
* enable other test code
* fix Spelling error
* add error log
* add global find
* Change Fancyzone SendKey function
* add Fancyzone Editor Test case message
* add test code
* drag code refine
* add windowHelper
* fix find element type error
* fix build error
* fix test error
* fix pipeline error
* fix pipeline error
* fix pipeline error
---------
Co-authored-by: Zhaopeng Wang (from Dev Box) <zhaopengwang@microsoft.com>
* Update version to 0.91
Update version to 0.91
* Some PRs are still not included.
Some PRs are still not included.
* Add some PRs
* Add more PRs
* Add more PRs
* Add two more PRs
* Add some PRs
* Add one more PR
* Add all PRs up to this point, except for some documentation-related ones.
* Add the Highlights part
* Overall edits
* Add PRs about Doc changes
* Clean up the highlights section
* Update MD5
* Changed highlights and removed reg preview line item
* Put reg preview item back and updated highlights
---------
Co-authored-by: Kayla Cinnamon <cinnamon@microsoft.com>
## Summary of the Pull Request
The Command Palette allows users to create extensions with dashes in their names, which is invalid for C# namespaces. This causes projects to fail during build because the name cannot be used as a valid namespace.
## Changes
- Updated the validation regex in `NewExtensionForm.cs` to only allow valid C# identifiers
- Now only allows names starting with a letter or underscore, followed by letters, numbers, or underscores
- Explicitly prevents dashes, spaces, and other special characters
- Improved the error message to clearly explain the requirements for valid C# identifiers
## Before
Previously, the input only validated that no spaces were used:
```csharp
"regex": "^[^\\s]+$"
```
## After
Now the input properly validates for C# namespace compatibility:
```csharp
"regex": "^[a-zA-Z_][a-zA-Z0-9_]*$"
```
This ensures that users cannot create extension projects with names that would fail to build.
## PR Checklist
- [ ] **Closes:** https://github.com/microsoft/PowerToys/issues/38522