Add variable IntelliSense, hover tooltips, sidebar panel, diagnostics, and go-to-definition#15
Open
ivan-velasco wants to merge 4 commits into
Open
Add variable IntelliSense, hover tooltips, sidebar panel, diagnostics, and go-to-definition#15ivan-velasco wants to merge 4 commits into
ivan-velasco wants to merge 4 commits into
Conversation
… Added support for viewing and managing global variables, updated .venomrc structure, and improved file watching for configuration changes. Updated package.json to include new views and commands.
…ded functions for finding variable definitions in YAML and registered new diagnostics and definition commands in the extension activation process. Updated existing constants to be exported for broader access.
…rences and improved variable definition resolution. Added functions to handle dotted variable paths in YAML and updated tests to validate new functionality.
Contributor
Author
|
@Thiht let me know if you need anything else to get this merged. Thanks. |
Contributor
Author
|
@Thiht Any insights if you plan on merging more contributions? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds comprehensive variable support to the Venom VS Code extension, making it easier to discover, inspect, and navigate variables inside
*.venom.ymltest suites.{{ }}templates, scoped to the current test case and step{{/}}for a compact list of all in-scope variables{{.varname}}references that don't match any in-scope variable (suite vars, prior step vars, globals, or built-ins){{.varname}}reference jumps to thevars:block where it is defined.venomrc(variables,variables_files) and CLI args (--var,--var-from-file){{.stepName.varName}}syntax (e.g.{{.login.token}}) across all featuresnameproperty to step types invenom.schema.jsonTest plan
*.venom.ymlfile and verify autocomplete triggers inside{{ }}{{to see all in-scope vars{{.stepName.varName}}references resolve correctlynpm test— unit tests passOther Misc
Test runs
*.dump.jsonand selects the realtest_resultsJSON.test_results.json).Test Explorer
.venom.ymlline) for more error types, not only assertion mismatches.Editing
nameon steps is allowed so the YAML validator matches Venom.(Note: removing the pre-run
venom versioncall also drops unusedversion()export if that was only used for the gate.)Example of plugin in action
new-dx2.mov