Skip to content

Commit 4e0f1bd

Browse files
committed
Merge branch 'main' into peiyaozhao/init-migration-project
2 parents f193ba3 + a62acf7 commit 4e0f1bd

File tree

157 files changed

+10070
-2140
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+10070
-2140
lines changed

.config/dotnet-tools.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"isRoot": true,
44
"tools": {
55
"dotnet-consolidate": {
6-
"version": "2.0.0",
6+
"version": "4.2.0",
77
"commands": [
88
"dotnet-consolidate"
99
]
1010
},
1111
"xamlstyler.console": {
12-
"version": "3.2404.2",
12+
"version": "3.2501.8",
1313
"commands": [
1414
"xstyler"
1515
]

.github/actions/spell-check/allow/code.txt

+3
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,9 @@ SWAPBUTTON
235235
SYSTEMDOCKED
236236
TABLETPC
237237

238+
# Units
239+
nmi
240+
238241
# MATH
239242

240243
artanh

.github/actions/spell-check/expect.txt

+7
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,7 @@ flac
490490
flyouts
491491
FMask
492492
FOF
493+
WANTNUKEWARNING
493494
FOFX
494495
FOLDERID
495496
folderpath
@@ -546,6 +547,7 @@ GUITHREADINFO
546547
GValue
547548
gwl
548549
GWLP
550+
GWLSTYLE
549551
hangeul
550552
Hanzi
551553
Hardlines
@@ -1417,6 +1419,7 @@ SHCNE
14171419
SHCNF
14181420
SHCONTF
14191421
Shcore
1422+
shellapi
14201423
SHELLDETAILS
14211424
SHELLDLL
14221425
shellex
@@ -1631,6 +1634,8 @@ tkconverters
16311634
TLayout
16321635
tlb
16331636
tlbimp
1637+
TPMLEFTALIGN
1638+
TPMRETURNCMD
16341639
TMPVAR
16351640
TNP
16361641
Toolhelp
@@ -1809,6 +1814,7 @@ windowssearch
18091814
windowssettings
18101815
WINDOWSTYLES
18111816
WINDOWSTYLESICON
1817+
winerror
18121818
WINEVENT
18131819
winget
18141820
wingetcreate
@@ -1838,6 +1844,7 @@ WMI
18381844
WMICIM
18391845
wmimgmt
18401846
wmp
1847+
WMSYSCOMMAND
18411848
wnd
18421849
WNDCLASS
18431850
WNDCLASSEX

.pipelines/v2/templates/job-build-project.yml

-5
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,6 @@ jobs:
142142
Write-Host "##vso[task.setvariable variable=MSBuildCacheParameters]$MSBuildCacheParameters"
143143
displayName: Prepare MSBuildCache variables
144144
145-
- template: steps-ensure-dotnet-version.yml
146-
parameters:
147-
sdk: true
148-
version: '6.0'
149-
150145
- template: steps-ensure-dotnet-version.yml
151146
parameters:
152147
sdk: true

Directory.Packages.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,4 @@
9898
<PackageVersion Include="Microsoft.VariantAssignment.Client" Version="2.4.17140001" />
9999
<PackageVersion Include="Microsoft.VariantAssignment.Contract" Version="3.0.16990001" />
100100
</ItemGroup>
101-
</Project>
101+
</Project>

NOTICE.md

+59
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ This software incorporates material from third parties.
99
- Installer/Runner
1010
- Measure tool
1111
- Peek
12+
- Registry Preview
1213

1314
## Utility: Color Picker
1415

@@ -788,6 +789,34 @@ SOFTWARE.
788789

789790
## Utility: Peek
790791

792+
### Monaco Editor
793+
794+
**Source**: https://github.com/Microsoft/monaco-editor
795+
796+
**Additional third party notifications:** https://github.com/microsoft/monaco-editor/blob/main/ThirdPartyNotices.txt
797+
798+
The MIT License (MIT)
799+
800+
Copyright (c) 2016 - present Microsoft Corporation
801+
802+
Permission is hereby granted, free of charge, to any person obtaining a copy
803+
of this software and associated documentation files (the "Software"), to deal
804+
in the Software without restriction, including without limitation the rights
805+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
806+
copies of the Software, and to permit persons to whom the Software is
807+
furnished to do so, subject to the following conditions:
808+
809+
The above copyright notice and this permission notice shall be included in all
810+
copies or substantial portions of the Software.
811+
812+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
813+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
814+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
815+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
816+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
817+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
818+
SOFTWARE.
819+
791820
### The Quite OK Image Format reference decoder
792821

793822
**Source**: https://github.com/phoboslab/qoi
@@ -1294,6 +1323,36 @@ EXHIBIT A -Mozilla Public License.
12941323
Original Code Source Code for Your Modifications.]
12951324
```
12961325

1326+
## Utility: Registry Preview
1327+
1328+
### Monaco Editor
1329+
1330+
**Source**: https://github.com/Microsoft/monaco-editor
1331+
1332+
**Additional third party notifications:** https://github.com/microsoft/monaco-editor/blob/main/ThirdPartyNotices.txt
1333+
1334+
The MIT License (MIT)
1335+
1336+
Copyright (c) 2016 - present Microsoft Corporation
1337+
1338+
Permission is hereby granted, free of charge, to any person obtaining a copy
1339+
of this software and associated documentation files (the "Software"), to deal
1340+
in the Software without restriction, including without limitation the rights
1341+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1342+
copies of the Software, and to permit persons to whom the Software is
1343+
furnished to do so, subject to the following conditions:
1344+
1345+
The above copyright notice and this permission notice shall be included in all
1346+
copies or substantial portions of the Software.
1347+
1348+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1349+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1350+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1351+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1352+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1353+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1354+
SOFTWARE.
1355+
12971356
## NuGet Packages used by PowerToys
12981357

12991358
- Appium.WebDriver 4.4.5

PowerToys.sln

+11
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hosts.FuzzTests", "src\modu
646646
EndProject
647647
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hosts.UITests", "src\modules\Hosts\Hosts.UITests\Hosts.UITests.csproj", "{4E0AE3A4-2EE0-44D7-A2D0-8769977254A0}"
648648
EndProject
649+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RegistryPreview.FuzzTests", "src\modules\registrypreview\RegistryPreview.FuzzTests\RegistryPreview.FuzzTests.csproj", "{5702B3CC-8575-48D5-83D8-15BB42269CD3}"
650+
EndProject
649651
Global
650652
GlobalSection(SolutionConfigurationPlatforms) = preSolution
651653
Debug|ARM64 = Debug|ARM64
@@ -2294,6 +2296,14 @@ Global
22942296
{4E0AE3A4-2EE0-44D7-A2D0-8769977254A0}.Release|ARM64.Build.0 = Release|ARM64
22952297
{4E0AE3A4-2EE0-44D7-A2D0-8769977254A0}.Release|x64.ActiveCfg = Release|x64
22962298
{4E0AE3A4-2EE0-44D7-A2D0-8769977254A0}.Release|x64.Build.0 = Release|x64
2299+
{5702B3CC-8575-48D5-83D8-15BB42269CD3}.Debug|ARM64.ActiveCfg = Debug|ARM64
2300+
{5702B3CC-8575-48D5-83D8-15BB42269CD3}.Debug|ARM64.Build.0 = Debug|ARM64
2301+
{5702B3CC-8575-48D5-83D8-15BB42269CD3}.Debug|x64.ActiveCfg = Debug|x64
2302+
{5702B3CC-8575-48D5-83D8-15BB42269CD3}.Debug|x64.Build.0 = Debug|x64
2303+
{5702B3CC-8575-48D5-83D8-15BB42269CD3}.Release|ARM64.ActiveCfg = Release|ARM64
2304+
{5702B3CC-8575-48D5-83D8-15BB42269CD3}.Release|ARM64.Build.0 = Release|ARM64
2305+
{5702B3CC-8575-48D5-83D8-15BB42269CD3}.Release|x64.ActiveCfg = Release|x64
2306+
{5702B3CC-8575-48D5-83D8-15BB42269CD3}.Release|x64.Build.0 = Release|x64
22972307
EndGlobalSection
22982308
GlobalSection(SolutionProperties) = preSolution
22992309
HideSolutionNode = FALSE
@@ -2534,6 +2544,7 @@ Global
25342544
{4382A954-179A-4078-92AF-715187DFFF50} = {38BDB927-829B-4C65-9CD9-93FB05D66D65}
25352545
{EBED240C-8702-452D-B764-6DB9DA9179AF} = {F05E590D-AD46-42BE-9C25-6A63ADD2E3EA}
25362546
{4E0AE3A4-2EE0-44D7-A2D0-8769977254A0} = {F05E590D-AD46-42BE-9C25-6A63ADD2E3EA}
2547+
{5702B3CC-8575-48D5-83D8-15BB42269CD3} = {929C1324-22E8-4412-A9A8-80E85F3985A5}
25372548
EndGlobalSection
25382549
GlobalSection(ExtensibilityGlobals) = postSolution
25392550
SolutionGuid = {C3A2F9D1-7930-4EF4-A6FC-7EE0A99821D0}

src/common/GPOWrapper/GPOWrapper.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,10 @@ namespace winrt::PowerToys::GPOWrapper::implementation
232232
{
233233
return static_cast<GpoRuleConfigured>(powertoys_gpo::getAllowDataDiagnosticsValue());
234234
}
235+
GpoRuleConfigured GPOWrapper::GetConfiguredNewPlusReplaceVariablesValue()
236+
{
237+
return static_cast<GpoRuleConfigured>(powertoys_gpo::getConfiguredNewPlusReplaceVariablesValue());
238+
}
235239
GpoRuleConfigured GPOWrapper::GetConfiguredRunAtStartupValue()
236240
{
237241
return static_cast<GpoRuleConfigured>(powertoys_gpo::getConfiguredRunAtStartupValue());

src/common/GPOWrapper/GPOWrapper.h

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ namespace winrt::PowerToys::GPOWrapper::implementation
6464
static GpoRuleConfigured GetConfiguredNewPlusHideTemplateFilenameExtensionValue();
6565
static GpoRuleConfigured GetAllowDataDiagnosticsValue();
6666
static GpoRuleConfigured GetConfiguredRunAtStartupValue();
67+
static GpoRuleConfigured GetConfiguredNewPlusReplaceVariablesValue();
6768
};
6869
}
6970

src/common/GPOWrapper/GPOWrapper.idl

+1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ namespace PowerToys
6868
static GpoRuleConfigured GetConfiguredNewPlusHideTemplateFilenameExtensionValue();
6969
static GpoRuleConfigured GetAllowDataDiagnosticsValue();
7070
static GpoRuleConfigured GetConfiguredRunAtStartupValue();
71+
static GpoRuleConfigured GetConfiguredNewPlusReplaceVariablesValue();
7172
}
7273
}
7374
}

src/common/UITestAutomation/Element/By.cs

+40-3
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,40 @@ namespace Microsoft.PowerToys.UITest
1111
/// </summary>
1212
public class By
1313
{
14-
private readonly OpenQA.Selenium.By by;
14+
private readonly OpenQA.Selenium.By? by;
15+
private readonly bool isAccessibilityId;
16+
private readonly string? accessibilityId;
1517

1618
private By(OpenQA.Selenium.By by)
1719
{
20+
isAccessibilityId = false;
1821
this.by = by;
1922
}
2023

24+
private By(string accessibilityId)
25+
{
26+
isAccessibilityId = true;
27+
this.accessibilityId = accessibilityId;
28+
}
29+
2130
public override string ToString()
2231
{
2332
// override ToString to return detailed debugging content provided by OpenQA.Selenium.By
24-
return this.by.ToString();
33+
return this.GetAccessibilityId();
34+
}
35+
36+
public bool GetIsAccessibilityId() => this.isAccessibilityId;
37+
38+
public string GetAccessibilityId()
39+
{
40+
if (this.isAccessibilityId)
41+
{
42+
return this.accessibilityId!;
43+
}
44+
else
45+
{
46+
return this.by!.ToString();
47+
}
2548
}
2649

2750
/// <summary>
@@ -31,13 +54,27 @@ public override string ToString()
3154
/// <returns>A By object.</returns>
3255
public static By Name(string name) => new By(OpenQA.Selenium.By.Name(name));
3356

57+
/// <summary>
58+
/// Creates a By object using the className attribute.
59+
/// </summary>
60+
/// <param name="className">The className attribute to search for.</param>
61+
/// <returns>A By object.</returns>
62+
public static By ClassName(string className) => new By(OpenQA.Selenium.By.ClassName(className));
63+
3464
/// <summary>
3565
/// Creates a By object using the ID attribute.
3666
/// </summary>
3767
/// <param name="id">The ID attribute to search for.</param>
3868
/// <returns>A By object.</returns>
3969
public static By Id(string id) => new By(OpenQA.Selenium.By.Id(id));
4070

71+
/// <summary>
72+
/// Creates a By object using the ID attribute.
73+
/// </summary>
74+
/// <param name="accessibilityId">The ID attribute to search for.</param>
75+
/// <returns>A By object.</returns>
76+
public static By AccessibilityId(string accessibilityId) => new By(accessibilityId);
77+
4178
/// <summary>
4279
/// Creates a By object using the XPath expression.
4380
/// </summary>
@@ -70,6 +107,6 @@ public override string ToString()
70107
/// Converts the By object to an OpenQA.Selenium.By object.
71108
/// </summary>
72109
/// <returns>An OpenQA.Selenium.By object.</returns>
73-
internal OpenQA.Selenium.By ToSeleniumBy() => by;
110+
internal OpenQA.Selenium.By ToSeleniumBy() => by!;
74111
}
75112
}

0 commit comments

Comments
 (0)