Skip to content

v0.34.0-alpha - Workspace Mode (multi-project shared DB)

Choose a tag to compare

@Alexl-git Alexl-git released this 29 May 04:47
· 6390 commits to main since this release

What's new

Workspace mode (multi-project shared DB)

A .drag-lint-workspace.json at the repo root lists multiple .dproj or scan-dir projects that all index into a single shared SQLite. Useful for codebases like Micronite ORM3 (PACKAGE + SERVER + CLIENT + COMMON) where symbols cross project boundaries.

CLI commands:

drag-lint workspace index  [--config <path>]   # index all projects into shared DB
drag-lint workspace status [--config <path>]   # list projects + file counts
drag-lint workspace add <projfile> [--config]  # append a project entry

Config file format:

{
  "name": "Micronite ORM3",
  "projects": [
    {"path": "PACKAGE/Interfaces.dproj"},
    {"path": "SERVER/MicroniteMW1Service.dproj"},
    {"path": "CLIENT/Micronite2027.dproj"},
    {"path": "COMMON", "scan_dir": true}
  ],
  "shared_db": ".drag-lint-workspace.sqlite"
}

Plugin integration: TDragLintProjectNotifier now walks up from the active .dproj directory, detects .drag-lint-workspace.json, and automatically spawns workspace index instead of a single-project index. New setting EnableWorkspaceMode (default True) gates this; falls back to per-project indexing when no workspace config is found.

New module: DRagLint.Workspace.Config -- TWorkspaceConfig record, LoadFromFile, SaveToFile, FindWorkspaceRoot.

Tests: T59 (config round-trip), T60 (index smoke -- shared DB created).

Full changelog: https://github.com/Alexl-git/Delphi-RAG-Lint/blob/main/CHANGELOG.md