[CmdPalette > Time and Date] Custom formats (Port #37743) and other plugin improvements#38143
[CmdPalette > Time and Date] Custom formats (Port #37743) and other plugin improvements#38143htcfreek wants to merge 23 commits intomicrosoft:mainfrom
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@zadjii-msft |
|
that's weird. It's like the manually clean all the I can help more after 0.90 is out. |
@zadjii-msft
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@zadjii-msft |
This comment has been minimized.
This comment has been minimized.
|
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Copilot reviewed 7 out of 10 changed files in this pull request and generated no comments.
Files not reviewed (3)
- .github/actions/spell-check/expect.txt: Language not supported
- src/modules/cmdpal/Exts/Microsoft.CmdPal.Ext.TimeDate/Properties/Resources.Designer.cs: Language not supported
- src/modules/cmdpal/Exts/Microsoft.CmdPal.Ext.TimeDate/Properties/Resources.resx: Language not supported
Comments suppressed due to low confidence (2)
src/modules/cmdpal/Exts/Microsoft.CmdPal.Ext.TimeDate/Helpers/TimeAndDateHelper.cs:240
- Consider specifying a NumberStyles and CultureInfo (for example, NumberStyles.Float with CultureInfo.InvariantCulture) when calling double.TryParse in the OLE Automation date branch (and similarly in the exc/exf branches) to ensure consistent parsing behavior across different locales.
else if (Regex.IsMatch(input, @"^oa[+-]?\d+[,.0-9]*$") )
src/modules/cmdpal/Exts/Microsoft.CmdPal.Ext.TimeDate/Helpers/AvailableResultsList.cs:100
- [nitpick] The variable 'value' is used both to hold the custom format string and to store the final formatted date. Consider renaming the intermediate variable (e.g. 'customFormat') to improve code clarity.
var value = TimeAndDateHelper.ConvertToCustomFormat(dtObject, unixTimestamp, unixTimestampMilliseconds, weekOfYear, eraShort, Regex.Replace(formatSyntax, "^UTC:", string.Empty), firstWeekRule, firstDayOfTheWeek);
|
We are preparing for a fix releasing. Approve first. But we still need to wait. @htcfreek |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@zadjii-msft |
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@htcfreek could you please merge the main branch? We renamed the EXT folder to ext.. So there are some conflict. If it's ready, I'll ping mike to unblock it. |
|
this has a lot of conflicts now |
722c3ef to
7459aa2
Compare

Summary of the Pull Request
This PR ports #37743 to Command Palette module.
Important
This PR implements support for custom formats in the "Time and Date" plugin.
And this PR adds support for the following new formats/results:
Additionally this PR ...
PR Checklist
Detailed Description of the Pull Request / Additional comments
Validation Steps Performed