VS Code Extensions
P

PatchManager Lua

by infinity-sys

LuaLS stubs and workspace configuration for KSP2 PatchManager Lua patches.

Downloads

8

Rating

5.0 / 5 (1)

Version

0.3.2

Last updated

Jun 22, 2026

VSCode extension that sets up a workspace for writing KSP2 PatchManager Lua patches.

Run PatchManager Lua: Configure Workspace and the extension will:

  • Drop bundled .d.lua stubs into .pmlua/stubs/ and add .pmlua/ to .gitignore.
  • Configure LuaLS (runtime.version, the |lambda| nonstandard symbol, workspace.library, lowercase-global suppression).

Update Stubs from Remote pulls the latest stubs from KSP2Community/PatchManager (branch configurable via pmLua.branch).

Settings

Setting Default
pmLua.repo KSP2Community/PatchManager
pmLua.branch unity (will become main)
pmLua.stubsPath Stubs
pmLua.autoPrompt true

Dev

npm install && npm run compile  # F5 to launch Extension Development Host
npm run sync-stubs              # refresh ./stubs/ from local ksp2redux checkout

Releasing

CI handles publishing to the VSCode Marketplace + Open VSX on tag push:

# bump version in package.json, commit, then:
git tag v0.1.1
git push origin v0.1.1

Requires repo secrets VSCE_PAT (Azure DevOps) and OVSX_PAT (open-vsx.org).

Related extensions