-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PT Run] Calculator plugin: Various improvements #18159
Conversation
src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Calculator/Main.cs
Outdated
Show resolved
Hide resolved
.../Plugins/Microsoft.PowerToys.Run.Plugin.Calculator.UnitTest/ExtendedCalculatorParserTests.cs
Show resolved
Hide resolved
src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Calculator/CalculateHelper.cs
Outdated
Show resolved
Hide resolved
src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Calculator/CalculateEngine.cs
Show resolved
Hide resolved
@check-spelling-bot Report🔴 Please reviewSee the files view or the action log for details. Unrecognized words (2)intepreted Previously acknowledged words that are now absentBGSOUNDS BUILDARCH CLIENTPULL dispid DISPIDAMBIENTDLCONTROL DLACTIVEXCTLS DLCONTROL DLIMAGES DOWNLOADONLY epo FANCYZONESWINDOWSTYLES FORCEOFFLINE FRAMEDOWNLOAD gsuberland HFONT Htmdid ICore IDCANCEL IDOK INITDIALOG IReflect IWindows IXaml lamotile METACHARSET mirophone mshtmdid NETFX netstandard Nvidia otating Postion preperty Redist ruleset RUNACTIVEXCTLS serizalization settingsv Setttings sourceid testtrocess Toolchain VDId xbf XBind XInstanceTo accept these unrecognized words as correct (and remove the previously acknowledged and now absent words), run the following commands... in a clone of the [email protected]:htcfreek/PowerToys.git repository
If the flagged items do not appear to be textIf items relate to a ...
|
@check-spelling-bot Report🔴 Please reviewSee the files view or the action log for details. Unrecognized words (2)Mothod Previously acknowledged words that are now absentBGSOUNDS BUILDARCH CLIENTPULL dispid DISPIDAMBIENTDLCONTROL DLACTIVEXCTLS DLCONTROL DLIMAGES DOWNLOADONLY epo FANCYZONESWINDOWSTYLES FORCEOFFLINE FRAMEDOWNLOAD gsuberland HFONT Htmdid ICore IDCANCEL IDOK INITDIALOG IReflect IWindows IXaml lamotile METACHARSET mirophone mshtmdid NETFX netstandard Nvidia otating Postion preperty Redist ruleset RUNACTIVEXCTLS serizalization settingsv Setttings sourceid testtrocess Toolchain VDId xbf XBind XInstanceTo accept these unrecognized words as correct (and remove the previously acknowledged and now absent words), run the following commands... in a clone of the [email protected]:htcfreek/PowerToys.git repository
If the flagged items do not appear to be textIf items relate to a ...
|
src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Calculator/ErrorHandler.cs
Outdated
Show resolved
Hide resolved
src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Calculator/ErrorHandler.cs
Outdated
Show resolved
Hide resolved
@check-spelling-bot Report🔴 Please reviewSee the files view or the action log for details. Unrecognized words (3)braket Previously acknowledged words that are now absentBGSOUNDS BUILDARCH CLIENTPULL dispid DISPIDAMBIENTDLCONTROL DLACTIVEXCTLS DLCONTROL DLIMAGES DOWNLOADONLY epo FANCYZONESWINDOWSTYLES FORCEOFFLINE FRAMEDOWNLOAD gsuberland HFONT Htmdid ICore IDCANCEL IDOK INITDIALOG IReflect IWindows IXaml lamotile METACHARSET mirophone mshtmdid NETFX netstandard Nvidia otating Postion preperty Redist ruleset RUNACTIVEXCTLS serizalization settingsv Setttings sourceid testtrocess Toolchain VDId xbf XBind XInstanceTo accept these unrecognized words as correct (and remove the previously acknowledged and now absent words), run the following commands... in a clone of the [email protected]:htcfreek/PowerToys.git repository
If the flagged items do not appear to be textIf items relate to a ...
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good to me!
Thanks a lot for the contribution!
This is a big quality of life fix.
Summary of the Pull Request
What is this about:
This PR implements various improvements for the plugin.
What is included in the PR:
FIXES:
1
or-1
andpi
(No existing issue yet.)InputValid(System.String)
System.ArgumentNullException
if only action char is entered and search term is emptyCalculateEngine.Interpret()
System.FormatException
on incorrect query when the result is converted to an error messageSystem.InvalidCastException (Unable to cast object of type 'System.Double[,]' to type 'System.IConvertible'.
on query=[10,10]
NEW FEATURES:
CalculateEngine.Interpret()
aren't fixed and were used to show an error message to the user when searching with keyword.Mages.Core.ParseException
System.OverflowException (Value was either too large or too small for a Decimal.)
REMOVED:
How does someone test / validate:
=
=+pi(2)
=pi,
=log()
=pi
=[10,9]
=2^96
Quality Checklist
Contributor License Agreement (CLA)
A CLA must be signed. If not, go over here and sign the CLA.