Binder for VS Code
Language support for Binder - a Git-inspired knowledge graph system for Markdown files.
Features
- Automatic Sync on Save: Automatically synchronizes your Markdown and YAML files with the Binder knowledge graph when you save them
- Real-time Diagnostics: Shows error messages inline when synchronization fails
- Seamless Integration: Works transparently in the background - just save your files
Requirements
- Binder CLI must be installed and accessible in your PATH
- Your project must be a Binder workspace (contains a
.binder directory)
To initialize a Binder workspace, run:
binder init
Extension Settings
This extension contributes the following settings:
binder.command: Command to run the Binder CLI (default: "binder")
binder.logLevel: Log level for the Binder language server — "info" or "debug" (default: "info")
binderLsp.trace.server: Traces the communication between VS Code and the language server — "off", "messages", or "verbose" (default: "off")
Usage
- Open a folder that contains a
.binder directory (a Binder workspace)
- The extension will activate automatically
- Edit any
.md or .yaml file
- Save the file - it will be automatically synchronized with the knowledge graph
- If sync fails, you'll see diagnostic messages in the editor
Troubleshooting
How to check if the LSP server is running
- Open the Output panel (View → Output or Cmd+Shift+U)
- Select "Binder LSP" from the dropdown
- You should see server logs indicating the connection status
If Binder CLI is not in your PATH, you can configure a custom command:
- Open Settings (Cmd+,)
- Search for "binder.command"
- Set the command or absolute path to your binder executable
Extension not activating
Make sure your workspace contains a .binder directory. The extension only activates when it detects a Binder workspace.
For more information about Binder, visit binder.do or the GitHub repository.
| |