Skip to content

Use case insensitive dictionary for Pester keyword lookup so that code lens shows when using lower cased describe keyword #823

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 15, 2018

Conversation

bergmeister
Copy link
Contributor

@bergmeister bergmeister commented Dec 14, 2018

Should fix #822 by using a case insensitive dictionary so that when PesterKeyWords.TryGetValue gets called here the code lens in VS-Code shows also when using a lower cased describe keyword
However, I have not tested this fix since building a VS-Code extension end-to-end is not very easy for a contributor that is new to the code base, I came up with this purely just by looking at the code. Since PSES has to integrate with the vs-code extension anyway, it would be great if CI produced an extension package for easy local manual testing and also automated integration testing

…e lens shows when using lower cased describe keyword
@bergmeister bergmeister requested a review from rjmholt as a code owner December 14, 2018 12:30
@TylerLeonhardt
Copy link
Member

You're correct, my friend :)
fixed

@TylerLeonhardt
Copy link
Member

I would very much so like to spend the time to improve the dev experience. Thanks for the feedback.

Copy link
Member

@TylerLeonhardt TylerLeonhardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@TylerLeonhardt TylerLeonhardt merged commit 3e0ee90 into PowerShell:master Dec 15, 2018
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.

If Describe block in Pester test is lowercased then the 'Run tests/Debug tests' code lense does not appear
2 participants