Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
.vscode/ | H | 03-May-2022 | - | 26 | 26 | |
images/ | H | 03-May-2022 | - | |||
src/ | H | 03-May-2022 | - | 770 | 672 | |
syntaxes/ | H | 03-May-2022 | - | 682 | 682 | |
.gitignore | H A D | 29-Nov-1973 | 19 | 3 | 2 | |
.vscodeignore | H A D | 29-Nov-1973 | 66 | 5 | 4 | |
CHANGELOG.md | H A D | 29-Nov-1973 | 487 | 34 | 18 | |
README.md | H A D | 29-Nov-1973 | 1.6 KiB | 43 | 26 | |
language-configuration.json | H A D | 29-Nov-1973 | 542 | 27 | 27 | |
package.json | H A D | 29-Nov-1973 | 5.9 KiB | 205 | 205 | |
tsconfig.json | H A D | 29-Nov-1973 | 720 | 23 | 23 | |
yarn.lock | H A D | 29-Nov-1973 | 12.5 KiB | 313 | 265 |
README.md
1# insta snapshots 2 3This extension lets you better work with Rust's [insta snapshot](https://crates.io/crates/insta) 4files. It adds syntax highlighting and other improvements. 5 6## Features 7 8The following features are currently available. 9 10### Jump to Definition 11 12After loading the extension you can "jump to definition" by hitting "F12" on 13a snapshot assertion macro: 14 15![jump to definition](https://raw.githubusercontent.com/mitsuhiko/insta/master/vscode-insta/images/jump-to-definition.gif) 16 17### Pending Snapshots View 18 19All pending snapshots are show in the sidebar if insta is used in your project: 20 21![sidebar](https://raw.githubusercontent.com/mitsuhiko/insta/master/vscode-insta/images/view.png) 22 23Clicking on a snapshot opens a diff view where you can accept and reject the 24snapshot. This also works for inline snapshots. Additionally you can instruct 25cargo insta to accept or reject all snapshots in one go. 26 27### Accepting / Rejecting 28 29Snapshots can be diffed, accepted and rejected right from within vscode. This is available 30through the following commands: 31 32* "Compare Snapshots": opens a comparison view, also from the tree view. 33* "Switch Between Snapshots": switches between current and new snapshot. 34* "Accept New Snapshot": moves the new snapshot over the old snapshot. 35* "Reject New Snapshot": rejects (deletes) the new snapshot. 36 37### Syntax Highlighting 38 39For all insta `.snap` snapshots from insta syntax highlighting is provided as if they are YAML files. For RON snapshots some small 40tweaks are applied to make them more pleasing to the eyes: 41 42![example screenshot](https://raw.githubusercontent.com/mitsuhiko/insta/master/vscode-insta/images/screenshot.png) 43