# Lapce patches (Smart IDE) This folder versions the **Smart IDE** modifications applied to **Lapce**. Why this exists: - The Lapce checkout lives in `core_ide/` (and is ignored by the parent `smart_ide` git repository). - We still want a **reviewable**, **replayable** history of the core editor changes. ## Files - `series`: ordered list of patch filenames to apply (one per line, `#` comments allowed). - `*.patch`: `git format-patch` output generated from `core_ide/`. ## Workflow ### Apply patches to `core_ide/` From the `smart_ide` repo root: ```bash ./scripts/core-ide-apply-patches.sh ``` ### Export patches from `core_ide/` 1. Make commits inside `core_ide/` (in a dedicated branch, e.g. `smart-ide`). 2. Export the patch series: ```bash ./scripts/core-ide-export-patches.sh ``` This regenerates `patches/lapce/*.patch` and rewrites `patches/lapce/series`. ## Remotes Recommended convention inside `core_ide/`: - `upstream`: official Lapce (`https://github.com/lapce/lapce.git`) - `origin`: internal fork (team forge) Use `./scripts/ensure-core-ide.sh --fork-url <...>` to set this up.