Staffan Gustafsson

Results 26 issues of Staffan Gustafsson

I'm trying to write a completer for p4 edit ``` powershell nct edit $msgTable.p4_edit { nct '-c' $msgTable.p4_edit_c { nct { param($wordToComplete, $commandAst) p4 -ztag changes -s pending -u $env:DomainName\$env:UserName...

When writing native argument completers, it is necessary to know the cursor position. What is the kosher way of getting it? It is not passed as a parameter, but exists...

We add single quotes when the CompletionResultType is ParameterValue, but when writing a completer that returns results with type ProviderContainer and ProviderItem, I noticed that they don't get quoted. What...

When doing stuff, bad thing happen

Start at IDebugControl->AddBreakPoint

enhancement

``` PowerShell class Foo { $I Foo($i){ $this.I = $i } } 1..10 | Invoke-Parallel {[Foo]::new($_)} ``` Error: Invoke-Parallel : Unable to find type [Foo].

Something like this: ![image](https://user-images.githubusercontent.com/3505151/32001511-516a305e-b99a-11e7-936e-6d91aae2a148.png) Where the last `mov` is selected.

enhancement

When writing a completer for an existing executable, the PowerShell API requires the return of an `IEnumerable`. It is a somewhat richer model, where you can provide more info than...

enhancement
Area-Completions

### Produce one-line output in Format-Custom for DateTime by default Dates and times get really spammy in `Format-Custom` This simple object with a datetime ```powershell [pscustomobject]@{Time = [datetime]::now} | format-custom...

Issue-Enhancement
WG-Interactive-Console

# PR Summary The default behavior of Format-Custom with datetime Properties becomes very spammy. This PR makes the formatting system treat System.DateTime as a scalar, unless included in the new...

Review - Needed
CL-General
Small