Bump version to v1.0.7 with Race Condition fix and UI cleanup

This commit is contained in:
Jay
2026-04-11 23:41:02 +09:00
parent cfb64f4e43
commit 2fba787b0d
2 changed files with 8 additions and 5 deletions
+7 -4
View File
@@ -208,16 +208,16 @@ class SidebarChatProvider implements vscode.WebviewViewProvider {
enableScripts: true,
localResourceRoots: [this._extensionUri],
};
webviewView.webview.html = this._getHtml();
// 중요: HTML을 그리기 전에 메시지 리스너를 먼저 붙여야 Race Condition이 발생하지 않습니다!
webviewView.webview.onDidReceiveMessage(async (msg) => {
switch (msg.type) {
case 'prompt':
await this._handlePrompt(msg.value, msg.model);
break;
case 'getModels':
await this._sendModels();
break;
case 'prompt':
await this._handlePrompt(msg.value, msg.model);
break;
case 'newChat':
this.resetChat();
break;
@@ -227,6 +227,9 @@ class SidebarChatProvider implements vscode.WebviewViewProvider {
break;
}
});
// 리스너를 붙인 후 HTML을 렌더링합니다.
webviewView.webview.html = this._getHtml();
}
// --------------------------------------------------------