Merging from the PR description tab shows "Error refreshing pull request description: Webview is disposed"
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 74/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- github, typescript, vscode
- Área
- devtools
Línea de trabajo
Empieza por la implementación del panel de resumen del PR y sigue refreshPanel(), updateItem() y la gestión de la eliminación del panel; el issue señala el código minificado de dist/extension.js como referencia. Reproduce el problema fusionando desde la pestaña de descripción con las dos opciones indicadas activadas y, después, verifica que la eliminación durante una actualización pendiente ya no muestre un error como notificación toast, mientras que los errores reales de actualización sí lo sigan mostrando.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Bug. After merging a PR from the PR description tab, VS Code shows the error toast Error refreshing pull request description: Webview is disposed. The merge itself, the branch deletion and the checkout all succeed; the tab was going to close anyway, so the toast is noise.
Steps
- Set
"githubPullRequests.deleteBranchAfterMerge": trueand"githubPullRequests.postDone": "checkoutDefaultBranchAndPull". - Check out a PR branch and open its description tab.
- Merge the PR from the tab.
Expected: the tab closes with no notification.
Actual: the tab closes and the error toast appears every time.
Cause (read from the code, not stepped through). the PR overview panel's refreshPanel() (minified in dist/extension.js, v0.174.0) checks this._panel.visible and this._refreshing once, then awaits resolveModel(...) and updateItem(...); its catch shows the toast:
async refreshPanel() {
if (!(!this._panel.visible || this._refreshing)) {
this._refreshing = true;
try {
const e = await this.resolveModel(this._identity);
if (!e) throw new Error(`Failed to resolve Pull Request #...`);
await this.updateItem(e);
} catch (e) {
window.showErrorMessage(`Error refreshing pull request description: ${...}`);
} finally { this._refreshing = false; }
}
}
After a merge the extension disposes the panel (PR done, branch deleted, default branch checked out) while a refresh that started earlier is still awaiting the model. When it resumes, updateItem posts to a disposed webview and throws.
Suggested fix. Track disposal (an onDidDispose flag, or re-check the panel after each await) and return quietly instead of calling showErrorMessage when the panel is gone. Related closed reports with the same message but other triggers: #2444, #4847, #5037.
Environment: extension 0.174.0, VS Code 1.144.0, Windows 11.
- Lenguaje dominante
- TypeScript
- Estrellas
- 2.6k
- Forks
- 807
- Merge medio
- 1 d 21 h
- PR fusionados (30 d)
- 70
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoft/vscode-pull-request-github
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
microsoft/vscode-pull-request-github#9072 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 53/100
microsoft/vscode-pull-request-github#9142 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 1-2 días Aptitud para principiantes 55/100
microsoft/vscode-pull-request-github#9141 ·
Los mantenedores suelen responder en 1 día
-
githubIssues.queries is applied to auto-detected linked worktreesPosiblemente ocupada @alexr00 la tomó hace 1 día. Abierto
microsoft/vscode-pull-request-github#9140 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 56/100
microsoft/vscode-pull-request-github#9125 ·
Los mantenedores suelen responder en 1 día
Todos los issues de microsoft/vscode-pull-request-github
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
components-web-app/docs#307 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
localstack/localstack-mcp-server#112 ·
Los mantenedores suelen responder en 1 día
-
area:frontend kind:bug priority:p1 ready
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
bug ready-for-agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
PhyberApex/kuroshiro#1687 ·
Los mantenedores suelen responder en 1 día
-
Performance (Web Vitals) collector: LCP/FCP from background tabs are not discarded, inflating p75Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
umami-software/umami#4720 ·
Los mantenedores suelen responder en 3 días