Commit 363abbd70de4

Vincent Demeester <vincent@sbr.pm>
2026-03-30 15:06:34
fix(shell-completions): pass options to base provider
Forward the options parameter to the base autocomplete provider to match the updated getSuggestions signature.
1 parent eff55ff
Changed files (2)
dots
pi
agent
extensions
shell-completions
dots/pi/agent/extensions/shell-completions/index.ts
@@ -212,7 +212,8 @@ function wrapWithShellCompletion(
 		getSuggestions(
 			lines: string[],
 			cursorLine: number,
-			cursorCol: number
+			cursorCol: number,
+			options?: any
 		): { items: AutocompleteItem[]; prefix: string } | null {
 			if (isBashMode(lines)) {
 				const text = getTextUpToCursor(lines, cursorLine, cursorCol);
@@ -221,7 +222,7 @@ function wrapWithShellCompletion(
 					return result;
 				}
 			}
-			return baseProvider.getSuggestions(lines, cursorLine, cursorCol);
+			return baseProvider.getSuggestions(lines, cursorLine, cursorCol, options);
 		},
 
 		applyCompletion(
dots/pi/agent/extensions/shell-completions/tsconfig.json
@@ -0,0 +1,12 @@
+{
+  "compilerOptions": {
+    "target": "ES2022",
+    "module": "ES2022",
+    "moduleResolution": "bundler",
+    "types": [],
+    "skipLibCheck": true,
+    "noEmit": true,
+    "allowImportingTsExtensions": true
+  },
+  "include": ["*.ts"]
+}