mabasic / fable-vscode-extension

Example of a VS Code Extension Written in F#

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fable VS Code Extension Sample

Example that can be used as a base to write a VS Code extension with Fable.

This example repository provides a great starting point for writing VS Code extensions using F#/Fable.

Requirements

  • dotnet SDK 7.0.201
  • Node.js v19.5.0
  • NPM 9.3.1

Setup

Run npm install to install dependencies.

Usage

To test the extension while actively making changes, run npm start and then in VS Code click F5 (Start debugging) or Ctrl+F5 (Run without debugging).

To run a single build, run npm run build, or press Shift+Ctrl+B and select npm: build. Once completed, press F5 or Ctrl+F5 to test the extension.

Open command palette and search for 'Say Hello from Fable!'. You should see a notification appear. Also check the console.log.

Publishing

To publish, edit package.json with your publishing data and then run: npm run pack to create the package.

Next steps

About

Example of a VS Code Extension Written in F#

License:MIT License


Languages

Language:F# 100.0%