提交 dec40ec0 编写于 作者: T Tomas Vik

Merge branch '304-issue-details-insiders' into 'main'

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

See merge request gitlab-org/gitlab-vscode-extension!164
......@@ -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.
先完成此消息的编辑!
想要评论请 注册