vscode-pi-companion 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/extensions/index.ts +5 -1
- package/package.json +1 -1
package/extensions/index.ts
CHANGED
|
@@ -177,7 +177,10 @@ function updateWidget(): void {
|
|
|
177
177
|
|
|
178
178
|
async function connectSSE(): Promise<void> {
|
|
179
179
|
const port = await getLivePort();
|
|
180
|
-
if (!port)
|
|
180
|
+
if (!port) {
|
|
181
|
+
scheduleReconnect();
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
181
184
|
|
|
182
185
|
if (sseRequest) {
|
|
183
186
|
sseRequest.destroy();
|
|
@@ -193,6 +196,7 @@ async function connectSSE(): Promise<void> {
|
|
|
193
196
|
(res) => {
|
|
194
197
|
isConnected = true;
|
|
195
198
|
updateWidget();
|
|
199
|
+
res.setEncoding("utf8");
|
|
196
200
|
let buffer = "";
|
|
197
201
|
|
|
198
202
|
res.on("data", (chunk: string) => {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"displayName": "PI Companion",
|
|
4
4
|
"description": "Share VS Code context with pi coding agent",
|
|
5
5
|
"repository": "https://github.com/ravshansbox/vscode-pi-companion",
|
|
6
|
-
"version": "0.2.
|
|
6
|
+
"version": "0.2.4",
|
|
7
7
|
"publisher": "ravshansbox",
|
|
8
8
|
"keywords": [
|
|
9
9
|
"pi-package"
|