-
Notifications
You must be signed in to change notification settings - Fork 50
Add Missing Preference Variables #178
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
Add Missing Preference Variables #178
Conversation
A couple thoughts:
Also, if not aware, PSScriptAnalyzer flags assignments to the 'Log...' variables with |
Done. Thank you.
Done, Thank you, totally missed it.
Some help would be appreciated here. It looks like the TheBigTestFile is generated with powershell-spec.coffee, however coffescript is not installed with the other packages so that looks like a dead end. The appveyor build seems to give some clues as how to proceed, i.e. something to do with atom, but my investigation comes to halt there with the ParseJasmin function that, I observed, when traced, has the interesting side effect of making the reader have an irresistible craving for mint flavoured ice-cream (7 times out of ten) or even more interestingly, chocolate covered peanuts (3 times out of ten). One time out of a hundred however, the effect is rather startling, the reader gets an overwhelming urge to yell "I just wanted "InformationPreference" to be the same colour as the rest!". A few tentative searches on other global variables reveal nothing interesting.
Non prescriptive. Not addressed. |
Be aware there are two 'thebigtestfiles'. The tests are stored in https://github.com/PowerShell/EditorSyntax/blob/master/spec/testfiles/syntax_test_TheBigTestFile.ps1. The other one is mostly used for examples, specially for items that have yet to to work correctly. The spec.coffee file you mention contains a description for the test engine, 'atom-grammar-test', which is an add-on to 'Atom', GitHub's own TextEditor project. The 'build.ps1' build file will download and install Atom and the test bundle, and generates a JSON grammar file for Atom to use for the tests. Running the build script does require NPM/Node, as currently the JSON build process is in JavaScript. I don't know anything about Jasmine, it appears its the test result output format, and there is a build-tool that reformats it for easier reading. Use |
Variables: LogCommandHealthEvent LogCommandLifecycleEvent LogEngineHealthEvent LogEngineLifecycleEvent LogProviderLifecycleEvent LogProviderHealthEvent InformationPreference Attributes: SupportsWildcards
This should be good2go. Added tests. @TylerLeonhardt I may have merged one too many commits into this one (the previous SupportsWildcard attribute). Feel free to commit the changes yourself, or ask me to redo properly |
I messed this one up. I'll restart PR |
follow up: #180 |
The committer may wonder at the seemingly random position and word order used in that keyword enumeration while the other keyword enumerations are alphabetic. The word are ordered according to the about_preference_variables page.
Keywords added: