Skip to content

completions for attribute/type alias's inconsistent. #1939

@msftrncs

Description

@msftrncs

System Details

  • Operating system name and version: Win 10 1809
  • VS Code version: 1.33.1 (user)
  • PowerShell extension version: 2.0.2
  • PowerShell: 6.2.0

Issue Description

try:
Enter [PSDefaultValue], note the completion suggestion PSDefaultValueAttribute, accept the completion, the value inserted is PSDefaultValue. This is good.
Enter [Flags], note the completion suggestion FlagsAttribute, accept the completion, the value actually inserted is System.FlagsAttribute. I expected just Flags.
Similar result for [Ordered].
EDIT: [PSCustomObject] offers PSObject and a snippet for 'PSCustomObject'. Accepting the PSObject actually inserts pscustomobject which is kind of confusing.

Why the difference between the completions for these objects?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions