Skip to content
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

Configurable project list cap #939

Merged
merged 4 commits into from
Nov 15, 2016
Merged

Conversation

filipw
Copy link
Contributor

@filipw filipw commented Nov 15, 2016

Fixes #875

Introduces a new setting omnisharp.maxProjectResults with a default value of 100 in place of the old hardcoded 100. User can now set the value to whatever seems fit for their workflow.

Naturally, larger value i.e. 5000 would mean longer start up time.

},
"omnisharp.maxProjectResults": {
"type": "number",
"default": 100,
Copy link
Member

Choose a reason for hiding this comment

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

Should we increase this number as part of this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we could, perhaps 250? Thing is you probably want to cap it at a reasonable number cause when you open against i.e. c:\ it would take ages to scan if the limit is too high

Copy link
Member

@DustinCampbell DustinCampbell left a comment

Choose a reason for hiding this comment

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

Looks good. Just make the adjustment to the description of the option.

"omnisharp.maxProjectResults": {
"type": "number",
"default": 250,
"description": "The amount of projects to be shown in the 'Select Project' dropdown, discovered in the descendant folders of the working folder. Once the limit is reached, the extension will stop searching for projects."
Copy link
Member

Choose a reason for hiding this comment

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

This should read: "The maximum number of projects to be shown in the 'Select Project' dropdown (maximum 250)"

@filipw
Copy link
Contributor Author

filipw commented Nov 15, 2016

Thanks - done

@DustinCampbell DustinCampbell merged commit 86a6763 into dotnet:master Nov 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants