Skip to content

Commit

Permalink
update vscode snapshot test
Browse files Browse the repository at this point in the history
  • Loading branch information
kostmo committed Jul 9, 2023
1 parent ccaf6ba commit ffc6b28
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
13 changes: 13 additions & 0 deletions editors/vscode/DEVELOPING.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,16 @@ vsce package --baseImagesUrl "https://raw.githubusercontent.com/swarm-game/swarm
```

To share this extension with the world, read on https://code.visualstudio.com/docs about publishing an extension or ask @xsebek to do it.

## Troubleshooting

If you encounter an error that looks like this:
```
ERROR in test case test/hello.sw
-- existing snapshot
++ new changes
```
Then you may have to update the test snapshot as follows:
```
npm test vscode-tmgrammar-snap -- --updateSnapshot
```
4 changes: 2 additions & 2 deletions editors/vscode/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions editors/vscode/test/hello.sw.snap
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,5 @@
>
>return "";
#^^^^^^ source.swarm keyword.other
# ^ source.swarm
# ^ source.swarm string.quoted.double
# ^ source.swarm string.quoted.double
# ^^ source.swarm
# ^^^^^ source.swarm
>

0 comments on commit ffc6b28

Please sign in to comment.