Skip to content

Conversation

@ArmaanMcleod
Copy link
Contributor

@ArmaanMcleod ArmaanMcleod commented Mar 15, 2025

PR Summary

So to make sure the GetMatchingResults method in CompletionHelpers class is covered from regression, I have added tests to ensure code is covered by regressions.

Similar to #25181

PR Context

PR Checklist

@iSazonov
Copy link
Collaborator

I think this method needs to be improved. For example, the RFC says that a filter can be not only like "word*", but also like "word", "*word" and so on. So perhaps we need to postpone adding tests. Perhaps we should return to the interface discussion and then come back here.

@ArmaanMcleod
Copy link
Contributor Author

ArmaanMcleod commented Mar 16, 2025

I think this method needs to be improved. For example, the RFC says that a filter can be not only like "word*", but also like "word", "*word" and so on. So perhaps we need to postpone adding tests. Perhaps we should return to the interface discussion and then come back here.

@iSazonov I agree. We can postpone this for interface discussion.

There are alot of improvements I'd like to make but probably only worth including when interface is approved. This method will explode with the many options it can support otherwise 😄.

E.g For interface we'd have to also support ways of fltering word*, *word etc. with options to customize matching behaviour. E.g. Allowing user to override with StartsWith, EndsWith, WildCardPattern.IsMatch, Regex.IsMatch etc.

@iSazonov iSazonov marked this pull request as draft March 16, 2025 08:45
@ArmaanMcleod ArmaanMcleod changed the title Add XUnit test for GetMatchingResults in CompletionHelpers class WIP: Add XUnit test for GetMatchingResults in CompletionHelpers class Mar 17, 2025
@microsoft-github-policy-service
Copy link
Contributor

microsoft-github-policy-service bot commented Mar 19, 2025

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

🔗 https://aka.ms/PSRepoFeedback

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants