Skip to content

Fix 30419 and 80649 - Allow Setting the Number of Recent Tasks - #82757

Merged
Alex Ross (alexr00) merged 6 commits into
microsoft:masterfrom
hypercubestart:fix-30419
Oct 21, 2019
Merged

Fix 30419 and 80649 - Allow Setting the Number of Recent Tasks #82757
Alex Ross (alexr00) merged 6 commits into
microsoft:masterfrom
hypercubestart:fix-30419

Conversation

@hypercubestart

@hypercubestart Andrew Liu (hypercubestart) commented Oct 17, 2019

Copy link
Copy Markdown
Contributor

This PR fixes #30419 and #80649

This creates a new setting section called quickOpen under Features and allows the user to specify the number of recent tasks in the quick open history to keep track of.

Not sure if it was a good idea to add a default parameter to the LRUCache set method, but it was the cleanest and quickest way to keep the ordering of the quick open tasks from most recent - least recent while using an LRUCache.

@hypercubestart Andrew Liu (hypercubestart) changed the title Fix 30419 and 80649 Fix 30419 and 80649 - Allow Setting the Number of Recent Tasks Oct 17, 2019
@alexr00 Alex Ross (alexr00) added this to the October 2019 milestone Oct 18, 2019

@alexr00 Alex Ross (alexr00) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Just a few changes then we'll be good to go.

Comment thread src/vs/workbench/contrib/tasks/browser/abstractTaskService.ts
Comment thread src/vs/workbench/contrib/quickopen/common/quickOpenConfig.ts Outdated
Comment thread src/vs/workbench/contrib/preferences/browser/settingsLayout.ts Outdated
Comment thread src/vs/workbench/contrib/quickopen/browser/quickopen.contribution.ts Outdated
@hypercubestart

Andrew Liu (hypercubestart) commented Oct 21, 2019

Copy link
Copy Markdown
Contributor Author

Alex Ross (@alexr00) Can you please review this PR again? Thank you!

@alexr00 Alex Ross (alexr00) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you for taking on this change and finishing it!

@alexr00
Alex Ross (alexr00) merged commit 6bba03b into microsoft:master Oct 21, 2019
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add preference to turn off "recently used tasks"

2 participants