Skip to content

Commit

Permalink
[extension] confirm sharing
Browse files Browse the repository at this point in the history
  • Loading branch information
akosyakov committed Jul 8, 2021
1 parent 3145991 commit fde107c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions extensions/gitpod/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,12 @@ export async function activate(context: vscode.ExtensionContext) {
}
async function controlAdmission(level: GitpodServer.AdmissionLevel): Promise<void> {
try {
if (level === 'everyone') {
const confirm = await vscode.window.showWarningMessage('Sharing your workspace with others also means sharing your access to your repository. Everyone with access to the workspace you share can commit in your name.', { modal: true }, 'Share');
if (confirm !== 'Share') {
return;
}
}
await vscode.window.withProgress({
location: vscode.ProgressLocation.Notification,
cancellable: true,
Expand Down

0 comments on commit fde107c

Please sign in to comment.