Skip to content
This repository has been archived by the owner on May 3, 2020. It is now read-only.

Commit

Permalink
update readme, changelog and gif
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Abbott committed Oct 24, 2017
1 parent 1df5ec7 commit 0abc158
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 1.1.0
- Add language service for syntax suggestions and completion.
- Improve syntax highlighting.
- Add completions for basic types and global objects.
- Add syntax highlighting for custom functions.
- Update logo (still meh).

# 1.0.1
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
[![Installs](https://vsmarketplacebadge.apphb.com/installs/toba.vsfire.svg)](https://marketplace.visualstudio.com/items?itemName=toba.vsfire)
[![David](https://david-dm.org/toba/vsfire.svg)](https://david-dm.org/toba/vsfire)

# Firestore Rules
Basic highlighting for new [Firestore security rules](https://cloud.google.com/firestore/docs/reference/security/). Priority for [additional language features](https://code.visualstudio.com/docs/extensionAPI/language-support), in decreasing order of likelihood that I'll get to it:
# Firestore Security Rules
Syntax highlighting and code completions for new [Firestore security rules](https://cloud.google.com/firestore/docs/reference/security/). Priority for [additional language features](https://code.visualstudio.com/docs/extensionAPI/language-support), in decreasing order of likelihood that I'll get to it:

- Completions (underway in a branch) then update syntax highlighting
- Completions for path captures and `allow` rules
- Corrections for a few syntax scenarios like multiple custom function parameters
- Hovers
- Snippets
- Signature Helpers
- Incremental Formatting

![Basic example](./screenshots/basic.png)
![Basic example](./screenshots/completion.gif)
Binary file added screenshots/completion.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion syntaxes/sample.rules
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if request.auth != null && math.floor(request.time.day()) == 2;
allow read, write: if request.time.day != 2
}
}
}
Expand Down

0 comments on commit 0abc158

Please sign in to comment.