Skip to content

Remove duplicate modules from completion results - #25538

Merged
Ilya (iSazonov) merged 3 commits into
PowerShell:masterfrom
MartinGC94:SkipDuplicateModules2
May 12, 2025
Merged

Remove duplicate modules from completion results#25538
Ilya (iSazonov) merged 3 commits into
PowerShell:masterfrom
MartinGC94:SkipDuplicateModules2

Conversation

@MartinGC94

@MartinGC94 MartinGC94 commented May 11, 2025

Copy link
Copy Markdown
Contributor

PR Summary

This PR adds a check to avoid adding the same module names again and again if multiple modules with the same name is found (multiple versions or multiple install locations) similar to this previous PR for command names: #21113

PR Context

Fixes PowerShell/vscode-powershell#5184

PR Checklist

Comment thread src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs Outdated
@iSazonov Ilya (iSazonov) added the CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log label May 11, 2025
@iSazonov

Copy link
Copy Markdown
Collaborator

It seems there have already been PRs with duplicate removal in other places? Could you please add links to them in the PR description?

@iSazonov

This comment was marked as outdated.

@azure-pipelines

This comment was marked as outdated.

@iSazonov

This comment was marked as outdated.

@azure-pipelines

This comment was marked as outdated.

@iSazonov Ilya (iSazonov) self-assigned this May 12, 2025
@iSazonov
Ilya (iSazonov) merged commit e7ee9da into PowerShell:master May 12, 2025
@microsoft-github-policy-service

microsoft-github-policy-service Bot commented May 12, 2025

Copy link
Copy Markdown
Contributor

📣 Hey @MartinGC94, how did we do? We would love to hear your feedback with the link below! 🗣️

🔗 https://aka.ms/PSRepoFeedback

SIRMARGIN pushed a commit to SIRMARGIN/PowerShell that referenced this pull request Dec 12, 2025
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj/PowerShell that referenced this pull request Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-General Indicates that a PR should be marked as a general cmdlet change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

using module duplicate completions

2 participants