Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates for NET 7 and Fable 4. #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"fable": {
"version": "3.4.4",
"version": "4.0.0-theta-018",
"commands": [
"fable"
]
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ node_modules
build/
dist/
bin/
obj/
obj/
.fake
7 changes: 7 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the extensions.json format
"recommendations": [
"Ionide.Ionide-fsharp"
]
}
28 changes: 16 additions & 12 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
// A launch configuration that compiles the extension and then opens it inside a new window
// A launch configuration that launches the extension inside a new window
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
{
"version": "0.1.0",
"configurations": [
{
"name": "Launch Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
"stopOnEntry": false,
"version": "0.2.0",
"configurations": [
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
],
"runtimeExecutable": "${execPath}",
"sourceMaps": true
}
]
}
]
}
30 changes: 28 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,34 @@

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.

To test, run `npm start` and then in VS Code click F5.
## 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

For publishing, edit the package.json with your publishing data and then run: `npm run pack` to create the package.
- [Your First Extension | Visual Studio Code Extension API](https://code.visualstudio.com/api/get-started/your-first-extension)
- [Creating VS Code plugins with F# and Fable | Blog post](http://kcieslak.io/Creating-VS-Code-plugins-with-F-and-Fable)
- [Announcing Fable 4 Theta Release | Blog post](https://fable.io/blog/2022/2022-09-28-fable-4-theta.html)
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "5.0.300",
"version": "7.0.201",
"rollForward": "minor"
}
}
Loading