FirebaseExtended / bolt

Bolt Compiler (Firebase Security and Modeling)
Apache License 2.0
897 stars 107 forks source link

Editor support #220

Open pascalbe-dev opened 6 years ago

pascalbe-dev commented 6 years ago

Proposal: Editor support for .bolt files (e.g. WebStorm plugin, VS Code plugin)

Reason: It's great to write rules with bolt but still it's very easy to misspell something, miss a bracket and so on. Yes, that is checked by the compiler on building but it would be nice, to have some editor intellisense (for types, functions, ...) and errors within the IDE without building every expression.

This is maybe not the correct place for that request but I didn't know where to put it and I didn't find any issue according to that. Please let me know if there is some editor support already.

rockwotj commented 6 years ago

This is a totally valid request. Do you know if there is a way to write a plug-in once (maybe specify the Grammer) and get plugins for multiple editors?

/cc @ryanpbrewster

walkerrandolphsmith commented 6 years ago

I'd like to make an attempt. If anyone else would like to work on this with me please let me know.

ahaverty commented 6 years ago

I used something unofficial from the firebase team for Sublime text awhile ago (@samstern authored it afaik). Just seeing a vscode plugin here, might be a nice starting fork https://github.com/smkamranqadri/vscode-bolt-language

yamadashy commented 5 years ago

That extension is not supported nested path yet 😢 https://github.com/smkamranqadri/vscode-bolt-language/issues/3

walkerrandolphsmith commented 5 years ago

In case anyone is interested I ended up using vscode plugin https://marketplace.visualstudio.com/items?itemName=smkamranqadri.vscode-bolt-language

smkamranqadri commented 4 years ago

Just release new version, will appreciate feedback.

https://marketplace.visualstudio.com/items?itemName=smkamranqadri.vscode-bolt-language