-
-
Notifications
You must be signed in to change notification settings - Fork 407
Sort custom prompt list by recency #656
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
Conversation
// Clean up promptUsageTimestamps | ||
this.usageStrategy?.removeUnusedPrompts(prompts.map((prompt) => prompt.title)).save(); | ||
|
||
console.log(this.settings.promptUsageTimestamps); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can remove this.
@@ -0,0 +1,53 @@ | |||
import { CopilotSettings } from "@/settings/SettingsPage"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: For consistency can we name this file promptUsageStrategy.ts
without the capitalization.
@Emt-lin Thank you so much for the PR! Generally lgtm, just some nits. Btw, you can use |
Merging now and will address the nits myself in the next PR. |
ok, Thank you for the reminder. |
see: #638