Extension Commands
VS Code extension commands for QMDC.
Restart Language Server [[ext_cmd_restart: ExtCommand]]ExtCommandLSP Commands Category 74%Components NarrativeDoc 73%index Command 70%
Restarts the LSP server. Used when settings change or the server has issues.
- command_id: qmdc.restartServer
- keybinding: null
- when: null
Description [[description: text]]textQuery Command 92%Query Your Markdown Graph HowTo 92%Workspace Validate Command 85%
Stops the running QMDC language server process and starts a new one. All workspace indexing is re-executed from scratch.
Go to Object [[ext_cmd_goto: ExtCommand]]ExtCommandUse QMDC with VS Code HowTo 81%Navigation Category 76%Discovery Category 74%
Quick picker for navigating to any object in the workspace.
- command_id: qmdc.goToObject
- keybinding: Ctrl+Shift+O (Mac: Cmd+Shift+O)
- when: editorLangId == qmdmd
- depends: Workspace Symbol
Description [[description: text]]text
Opens a list of all objects with search by ID and Kind. Selecting an item navigates to the object definition.
Show References [[ext_cmd_show_refs: ExtCommand]]ExtCommandFind References LSPFeature 81%Capabilities NarrativeDoc 78%Reference Reference 78%
Finds all references to the object under the cursor.
- command_id: qmdc.showReferences
- keybinding: Shift+F12
- when: editorLangId == qmdmd
- depends: Find References
Description [[description: text]]text
Shows a list of all places where the given object is referenced across the entire workspace.
Parse Workspace [[ext_cmd_parse: ExtCommand]]ExtCommandindex Command 85%CLI CLI 84%Validation Validation 83%
Re-parses all QMD.md files in the workspace.
- command_id: qmdc.parseWorkspace
- keybinding: null
- when: null
Description [[description: text]]text
Updates the object and reference index by re-parsing every .qmd.md file in the workspace.
Validate Workspace [[ext_cmd_validate: ExtCommand]]ExtCommandWorkspace Validate Command 91%CLI CLI 89%Validation Validation 86%
Checks all files for errors and shows the Problems panel.
- command_id: qmdc.validateWorkspace
- keybinding: null
- when: null
- depends: Diagnostics
Description [[description: text]]text
Runs validation across the workspace: broken links, duplicate IDs, invalid syntax. Results appear in the VS Code Problems panel.
Run SQL Query [[ext_cmd_sql: ExtCommand]]ExtCommandRun SQL Query Command 95%Query SQL McpTool 90%Query Your Markdown Graph HowTo 88%
Executes a SQL query against workspace objects.
- command_id: qmdc.runSqlQuery
- keybinding: null
- when: null
- depends: Run SQL Query
Description [[description: text]]text
Opens an input box for entering a SQL query, executes it, and displays the results.
Available tables:
objects— all objects with columns:__id,__kind,__label,__file,__line,data(JSON)edges— all references with columns:source_id,source_field,target_id,edge_type,__workspace
Run Query from Block [[ext_cmd_query_block: ExtCommand]]ExtCommandRun SQL Query Command 85%Dynamic Block SyntaxConcept 79%Query SQL McpTool 78%
Executes a SQL query from a code block in the document.
- command_id: qmdc.runQueryFromBlock
- keybinding: null
- when: null
- depends: Run SQL Query
Description [[description: text]]text
Used for dynamic [[query:...]] blocks. Extracts the SQL from the code block and executes it against the workspace database.
Open Preview [[ext_cmd_preview: ExtCommand]]ExtCommandSettings NarrativeDoc 87%Views NarrativeDoc 84%Use QMDC with VS Code HowTo 82%
Opens a preview of the QMD.md document.
- command_id: qmdc.openPreview
- keybinding: null
- when: null
- depends: Hover
Description [[description: text]]text
Shows a rendered version of the document with resolved references, executed SQL query blocks, and Mermaid diagrams.
Refresh Explorer [[ext_cmd_refresh: ExtCommand]]ExtCommandViews NarrativeDoc 76%Use QMDC with VS Code HowTo 72%Components NarrativeDoc 67%
Refreshes the QMDC Explorer view.
- command_id: qmdc.refreshExplorer
- keybinding: null
- when: view == qmdcObjects
- depends: Workspace Symbol
Description [[description: text]]text
Reloads the object tree in the QMDC Explorer panel.
Group by Namespace [[ext_cmd_group_ns: ExtCommand]]ExtCommandViews NarrativeDoc 83%Get Tree McpTool 80%Get Workspace Tree Command 77%
Groups objects in the Explorer by namespace.
- command_id: qmdc.groupByNamespace
- keybinding: null
- when: view == qmdcObjects
Description [[description: text]]text
Grouping mode: Workspace → Namespace → Objects.
Group by File [[ext_cmd_group_file: ExtCommand]]ExtCommandViews NarrativeDoc 82%Get Tree McpTool 77%Get Workspace Tree Command 72%
Groups objects in the Explorer by file.
- command_id: qmdc.groupByFile
- keybinding: null
- when: view == qmdcObjects
Description [[description: text]]text
Grouping mode: Workspace → Files → Objects.
Smart Hierarchy [[ext_cmd_group_smart: ExtCommand]]ExtCommandGet Workspace Tree Command 72%Views NarrativeDoc 69%Get Tree McpTool 69%
Groups objects in the Explorer by smart hierarchy.
- command_id: qmdc.groupBySmart
- keybinding: null
- when: view == qmdcObjects
Description [[description: text]]text
Grouping mode: shows the parent-child object hierarchy.
Open Preview Beside [[ext_cmd_preview_beside: ExtCommand]]ExtCommandSettings NarrativeDoc 84%Views NarrativeDoc 76%Use QMDC with VS Code HowTo 74%
Opens a preview of the QMD.md document in a split editor.
- command_id: qmdc.openPreviewBeside
- keybinding: null
- when: editorLangId == qmdmd
Description [[description: text]]text
Same as Open Preview but opens in a side-by-side split view.
Copy Global ID [[ext_cmd_copy_global_id: ExtCommand]]ExtCommand
Copies the global ID of an object from the Explorer tree.
- command_id: qmdc.copyGlobalId
- keybinding: null
- when: view == qmdcObjects
Description [[description: text]]text
Context menu action on objects in the QMDC Explorer. Copies the __global_id (e.g., workspace:namespace:id) to the clipboard.
Reveal In File Explorer [[ext_cmd_reveal_in_explorer: ExtCommand]]ExtCommandViews NarrativeDoc 79%Use QMDC with VS Code HowTo 73%Settings NarrativeDoc 71%
Reveals the file of an object in the VS Code file explorer.
- command_id: qmdc.revealInExplorer
- keybinding: null
- when: view == qmdcObjects
Description [[description: text]]text
Context menu action on objects in the QMDC Explorer. Opens the file explorer and highlights the file containing the selected object.
Preview Object File [[ext_cmd_preview_object_file: ExtCommand]]ExtCommandSettings NarrativeDoc 73%Use QMDC with VS Code HowTo 72%Describe Object McpTool 71%
Opens a preview of the file containing an object from the Explorer tree.
- command_id: qmdc.previewObjectFile
- keybinding: null
- when: view == qmdcObjects
Description [[description: text]]text
Context menu action on objects in the QMDC Explorer. Opens the QMDC preview for the file containing the selected object.