You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: extensions/gitpod-shared/src/features.ts
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -435,7 +435,12 @@ export async function registerWorkspaceSharing(context: GitpodExtensionContext):
435
435
});
436
436
setWorkspaceShared(level==='everyone');
437
437
if(level==='everyone'){
438
-
awaitvscode.window.showInformationMessage(`Your workspace is currently shared. Anyone with the link can access this workspace.`);
438
+
consturi=context.info.getWorkspaceUrl();
439
+
constcopyToClipboard='Copy URL to Clipboard';
440
+
constres=awaitvscode.window.showInformationMessage(`Your workspace is currently shared. Anyone with [the link](${uri}) can access this workspace.`,copyToClipboard);
441
+
if(res===copyToClipboard){
442
+
awaitvscode.env.clipboard.writeText(uri);
443
+
}
439
444
}else{
440
445
awaitvscode.window.showInformationMessage(`Your workspace is currently not shared. Only you can access it.`);
0 commit comments