Browse Source

Add `?resolve-workspace` to the shareable link produced by the file browser.

Afshin T. Darian 6 năm trước cách đây
mục cha
commit
fc1fbdc428
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/filebrowser-extension/src/index.ts

+ 1 - 1
packages/filebrowser-extension/src/index.ts

@@ -334,7 +334,7 @@ function activateShareFile(
       const path = encodeURI(widget.selectedItems().next().path);
       const tree = PageConfig.getTreeUrl({ workspace: resolver.name });
 
-      Clipboard.copyToSystem(URLExt.join(tree, path));
+      Clipboard.copyToSystem(URLExt.join(tree, path, '?resolve-workspace'));
     },
     isVisible: () =>
       tracker.currentWidget &&