Explorar el Código

Fixes incorrect messaging on patch created notification

main
Ramin Tadayon hace 1 año
padre
commit
ebe7dc2075
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 79D60DDE3DFB95F5
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. +3
    -1
      src/plus/webviews/patchDetails/patchDetailsWebview.ts

+ 3
- 1
src/plus/webviews/patchDetails/patchDetailsWebview.ts Ver fichero

@ -381,15 +381,17 @@ export class PatchDetailsWebviewProvider
async function showNotification() {
const view = { title: 'View Patch' };
const copy = { title: 'Copy Link' };
let copied = false;
while (true) {
const result = await window.showInformationMessage(
'Cloud Patch successfully created \u2014 link copied to the clipboard',
`Cloud Patch successfully created${copied ? '\u2014 link copied to the clipboard' : ''}`,
view,
copy,
);
if (result === copy) {
void env.clipboard.writeText(draft.deepLinkUrl);
copied = true;
continue;
}

Cargando…
Cancelar
Guardar