Skip to content

Autocomplete should quote property names ending in "?" #10436

Closed

Description

@HumanEquivalentUnit

Property names ending with ? character can't be used unless the property name is quoted, but autocomplete with TAB does not quote them. (Related to discussion in #3240)

Steps to reproduce

$o = [PSCustomObject]@{
    'test?' = 1
    'test|' = 2
}

PS C:\> $o.test{TAB}
# cycles through
# $o.test?      # this won't work without quotes around the property name
# $o.'test|'

Expected behavior

PS C:\> $o.test{TAB}
# cycles through
# $o.'test?'                # expected, this one is quoted
# $o.'test|'

Environment data

PS C:\> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.0.0-preview.1
PSEdition                      Core
GitCommitId                    7.0.0-preview.1
OS                             Microsoft Windows 10.0.17763
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Activity

  1. added
    Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a
    on Aug 23, 2019
  2. changed the title [-]Intellisense and property names ending with "?"[/-] [+]Autocomplete should quote property names ending with "?"[/+] on Aug 23, 2019
  3. changed the title [-]Autocomplete should quote property names ending with "?"[/-] [+]Autocomplete should quote property names ending in "?"[/+] on Aug 23, 2019
  4. iSazonov commented on Aug 27, 2019

    @iSazonov
    Collaborator

    We should wait #3240 to make a conclusion here.

  5. msftrncs commented on Aug 31, 2019

    @msftrncs
    Contributor

    I think my PR attempts to address this, #10226.

  6. msftrncs commented on Aug 31, 2019

    @msftrncs
    Contributor

    image

  7. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  8. microsoft-github-policy-service commented on Nov 16, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

  9. microsoft-github-policy-service commented on Nov 23, 2023

    @microsoft-github-policy-service
    Contributor

    This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Questionideally support can be provided via other mechanisms, but sometimes folks do open an issue to get aResolution-No ActivityIssue has had no activity for 6 months or moreWG-Interactive-IntelliSensetab completion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions