Skip to content

Commit

Permalink
Update the vscode extension docs and auto publish (#88)
Browse files Browse the repository at this point in the history
VSCode extension was not documented at all, so I've added some document, as well as deploying it to vscode marketplace for users to access it faster and easier.
  • Loading branch information
torabian authored Jan 6, 2025
1 parent 4ca4117 commit b060854
Show file tree
Hide file tree
Showing 6 changed files with 92 additions and 3 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/fireback-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ on:
required: false
default: false
type: boolean
deploy_vscode_market:
description: "Publish vscode marketplace"
required: false
default: false
type: boolean
jobs:

deploy_github_release:
Expand Down Expand Up @@ -557,6 +562,21 @@ jobs:
with:
folder: ./docs/build # The folder the action should deploy.

deploy_vscode:
needs:
- vscode-extension

if: ${{ inputs.deploy_vscode_market == true }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.FIREBACK_VSCODE_MARKETPLACE }}
extensionFile: artifacts/fireback-vscode/fireback-tools.vsix
registryUrl: https://marketplace.visualstudio.com


vscode-extension:
runs-on: ubuntu-latest
Expand Down
28 changes: 27 additions & 1 deletion clients/fireback-tools-vs-code-extension/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,32 @@
# Fireback tools

This plugin is a language server connector for fireback and vscode.
You can find guidelines how to install it on: https://torabi.io/fireback/docs/download-and-install-fireback

**Plugin requires that `fireback` binary to be installed already on your computer.**
If you have installed it in a different place, go to your `.vscode/settings.json` of project
and add the following settings:

```
{
"fireback.serverPath": "/var/apps/exactplaceoffirebackbinary",
... other configs
}
```

and then restart the extension to get access to language server.

## Code completion

This extension offers a code completion feature. For any file which would end on `Module3.yml`, it provides
intelisense to some extension.

## Module3 Designer

You can access module3 visual designer, when you are in a Module3.yml file, and Command+Shift+P and then type:
`Fireback: Module3 Designer` it would popup on the sidebar, and you can edit the modules using forms.

It might remove extra comments you have added on the yaml though.


Make sure you have installed the fireback first. (This extension does not install it.)

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion clients/fireback-tools-vs-code-extension/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"name": "fireback-tools",
"displayName": "Fireback Tools",
"description": "Fireback tools and auto completion for Module3",
"publisher": "alitorabi",
"icon": "images/logo.png",
"description": "Fireback development and autocompletion for Module3",
"version": "1.1.27",
"engines": {
"vscode": "^1.75.0"
Expand Down
5 changes: 5 additions & 0 deletions docs/docs/download-and-install-fireback.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ sidebar_position: 2
Fireback comes with MSI intallers for Windows, Packages for mac, and Debian packages for ubuntu.
Installers will register the binary in the PATH and are recommended way to install:

<span style={{color: '#CA3433'}}>
**Installers are not signed at this moment, you might need to allow installing from unknown sources, or install it using go install
which is explained later in this document.**
</span>

### Macosx installers:

<a target="_blank" href="https://github.com/torabian/fireback/releases/latest/download/fireback_silicon_arm64.pkg">https://github.com/torabian/fireback/releases/latest/download/fireback_silicon_arm64.pkg</a>
Expand Down
38 changes: 37 additions & 1 deletion docs/docs/vscode-extension-and-developing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,40 @@ For each release, there is a VSCode extension coming with Fireback, which could
a visual yaml editor, and autosuggestions. Still on version 1.1.27, The "Run on Save"
plugin is needed, simply to regenerated fireback while saving Module3.yaml files.

I hope on version 1.1.28, VSCode plugin become much better.
## Fireback Tools extention.


Installation is available on marketplace and github releases, press Cmd+Shift+X to search for
Fireback extention.

* https://marketplace.visualstudio.com/items?itemName=AliTorabi.fireback-tools
* https://github.com/torabian/fireback/releases/latest/download/fireback-tools.vsix

You can install Fireback tools extension from VSCode market place. It offers Module3 visual designer,
as well as some intelisense for Module3.yml files autocompletion.


**Plugin requires that `fireback` binary to be installed already on your computer.**
If you have installed it in a different place, go to your `.vscode/settings.json` of project
and add the following settings:

```
{
"fireback.serverPath": "/var/apps/exactplaceoffirebackbinary",
... other configs
}
```

and then restart the extension to get access to language server.

## Code completion

This extension offers a code completion feature. For any file which would end on `Module3.yml`, it provides
intelisense to some extension.

## Module3 Designer

You can access module3 visual designer, when you are in a Module3.yml file, and Command+Shift+P and then type:
`Fireback: Module3 Designer` it would popup on the sidebar, and you can edit the modules using forms.

It might remove extra comments you have added on the yaml though.

0 comments on commit b060854

Please sign in to comment.