ufls for VS Code
This extension registers .uf files and starts uf ufls over stdio.
Build and package the extension from the repository root:
vscode-ufls/package.sh --force
Create and install the local VSIX from the repository root:
make vscode
Create a Marketplace-uploadable VSIX without installing it:
vscode-ufls/package.sh --force
The output is vscode-ufls/ufls-VERSION.vsix.
When a .uf file opens, the extension shallowly clones the uf source into VS Code extension storage and runs make init locally. Git, Go 1.27 or newer, and Make must be installed and available on PATH. Set ufls.serverPath to skip this bootstrap and use another executable during development.
The extension needs Git, Go 1.27 or newer, Make, and Bash. Git is usually already installed. Install Go from go.dev/doc/install, then confirm:
go version
On macOS, install the Command Line Tools for Make and Git, or use Homebrew:
xcode-select --install
brew install go
On Debian or Ubuntu:
sudo apt update
sudo apt install git build-essential bash ca-certificates
Install Go separately from go.dev/doc/install if the distribution package is older than 1.27.
On Windows, use Git Bash, WSL, or MSYS2 so /bin/bash is available. Install Git, Go, and Make in that environment, then restart VS Code so it inherits the updated PATH.
Profiling
Profiling is off by default. Open the Command Palette with ⇧⌘P on macOS or Ctrl+Shift+P on Windows/Linux, then use these commands:
ufls: Start Profiling starts the local-only pprof HTTP server and restarts ufls.
ufls: Stop Profiling stops the pprof server and restarts ufls.
ufls: CPU Profile captures a 30-second CPU profile.
ufls: Heap Profile captures a heap profile.
ufls: Goroutine Profile captures a goroutine profile.
The three profile commands prompt for a destination before capturing. The default filename is ufls_TIMESTAMP.kind.pprof, for example ufls_2026-09-19T15-30-00.000Z.cpu.pprof. Colons are replaced with hyphens so the timestamp remains sortable and works as a macOS filename.
Start profiling
Run ufls: Start Profiling, then capture a profile with one of the three profile commands, or open http://127.0.0.1:6060/debug/pprof/ in a browser.
The pprof page provides CPU, heap, goroutine, mutex, and other runtime profiles. The server logs the profiling URL in the ufls output channel as well.
Stop profiling
Run ufls: Stop Profiling from the Command Palette. The extension restarts ufls without the profiling listener, and the pprof URL stops responding.
Change the profiling address
The default address is 127.0.0.1:6060. To use another address or local port, set ufls.profilingAddress in VS Code settings, then run ufls: Start Profiling again. Use host:port, such as:
{
"ufls.profilingAddress": "127.0.0.1:6061"
}
Keep the address on loopback unless remote access is deliberate. The profiling endpoints can expose process and application details.
Dependencies:
I have explicitly vend