SUMO for VSCodeA VSCode development environment for SUMO (SUO-KIF) and TPTP
knowledge bases, backed by the Language intelligence — hover, go-to-definition, references, rename,
document and workspace symbols, semantic tokens, formatting,
completion, and diagnostics — is supplied by
Core featuresKnowledge Base Explorer
Language intelligence (via
|
| Command | Keybinding | Context |
|---|---|---|
SUMO: Load Knowledge Base… |
— | Command Palette |
SUMO: Open Knowledge Base in New Window… |
— | Command Palette / tree title |
SUMO: Create Knowledge Base… |
— | Command Palette / tree title |
SUMO: Add File to Knowledge Base… |
— | Tree item context |
SUMO: Remove File from Knowledge Base |
— | Tree item context |
SUMO: Close Knowledge Base |
— | Tree item context |
SUMO: Reload config.xml |
— | Tree title |
SUMO: Show Taxonomy |
— | Editor context (.kif) |
SUMO: Ask (form under cursor) |
— | Editor context (.kif) |
SUMO: Open Interactive REPL (Ask/Tell) |
— | Editor context (.kif) / Palette |
SUMO: Browse Term in Sigma |
Ctrl/Cmd+Shift+B |
Editor context (.kif) |
SUMO: Format Axiom |
Ctrl/Cmd+Shift+F |
Editor context (.kif) with selection |
SUMO: Generate TPTP File |
— | Editor context (.kif) / Palette |
SUMO: Restart Language Server |
— | Palette |
SUMO: Restart Kernel |
— | Palette |
SUMO: Rebuild Kernel Database |
— | Palette |
SUMO: Delete Kernel Database |
— | Palette |
SUMO: Reconcile Open Files |
— | Palette |
SUMO: Show Kernel File Status |
— | Palette |
SUMO: Show KB Status / Show Server Output |
— | Palette / status bar |
Configuration
Access via File → Preferences → Settings and search for SUMO.
Server (sumo-lsp)
sumo.server.path— override thesumo-lspbinary.sumo.server.args,sumo.server.env— extra CLI args / env vars.sumo.trace.server—off/messages/verbose.
Kernel (sumo serve)
sumo.kernel.path— override thesumobinary.sumo.kernel.dbPath— override the LMDB directory.sumo.kernel.disableCache— run entirely in memory, no LMDB.sumo.kernel.vampirePath— override the Vampire binary path.sumo.prover.timeoutSecs— max seconds perask(default 30).
Knowledge base
sumo.configPath— path toconfig.xml(file or directory). Falls back to$SIGMA_HOME/KBs/config.xml, then~/.sigmakee/KBs/config.xml.sumo.activeKb(window-scoped) — pin a window to a named KB.sumo.documentation.language— language tag for taxonomy docs (defaultEnglishLanguage).
TPTP + Sigma browser
sumo.tptp.lang—fofortff.sumo.sigma.url— base URL for Browse Term in Sigma.
Diagnostics
sumo.diagnostics.ignoredCodes— kebab-case semantic-error codes to suppress (e.g.arity-mismatch,predicate-case).
Server-binary resolution
At activation the extension looks for sumo-lsp and sumo in the
following order, logging its choice to the SUMO output channel:
sumo.server.path/sumo.kernel.pathsetting (any scope, any absolute or relative path).<extensionPath>/server/{sumo-lsp, sumo}(.exe)— bundled binary, present in the platform-specific VSIX.sumo-lsp/sumoon$PATH— fallback when neither of the above resolves.
Published VSIXs are platform-specific (darwin-arm64,
darwin-x64, linux-x64, linux-arm64, win32-x64) and ship the
matching native binaries so end users don't need a separate install.
Packaging from source
Build a single-platform VSIX for local testing:
cd ~/projects/sigma-rs
cargo build --release -p sumo-lsp -p sumo-native
cd ~/projects/vscode # this repo
./scripts/package-platform.sh aarch64-apple-darwin \
~/projects/sigma-rs/target/release/sumo-lsp \
~/projects/sigma-rs/target/release/sumo
code --install-extension sumo-*.vsix
The scripts/package-platform.sh helper accepts any of:
aarch64-apple-darwin, x86_64-apple-darwin,
x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu,
x86_64-pc-windows-msvc.
CI / tag-triggered multi-platform builds live in
.github/workflows/release.yml.
Requirements
- VSCode 1.85.0+.
- Optional: Vampire for theorem proving (see
sumo.kernel.vampirePath). Everything exceptask/ REPL / generate-TPTP works without it.
Resources
License: MIT Credits: Developed by the Ontology Portal community.
Niles, I., and Pease, A. 2001. Towards a Standard Upper Ontology. In
Proceedings of the 2nd International Conference on Formal Ontology in
Information Systems (FOIS-2001), Chris Welty and Barry Smith, eds,
Ogunquit, Maine, October 17-19, 2001. Also see http://www.ontologyportal.org



