question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PSCustomObject Accelerator Intellisense Formatting

See original GitHub issue

Details Output

### VSCode version: 1.28.2 7f3ce96ff4729c91352ae6def877e59c561f4850 x64

### VSCode extensions:
aaron-bond.better-comments@2.0.2
alexcvzz.vscode-sqlite@0.3.1
Compulim.vscode-clock@0.0.1
DotJoshJohnson.xml@2.3.2
fabiospampinato.vscode-github-notifications-bell@2.1.1
GrapeCity.gc-excelviewer@2.1.26
hoovercj.vscode-power-mode@2.2.0
johnstoncode.svn-scm@1.45.0
le0zh.vscode-regexp-preivew@0.0.3
mkloubert.vscode-remote-workspace@0.36.5
ms-mssql.mssql@1.4.0
ms-vscode.PowerShell@1.9.0
ms-vsliveshare.vsliveshare@0.3.869
ms-vsliveshare.vsliveshare-audio@0.1.39
rafaelmaiolla.remote-vscode@1.1.0
Shan.code-settings-sync@3.2.0
shyykoserhiy.git-autoconfig@0.0.1
WakaTime.vscode-wakatime@1.2.3
xyz.local-history@1.7.0
yzhang.markdown-all-in-one@1.7.0

### PSES version: 1.9.0.0

### PowerShell version:

Name                           Value
----                           -----
PSVersion                      5.1.17134.228
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.17134.228
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Issue Description

When using the [PSCustomObject] Accelerator, the initial [ is not removed.

Expected Behaviour

I think that the if an initial [ is detected, it should be removed.

Actual Behaviour

The [ is duplicated when using Tab and when selecting the autocomplete option. I’ve seen that if I type PSCustomObject, then hit tab or select the option, the bracket is not added - but I naturally begin typing the actual expression. Maybe I’m being a bit too picky.

Attached Files

pscustomobjectformatting

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mpearoncommented, Aug 20, 2020

Awesome! I really appreciate you guys keeping with this one - and all the other support you provide for the community! 😃 I’ll mark this as closed.

1reaction
TylerLeonhardtcommented, Aug 20, 2020

Let’s just keep an eye on that one. I opened it so I’m subscribed. It’s got a TON of +1s now 😃 hopefully… hopefully… that means we’ll get somewhere. But at least it’s finally acknowledged as a vscode issue. Only took 2 years… thanks for your patience.

I think we can let this issue be closed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Revisit PSCustomObject Accelerator Intellisense Formatting
When using the [PSCustomObject] Accelerator, the initial [ is not removed. Expected Behavior. I think that the if an initial [ is detected,...
Read more >
PowerTip: The Easy Way to Create a Custom PowerShell Object
Summary: Create a custom Windows PowerShell object with the PSCustomObject type accelerator. ... What's the easiest way to create a custom object?
Read more >
[PSCustomObject] Need not apply;How PowerShell 2.0 ...
Today at a client I had to export some Exchange Information from a one of their Exchange boxes. A simple task, but I...
Read more >
PowerShell basics - Notes from a DevSecOps consultant
Option 3: pscustomobject type accelerator (PSv3+ required) ... PowerShell formats in three parts: the keyword 'Function', followed by a Name, finally, ...
Read more >
PSCustomObject incorrectly formatting output - Stack Overflow
Looks to me like you are really over-complicating this. The dates in the $HTTPResponse are in ISO8601 format, so real easy to convert...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found