Commit 363abbd70de4
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"]
+}