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

Update default for "editor.suggestSelection" to "first", fixes #86. #94

Merged
merged 1 commit into from
Apr 2, 2019

Conversation

olafurpg
Copy link
Member

@olafurpg olafurpg commented Apr 2, 2019

Previously, the default "editor.suggestSelection" value was "last"
causing VS Code to pre-select counter-intuitive completions items.
For example, if you selected toString() once, then VS Code would
pre-select toString() in the following completion regardless of the
order of completions returned by Metals.

Metals already orders completion items in a "smart" order based on the
local scope and completion position (pattern matching vs. type vs.
term). Now with this change, VS Code always pre-selects the first
completion item returned by Metals.

…eta#86.

Previously, the default "editor.suggestSelection" value was "last"
causing VS Code to pre-select counter-intuitive completions items.
For example, if you selected `toString()` once, then VS Code would
pre-select `toString()` in the following completion regardless of the
order of completions returned by Metals.

Metals already orders completion items in a "smart" order based on the
local scope and completion position (pattern matching vs. type vs.
term). Now with this change, VS Code always pre-selects the first
completion item returned by Metals.
@olafurpg olafurpg requested a review from gabro April 2, 2019 09:46
@olafurpg
Copy link
Member Author

olafurpg commented Apr 2, 2019

Although completions are not part of the latest stable release, this fix will already benefit people using the latest snapshot.

Copy link
Member

@gabro gabro left a comment

Choose a reason for hiding this comment

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

👍 I've been using this for a while and it works way better than last

@olafurpg olafurpg merged commit 9ba0598 into scalameta:master Apr 2, 2019
@olafurpg olafurpg deleted the editor-suggest-selection branch April 2, 2019 09:49
@Gama11
Copy link

Gama11 commented Feb 26, 2020

Urm... are you sure thie ever worked? microsoft/vscode#91180 (comment)

kasiaMarek pushed a commit to kasiaMarek/metals-vscode that referenced this pull request Mar 29, 2023
…n/types/node-13.13.2

Bump @types/node from 13.13.1 to 13.13.2
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