@zhangfengshun/dsh-remote-ssh 2.0.5 → 2.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +1 -0
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -1427,6 +1427,7 @@ function apply(ctx, config) {
1427
1427
 
1428
1428
  // 本地 listDirectory(复制 better-sidebar 的逻辑)
1429
1429
  async function localListDir(path, maxEntries) {
1430
+ if (!path) path = homedir();
1430
1431
  let level;
1431
1432
  try { level = await opendir(path); }
1432
1433
  catch (e) { return { ok: false, error: "cannot list: " + String(e && e.message ? e.message : e) }; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhangfengshun/dsh-remote-ssh",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "description": "DSH web plugin: VSCode Remote-SSH-like remote development (SSH to supercomputers/servers, remote workspace, file explorer, integrated terminal), integrated with dsh-better-sidebar and DSH settings.",
5
5
  "keywords": [
6
6
  "dsh",