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

Ability to disable icons and details in suggestions #68557

Closed
svipas opened this issue Feb 12, 2019 · 17 comments · Fixed by #69942
Closed

Ability to disable icons and details in suggestions #68557

svipas opened this issue Feb 12, 2019 · 17 comments · Fixed by #69942
Assignees
Labels
feature-request Request for new features or functionality help wanted Issues identified as good community contribution opportunities on-testplan suggest IntelliSense, Auto Complete
Milestone

Comments

@svipas
Copy link
Contributor

svipas commented Feb 12, 2019

Hi,

I'm switching between "editor.quickSuggestions" true and false, but mostly I miss the suggestions list. The issue is in VS Code it's too much noisy and distracting. But it can be easily fixed by adding an ability for users to decide if they want to see icons and details in suggestions list. Also, maxSuggestionsToShow = 12 in my opinion is too much, it should be an 8 like it's in Sublime.

In my opinion, these settings should be adjustable by the user:

const maxSuggestionsToShow = 12; // suggestWidget.ts
iconsInSuggestions: true, // editorOptions.ts
this.details = new SuggestionDetails(...); // suggestWidget.ts
.monaco-editor .suggest-widget { width: 430px; } // suggest.css

Suggestion for configurations:

"editor.suggest.showDetails": boolean, // by default true
"editor.suggest.showIcons": boolean, // by default true
"editor.suggest.maxSuggestionsToShow": number // by default 8

Before

screen shot 2019-02-12 at 21 51 59

After

screen shot 2019-02-12 at 21 41 06

I'm not touched .monaco-editor .suggest-widget { width: 430px; }, but I think then details are disabled this should be smaller than 430px.

@svipas
Copy link
Contributor Author

svipas commented Feb 12, 2019

I want this feature so badly, I can try all my best to create a PR if any of VS Code team member agrees on this.

@svipas
Copy link
Contributor Author

svipas commented Feb 18, 2019

@joaomoreno Hi, since you're back, maybe you can give your opinion on this? I can definitely create a PR.

@joaomoreno joaomoreno assigned jrieken and unassigned joaomoreno Feb 19, 2019
@svipas
Copy link
Contributor Author

svipas commented Feb 21, 2019

@jrieken Since you're in charge now, maybe you can give your opinion on this? As I already mentioned I'm willing to create a PR if you're alright with these suggestions.

@jrieken jrieken added feature-request Request for new features or functionality suggest IntelliSense, Auto Complete labels Feb 25, 2019
@svipas
Copy link
Contributor Author

svipas commented Mar 6, 2019

@jrieken Maybe I can create a PR to control these two settings?

const maxSuggestionsToShow = 12; // suggestWidget.ts
iconsInSuggestions: true, // editorOptions.ts

Settings will look like this:

"editor.suggest.maxSuggestionsToShow": number // by default 12
"editor.suggest.showIcons": boolean // by default true

@jrieken
Copy link
Member

jrieken commented Mar 6, 2019

@svipas Sure!

@jrieken jrieken added the help wanted Issues identified as good community contribution opportunities label Mar 6, 2019
@svipas
Copy link
Contributor Author

svipas commented Mar 6, 2019

@jrieken OMG, thanks!!!

@svipas
Copy link
Contributor Author

svipas commented Mar 7, 2019

Created a PR #69942

@jrieken
Copy link
Member

jrieken commented Mar 7, 2019

👏 to @svipas

@jrieken jrieken added this to the March 2019 milestone Mar 7, 2019
@jrieken
Copy link
Member

jrieken commented Mar 7, 2019

fyi - we have renamed the setting to editor.maxVisibileSuggestions to align better with other setting names

@svipas
Copy link
Contributor Author

svipas commented Mar 7, 2019

@jrieken Thank you for info and the support, I really appreciate it. These settings will be released in 1.32 or 1.33?

@jrieken
Copy link
Member

jrieken commented Mar 7, 2019

the setting in action, life: mar-07-2019 15-30-32

@jrieken
Copy link
Member

jrieken commented Mar 7, 2019

This is for 1.33. We plan to release 1.32 today so that tomorrow we have insider builds for 1.33 that include this change

@svipas
Copy link
Contributor Author

svipas commented Mar 7, 2019

@jrieken I saw you missed some renaming:

screen shot 2019-03-07 at 19 02 05

This should be maxVisibileSuggestions right?

@jrieken
Copy link
Member

jrieken commented Mar 7, 2019

Yeah, missed that. I have change ready for it

@svipas
Copy link
Contributor Author

svipas commented Mar 7, 2019

@jrieken cool! I will definitely use them in tomorrow insiders 😄

@svipas
Copy link
Contributor Author

svipas commented Mar 7, 2019

Also, seems there's a typo: maxVisibileSuggestions should be a maxVisibleSuggestions.

jrieken added a commit that referenced this issue Mar 7, 2019
@jrieken
Copy link
Member

jrieken commented Mar 7, 2019

Good catch, pushed a fix

@vscodebot vscodebot bot locked and limited conversation to collaborators Apr 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality help wanted Issues identified as good community contribution opportunities on-testplan suggest IntelliSense, Auto Complete
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants