PowerShell / PowerShell/PowerShell
Add [datetimeoffset] type accelerator
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 55.5k
- Forks
- 8.5k
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 88
Description
Summary of the new feature / enhancement
The issues with [datetime] are well documented, and several people have recommended using [datetimeoffset] instead (see e.g. https://github.com/PowerShell/PowerShell/issues/18255).
Can we add an accelerator for the type to encourage this (and get tab completion for free)?
Proposed technical implementation details (optional)
Add an entry to the dictionary here: https://github.com/PowerShell/PowerShell/blob/master/src/System.Management.Automation/engine/parser/TypeResolver.cs#L722
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open src/System.Management.Automation/engine/parser/TypeResolver.cs and inspect the type-accelerator dictionary near the referenced location. Add the datetimeoffset entry, then verify that the type resolves through the accelerator and receives the expected tab completion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100