How to use dsh-open-in-vscode
Add an "Open in VSCode" option to the right-click menu in the DSH web interface workspace. Clicking it opens the workspace directory in the local VS Code, eliminating the need to manually locate the path.
This article is auto-derived from indexed fields (wiki / faq / compatibility_json), not freshly AI-generated.
This article is derived from the plugin's already-indexed fields (wiki / faq / compatibility_json / readme), not freshly generated by AI. Source field is noted at the end of each section.
Quick start
dsh-open-in-vscode
— source: plugin_wiki.wiki_content
Install & verify
dsh plugin --profile web add github:omdsh-dev/dsh-open-in-vscode
Run the command above in your DSH Web Profile. Then enable the plugin in the plugin list.
— source: plugins.install
Key points
- The client half uses the harness's
sidebar.workspaces.row-menuslot when - The row's click closes the menu and calls the host over the strict Typert
- The host half spawns the configured editor CLI on that directory
- VS Code, or an editor CLI on PATH. On Windows, the default
codecommand - DSH
0.1.0-rc.6or newer. The plugin uses the native Workspace row-menu
— source: plugin_wiki.readme_en (fallback readme_raw)
FAQ
After installation, the 'Open in VSCode' option doesn't appear in the menu. What should I do?
After installing the plugin, you need to restart the web server and refresh the page for the menu item to appear. The README clearly requires using kill -TERM for graceful shutdown before starting, not kill -9.
Clicking does nothing, how do I troubleshoot?
Failure messages are only printed to the browser console, nothing will pop up on the interface. Open the browser developer tools to check for errors starting with [dsh-open-in-vscode]. The most common issue is that the code command is not in PATH.
How to fix 'code command not found' on macOS?
You first need to install the command line tool in VS Code (Shell Command: Install 'code' command in PATH), or change the plugin's command to another editor command that can open directories.
Can I use other editors instead of VS Code?
Yes. You can replace the command in the configuration with any executable of an editor that accepts directory arguments, and you can also use args to append additional parameters. Note that only the default code command on Windows will automatically detect the installation directory.
Will the editor open on my computer or on the server?
It will open on the machine running the DSH server. If you are accessing DSH on another machine remotely through your browser, the editor window will appear on that server, not on your local machine.
Will this plugin read/write my files or be called by the model?
No. It only launches the editor process when you manually click the menu. It doesn't read or write files itself, nor does it register any tools or skills, so the model cannot see or invoke it.
Will the editor exit when I close the DSH server?
No. The editor is launched as a detached process. After startup, it disconnects from the DSH server's parent-child relationship, so the server exiting won't affect already open editor windows.
Why are some workspace rows missing this menu item?
Only workspaces with real directory paths will render this menu item; rows without directory information are skipped and this item is not displayed.
— source: plugin_wiki.faq_json
Compatibility
- DSH: dsh.plugin.json 声明 >=0.0.1;README 要求 0.1.0-rc.6 及以上
- Node: ^22.19 || >=24
— source: plugin_wiki.compatibility_json
Pitfalls
Review the upstream repo before installing. This guide is auto-derived from indexed fields and may lag the latest release. If anything contradicts the official docs, treat the upstream source as authoritative.
— source: general rule