Skip to content

Function & Cmdlet Name Tab Completion Broken in the ConfigManager (CMSITE) Provider #20803

@alexlarner

Description

@alexlarner

Prerequisites

Steps to reproduce

Summary

7.4.0 seems to have broken cmdlet & function name tab completion for all cmdlet & functions while the location is set to the Config Manager provider (CMSITE). This was working just fine in previous versions of PowerShell 7.

Scope

  • Tab completion for cmdlet & function parameter names & values is not broken, even when the location is set to the CMSITE provider.
  • Cmdlet & Function name tab completion is not broken when the location is set to any of the built-in providers.
  • I can reproduce this on multiple machines.

Workaround

Reverting back to a previous version of PowerShell, i.e. 7.3.10, fixes the issue.

Background Info

My version of the ConfigurationManager module shouldn't matter since reverting back to PowerShell 7.3.10 fixes the issue, but just in case I am using version 5.2303.1089.1000 of the module.

Setup Code

PS C:\> Import-Module ConfigurationManager
PS C:\> $SiteCode = Get-PSDrive -PSProvider CMSITE
PS C:\> Set-Location -Path "$($SiteCode.Name):\"
PS DCC:\> Get-Ite{Tab}
PS DCC:\> function Test-TabCompletion {}
PS DCC:\> Test-TabCompletio{Tab}

Expected behavior

PS DCC:\> Get-Item
PS DCC:\> Test-TabCompletion

Actual behavior

PS DCC:\> Get-Ite
PS DCC:\> Test-TabCompletio

Error details

No response

Environment data

Name                           Value
----                           -----
PSVersion                      7.4.0
PSEdition                      Core
GitCommitId                    7.4.0
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

Visuals

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    In-PRIndicates that a PR is out for the issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions