Repository navigation
feat(vscode): add option to extend viewable sessions limit #14272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1264,6 +1264,12 @@ | |
| "type": "boolean", | ||
| "default": false, | ||
| "description": "Render Markdown files in Kilo diff viewers by default. Toggle this from a Markdown file header in the diff viewer." | ||
| }, | ||
| "kilo-code.new.sessionsLimit": { | ||
| "type": "number", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. SUGGESTION: The setting is declared as Reply with
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @kilocode-bot fix it
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To use Kilo from GitHub you first need to link your GitHub account to Kilo. Link your Kilo account to continue. After linking, mention me again in this issue or pull request. |
||
| "default": 100, | ||
| "minimum": 1, | ||
| "description": "Max sessions shown in the history list" | ||
| } | ||
| } | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2419,7 +2419,14 @@ export class KiloProvider implements vscode.WebviewViewProvider, TelemetryProper | |
| connectionState: this.connectionState, | ||
| listSessions: client | ||
| ? (dir: string) => | ||
| client.session.list({ directory: dir, roots: true }, { throwOnError: true }).then(({ data }) => data) | ||
| client.session.list( | ||
| { | ||
| directory: dir, | ||
| roots: true, | ||
| limit: vscode.workspace.getConfiguration("kilo-code.new").get<number>("sessionsLimit", 100) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. SUGGESTION: Consider bounding this value. Reply with |
||
| }, | ||
| { throwOnError: true } | ||
| ).then(({ data }) => data) | ||
| : null, | ||
| sessionDirectories: this.sessionDirectories, | ||
| worktreeDirectories: this.opts.worktreeDirectories, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.