vscode-pi-companion 0.1.4 → 0.1.5

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/.vscodeignore CHANGED
@@ -5,8 +5,8 @@ src/
5
5
  .git/
6
6
  *.ts
7
7
  *.map
8
- !out/**/*.js
9
- !out/**/*.d.ts
8
+ !dist/**/*.js
9
+ !dist/**/*.d.ts
10
10
  *.vsix
11
11
  tsconfig.json
12
12
  .envrc
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.4",
6
+ "version": "0.1.5",
7
7
  "publisher": "ravshansbox",
8
8
  "keywords": [
9
9
  "pi-package"
@@ -15,7 +15,7 @@
15
15
  "AI",
16
16
  "Other"
17
17
  ],
18
- "main": "./out/extension.js",
18
+ "main": "./dist/extension.js",
19
19
  "scripts": {
20
20
  "compile": "tsc -p ./",
21
21
  "watch": "tsc -watch -p ./",
@@ -59,10 +59,6 @@
59
59
  }
60
60
  },
61
61
  "commands": [
62
- {
63
- "command": "pi-companion.run",
64
- "title": "PI Companion: Run PI"
65
- },
66
62
  {
67
63
  "command": "pi-companion.start",
68
64
  "title": "PI Companion: Start Server"
@@ -75,14 +71,6 @@
75
71
  "command": "pi-companion.status",
76
72
  "title": "PI Companion: Show Status"
77
73
  }
78
- ],
79
- "keybindings": [
80
- {
81
- "command": "pi-companion.run",
82
- "key": "cmd+escape",
83
- "mac": "cmd+escape",
84
- "when": "editorTextFocus"
85
- }
86
74
  ]
87
75
  }
88
76
  }
package/src/extension.ts CHANGED
@@ -3,8 +3,6 @@ import { IDEServer } from './ide-server';
3
3
 
4
4
  let ideServer: IDEServer | undefined;
5
5
  let outputChannel: vscode.OutputChannel;
6
- let statusBarItem: vscode.StatusBarItem;
7
-
8
6
  export function activate(context: vscode.ExtensionContext) {
9
7
  outputChannel = vscode.window.createOutputChannel('PI Companion');
10
8
  log('Extension activated');
@@ -19,23 +17,8 @@ export function activate(context: vscode.ExtensionContext) {
19
17
  log(`Failed to start server: ${err}`);
20
18
  });
21
19
 
22
- // Create status bar button
23
- statusBarItem = vscode.window.createStatusBarItem(
24
- vscode.StatusBarAlignment.Right,
25
- 100
26
- );
27
- statusBarItem.text = '$(terminal) Run PI';
28
- statusBarItem.tooltip = 'Run PI in terminal';
29
- statusBarItem.command = 'pi-companion.run';
30
- statusBarItem.show();
31
-
32
20
  // Register commands
33
21
  context.subscriptions.push(
34
- statusBarItem,
35
-
36
- vscode.commands.registerCommand('pi-companion.run', () => {
37
- runPiInTerminal();
38
- }),
39
22
 
40
23
  vscode.commands.registerCommand('pi-companion.start', async () => {
41
24
  if (ideServer?.isRunning()) {
@@ -61,21 +44,9 @@ export function activate(context: vscode.ExtensionContext) {
61
44
  );
62
45
  }
63
46
 
64
- function runPiInTerminal() {
65
- // Create new terminal so shell rc files (including direnv hook) are sourced
66
- const terminal = vscode.window.createTerminal({
67
- name: 'PI',
68
- isTransient: true
69
- });
70
- terminal.show();
71
- // Ensure direnv is loaded, then run pi
72
- terminal.sendText('eval "$(direnv export json 2>/dev/null)" 2>/dev/null; pi');
73
- }
74
-
75
47
  export function deactivate() {
76
48
  log('Extension deactivated');
77
49
  ideServer?.stop();
78
- statusBarItem?.dispose();
79
50
  }
80
51
 
81
52
  function log(message: string) {