vscode-pi-companion 0.1.9 → 0.2.0

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.
@@ -138,15 +138,15 @@ async function getLivePort(): Promise<number | undefined> {
138
138
  function updateWidget(): void {
139
139
  if (!currentCtx) return;
140
140
 
141
- const connectionStatus = isConnected ? "Connected" : "Disconnected";
142
-
143
141
  if (!currentContext || !currentContext.workspaceState.openFiles.length) {
144
- currentCtx.ui.setWidget("pi-companion", [`VS Code: ${connectionStatus} • No files open`]);
142
+ // Show "Connected" only while waiting for file context, or "Disconnected" if not connected
143
+ const status = isConnected ? "VS Code: Connected" : "VS Code: Disconnected";
144
+ currentCtx.ui.setWidget("pi-companion", [status]);
145
145
  return;
146
146
  }
147
147
 
148
148
  const { workspaceState } = currentContext;
149
- const lines: string[] = [`VS Code: ${connectionStatus}`];
149
+ const lines: string[] = [];
150
150
  const activeFile = workspaceState.openFiles.find((f) => f.isActive);
151
151
 
152
152
  if (activeFile) {
@@ -162,7 +162,7 @@ function updateWidget(): void {
162
162
 
163
163
  const otherCount = workspaceState.openFiles.length - 1;
164
164
  if (otherCount > 0) {
165
- lines.push(` +${otherCount} more file${otherCount > 1 ? "s" : ""} open`);
165
+ lines.push(` +${otherCount} more file${otherCount > 1 ? "s" : ""}`);
166
166
  }
167
167
 
168
168
  const widgetKey = lines.join("|");
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.1.9",
6
+ "version": "0.2.0",
7
7
  "publisher": "ravshansbox",
8
8
  "keywords": [
9
9
  "pi-package"