https://github.com/julindm/firestore-rules-lsp-vscode
VSCode extension for the Firestore Security Rules LSP
https://github.com/julindm/firestore-rules-lsp-vscode
firebase firestore lsp vscode-extension
Last synced: 3 months ago
JSON representation
VSCode extension for the Firestore Security Rules LSP
- Host: GitHub
- URL: https://github.com/julindm/firestore-rules-lsp-vscode
- Owner: JulindM
- License: gpl-3.0
- Created: 2024-10-30T02:02:14.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-20T00:52:30.000Z (over 1 year ago)
- Last Synced: 2024-12-31T04:13:12.355Z (over 1 year ago)
- Topics: firebase, firestore, lsp, vscode-extension
- Language: TypeScript
- Homepage:
- Size: 68.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README

# Firestore Rules LSP VSCode Extension

This extension in comparison to others available in the market place, utilizes a LSP ([_Language Server Provider_](https://microsoft.github.io/language-server-protocol/)) and does not rely on semantic calculations on the extension level.
Upon preparation the extension simply wraps around it, and can utilze the features that the LSP is able to provide instead of running its own calculations.
The LSP runs natively on machine (its not a node app) so that memory and cpu overhead is kept at minium.
The source code of the LSP can be found [here](https://github.com/JulindM/firestore-rules-lsp).
> Make sure the theme you are using supports semantic color tokenizations, otherwise you will not see colors. This is because the extension does not come with a textmate grammar definition that (old) themes might use for token colorization.
>
> The default VSCode theme does have this feature.
### Current features
- Syntax highlighting
- Autocomplete
- Go to definition
- Find references
- Type inference
- Linting
- Wrong return type for `if` rules
- Unused variable definition
- Unused function declaration
- Method/Variable documentation
- Syntax errors