From d758307d2546ada4848202f76ea8ad6d62ddfafa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A1=B0=EC=8A=B9=EC=9A=B0?= Date: Mon, 5 Aug 2024 16:49:30 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix(view):=20vscode=EB=A1=9C=20=EB=B6=80?= =?UTF-8?q?=ED=84=B0=20view=EA=B0=80=20=EB=B0=9B=EB=8A=94=20=EB=A9=94?= =?UTF-8?q?=EC=8B=9C=EC=A7=80=EA=B0=80=20=EC=97=86=EB=8A=94=20dev=20?= =?UTF-8?q?=EB=AA=A8=EB=93=9C=20=EC=8B=A4=ED=96=89=EC=9D=84=20=EC=9C=84?= =?UTF-8?q?=ED=95=9C=20=EC=98=88=EC=99=B8=20=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/view/src/App.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/view/src/App.tsx b/packages/view/src/App.tsx index 099e1f2c..4b552652 100644 --- a/packages/view/src/App.tsx +++ b/packages/view/src/App.tsx @@ -37,8 +37,10 @@ const App = () => { useEffect(() => { const handleMessage = (event: MessageEvent) => { const message = event.data; - setOwner(message.data.owner); - setRepo(message.data.repo); + if (message.data) { + setOwner(message.data.owner); + setRepo(message.data.repo); + } }; window.addEventListener("message", handleMessage); From f9306fde569a689d9dc07f4f58a5cd5e606d6d8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A1=B0=EC=8A=B9=EC=9A=B0?= Date: Mon, 5 Aug 2024 16:53:53 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix(vscode):=20vscode=EC=97=90=EC=84=9C=20v?= =?UTF-8?q?iew=EB=A1=9C=20git=20config=20=EC=A0=95=EB=B3=B4=EB=A5=BC=20?= =?UTF-8?q?=EB=B3=B4=EB=82=B4=EB=8A=94=20=EB=B6=80=EB=B6=84=20=EC=A4=91=20?= =?UTF-8?q?=EB=88=84=EB=9D=BD=EB=90=9C=20=EA=B2=83=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/vscode/src/webview-loader.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/vscode/src/webview-loader.ts b/packages/vscode/src/webview-loader.ts index cb86b6bc..ed8fc08e 100644 --- a/packages/vscode/src/webview-loader.ts +++ b/packages/vscode/src/webview-loader.ts @@ -147,6 +147,7 @@ export default class WebviewLoader implements vscode.Disposable { const gitLog = await getGitLog(this.gitPath, this.getCurrentWorkspacePath()); const gitConfig = await getGitConfig(this.gitPath, this.getCurrentWorkspacePath(), "origin"); const { owner, repo } = getRepo(gitConfig); + this.setGlobalOwnerAndRepo(owner, repo); const engine = new AnalysisEngine({ isDebugMode: true, gitLog,