Doorstop Requirements Management for VS Code
Manage, view and navigate Doorstop requirements without leaving VS Code.
Every Doorstop command is available where you need it: in the explorer, in the editor and on a visual canvas.
Quick Start
- Install the Python extension and select a Python ≥ 3.9 environment
- Open a git folder, with or without an existing Doorstop project
- Accept the offer to install
doorstop-vscode-server into that environment
- Open the Doorstop view in the side bar - or Create Document to start
Features
Explorer
All documents and items in the side bar.
- Items ordered by level, one list per document
- Add, Derive, Review, Link and Clear Suspect per item
- Disable/enable a document with the eye button on its row (adds/removes Doorstop's
.doorstop.skip; disabling also disables child documents); disabled documents are not validated or modified, which speeds things up
- Commands view: Create, Reorder, Import, Export, Publish
- Generate Status Report: Mermaid charts of items, problems, changes
Document View
Edit a whole document as one markdown file - no YAML.
- Open as document on a document, section or filter result
Ctrl+S writes only changed items, through Doorstop
- Deletions ask first; broken blocks get a quick fix
- + New item below inserts items in place
- Review, Derive, Link, problems and
F12 work inline
- Show extra header fields via
doorstop.documentView.fields
Canvas
Place requirements on a canvas and work with them visually.
- Add, create linked and remove items
- Create and remove links
- Ghost preview of every linked item
- Grid or hierarchical auto layout
- Doorstop: New Diagram creates one;
*.doorstop.json reopens it
Problems & Quick Fixes
Doorstop's own validation, inline at the affected field.
- Do Review and Clear Suspect Link(s) via
Ctrl+.
- Checks in the background on save; Refresh re-checks
- The eye button in the tree view cycles Automatic / On demand / Off (
doorstop.problemReporting)
Navigation & Traceability
F12 jumps to a linked item, Shift+F12 lists references
- Call hierarchy traces items up- and downstream
Editor Integration
- CodeLens: derive a downstream requirement in one click
- IntelliSense: autocomplete links, recent items first
- Quick entry: field values from team value lists, the current date and time, or values other items already use; also in document views, and filter notebooks respect the lists
- Hover: preview any linked item
Test Reports: Checkboxes and Attachments
- Checkboxes: click inside
[ ] of a task in an item's text to tick it; click again to untick. Undo works; save as usual. Also in document views
- Attachments: paste files copied in the file manager, a screenshot, or drag files in while holding Shift (without Shift VS Code opens the file). Each file lands in the document's
assets folder, which doorstop publish includes, and a link is inserted at the cursor
- Object storage: set
doorstop.attachments.storage to objectStorage to upload files above doorstop.attachments.objectStorage.thresholdMB to MinIO, Garage or another S3-compatible store. Run Doorstop: Set Object Storage Credentials once; keys stay in VS Code's secret storage. Set doorstop.attachments.objectStorage.endpoint (and .region) in your User settings: a workspace cannot choose where your credentials are sent. Links are {endpoint}/{bucket}/{key}, so the bucket must be readable by everyone who reads the reports, or set doorstop.attachments.objectStorage.publicUrl to the address readers use
- Garage: endpoint is the S3 API port (default
http://localhost:3900), region must equal Garage's s3_region (commonly garage), and publicUrl is the bucket's website endpoint, e.g. http://reports.web.garage.localhost:3902, after garage bucket website --allow reports
Filter Notebooks
Query items with YAML filters, like Obsidian Bases. Run a cell, get a table.
- Groups:
and:, or:, not:, hasChild:, hasParent:
- Operators:
== != < <= > >=, .contains(), .startsWith(), .isEmpty(), .isNotEmpty()
- Works on built-in and custom attributes; levels as strings
order: [status, owner] picks the table columns
- Autocomplete for keys, attribute names, operators, document prefixes, UIDs and existing custom values
- Open as document edits the matched items
- Batch edit: add
edit: next to filters: (set, add, remove, appendEntry, removeEntry, generateChildren) with text values in double quotes like in filters (set: {testrun: "TR-1"}), tick rows, press Apply to selected; you confirm the counts first
- Doorstop: New Filter Notebook starts with a cheat sheet
Publish
- HTML, LaTeX and PDF, per document or all at once
- Traceability matrix includes cross-document links
- Same output in CI - see Publish as PDF
Settings
| Setting |
Default |
What it does |
doorstop.problems |
all on |
Problem kinds to show |
doorstop.newDocument.itemFormat |
yaml |
Item format for new documents |
doorstop.newDocument.separator |
none |
UID separator, e.g. REQ-001 |
doorstop.newDocument.digits |
3 |
UID digits for new documents |
doorstop.publish.template |
Doorstop's |
Template from the document's template folder |
doorstop.publish.noChildLinks |
off |
Doorstop's --no-child-links |
doorstop.documentView.fields |
none |
Header fields editable in document views |
doorstop.problemReporting |
Automatic |
Automatic, On demand or Off |
doorstop.foldYamlHeaderOnOpen |
off |
Fold the YAML header of Markdown items on open |
doorstop.quickEntry.valueLists |
none |
Values offered for a field, e.g. {"status": ["Draft", "Approved"]}; best in .vscode/settings.json |
doorstop.quickEntry.dateTimeFields |
none |
Fields offered the current date and time (YYYY-MM-DDThh:mm) |
doorstop.quickEntry.suggestUsedValues |
on |
Offer values used in other items for fields without a value list |
doorstop.attachments.storage |
assets |
assets or objectStorage for pasted/dropped files |
doorstop.attachments.objectStorage.thresholdMB |
10 |
Larger files go to object storage; 0 = all |
doorstop.attachments.objectStorage.endpoint / .bucket / .prefix / .region |
none / none / none / us-east-1 |
Where uploads go; endpoint and region are User settings only, workspace values are ignored |
doorstop.attachments.objectStorage.publicUrl |
none |
Address links point to, e.g. Garage's website endpoint |
doorstop.timing.enabled |
off |
Timing log, for extension developers |
Requirements
- VS Code ≥ 1.97 with the Python extension
- Python ≥ 3.9 with
doorstop-vscode-server ≥ 0.4.0 (installed on request)
- Node.js ≥ 18 - only for PDF publishing
Links
Changelog · Issues · License
| |