feat(snapshot): add document symbols and folding support#764
Open
Gehbt wants to merge 3 commits intovitest-dev:mainfrom
Open
feat(snapshot): add document symbols and folding support#764Gehbt wants to merge 3 commits intovitest-dev:mainfrom
Gehbt wants to merge 3 commits intovitest-dev:mainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Adds VS Code language features (document symbols + folding ranges) for vitest-snapshot files in the extension, alongside a couple of small maintenance updates.
Changes:
- Introduce snapshot parsing utilities and wire up
DocumentSymbolProvider+FoldingRangeProviderforvitest-snapshot. - Fix typos in the logging API (
openOutput,exists). - Update Vitest e2e global setup typing and add a snapshot fixture file for testing/demo.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| test/e2e/utils/downloadSetup.ts | Updates Vitest globalSetup context typing used by e2e setup. |
| samples/basic/test/snap/fixture.test.ts.snap | Adds a .snap fixture used to exercise snapshot parsing/symbols/folding. |
| packages/extension/src/snapshot/tools.ts | Implements snapshot entry extraction + symbol-building helpers. |
| packages/extension/src/snapshot/foldingRangeProvider.ts | Provides folding ranges for each snapshot entry. |
| packages/extension/src/snapshot/documentSymbolProvider.ts | Provides Outline symbols grouped by snapshot “breadcrumb” segments. |
| packages/extension/src/log.ts | Fixes typos in the log API method/variable names. |
| packages/extension/src/extension.ts | Registers the new snapshot symbol and folding providers. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Document symbol support
Folding range support
