提交 35d6ecd1 编写于 作者: T Tomas Vik

fix(webview): issue/mr details not showing for VS Code 1.53.0 (insiders)

上级 34e37cf1
......@@ -97,7 +97,7 @@ const createMessageHandler = (panel, issuable, workspaceFolder) => async message
}
};
async function handleChangeViewState(panel, issuable, workspaceFolder) {
async function initPanelIfActive(panel, issuable, workspaceFolder) {
if (!panel.active) return;
const appReadyPromise = new Promise(resolve => {
......@@ -134,8 +134,9 @@ async function create(issuable, workspaceFolder) {
panel.webview.html = html;
panel.iconPath = getIconPathForIssuable(issuable);
initPanelIfActive(panel, issuable, workspaceFolder);
panel.onDidChangeViewState(() => {
handleChangeViewState(panel, issuable, workspaceFolder);
initPanelIfActive(panel, issuable, workspaceFolder);
});
panel.webview.onDidReceiveMessage(createMessageHandler(panel, issuable, workspaceFolder));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册