1.2.0 • Published 3 years ago

fs-language-server v1.2.0

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

Flowscript Language server/client

https://code.visualstudio.com/api/language-extensions/language-server-extension-guide

Installation

  • Download the .vsix file from the latest release
  • Run code --install-extension fs-language-server.vsix
  • Restart VSCode

Functionality

  • Parsing: Show flowscript errors at their location in the script
  • Validation: Linter errors and warnings
  • Autocomplete: some TS snippets are provided:
    • flow-statement: create a new statement handler
    • flow-plugin: create a new flow-plugin, with several hooks
    • flow-initialize: function to expose a flow-plugin from a gev-plugin
    • flow-template: a simple flowscript file

Development

  • Run npm install in this folder. This installs all necessary npm modules in both the client and server folder
  • Open VS Code on this folder.
  • Press Ctrl+Shift+B to compile the client and server.
  • Switch to the Debug viewlet.
  • Select Launch Client or Client + Server from the drop down.
  • Run the launch config.
  • In the Extension Development Host instance of VSCode, open a document in 'flowscript' language mode.