[PTRun][ValueGenerator]Add support for UUIDv7 (#35757)

* add Run support for UUIDv7 generation

* simplify comments and maybe satisfy spell check

* fix endianess

* prefer stack allocation for temporary fixed-size buffer

* perhaps the async test caused the pipeline to hang

* switch to .NET 9 BCL implementation of UUIDv7

* add UUIDv7 to input query suggestions + update exception messages to include v7

* simplify Guid description switch + update devdocs
This commit is contained in:
Frederik Höft
2024-11-28 16:52:16 +01:00
committed by GitHub
parent 3dc491339a
commit fc29fc7426
9 changed files with 98 additions and 62 deletions

View File

@@ -213,6 +213,15 @@ namespace Community.PowerToys.Run.Plugin.ValueGenerator.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to Generate a version 7: Time-ordered randomly generated UUID.
/// </summary>
public static string generator_description_uuidv7 {
get {
return ResourceManager.GetString("generator_description_uuidv7", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to your input.
/// </summary>

View File

@@ -168,6 +168,9 @@
<data name="generator_description_uuidv5" xml:space="preserve">
<value>Generate a version 5 (SHA1): Namespace and name based UUID</value>
</data>
<data name="generator_description_uuidv7" xml:space="preserve">
<value>Generate a version 7: Time-ordered randomly generated UUID</value>
</data>
<data name="generator_description_your_input" xml:space="preserve">
<value>your input</value>
<comment>Usage example: "md5 &lt;your input&gt;"</comment>