diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-03-14 15:56:29 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-03-14 15:56:29 +0000 |
commit | af8440b84851febd805b6b774bfb326cbdb7175e (patch) | |
tree | 0af571afec0cf8825b77d326221c3dc8009a3b7f /editors/code/.vscodeignore | |
parent | 406e4be04c2e74d58bcaa7e823e2509d1a7803d4 (diff) | |
parent | ba924d04b3b9f7c9fe846847ecd6604157f748f6 (diff) |
Merge #8014
8014: increase completion relevance for items in local scope r=matklad a=JoshMcguigan
This PR provides a small completion relevance score bonus for items in local scope. The changes here are relatively minimal, since `coc` by default pre-sorts by position in file. But as we move toward fully server side sorting #7935 I think we'll want some relevance score bump for items in local scope.
### Before
Note `let~` and `syntax` are both ahead of locals. Ultimately we may decide that `let~` is a high relevance completion given my cursor position here, but that should be done with some explicit scoring on the server side, rather than being caused by (I think) `coc` preferring shorter completions.
![pre-local-score](https://user-images.githubusercontent.com/22216761/111073414-c97ad600-849b-11eb-84e7-fcee130536f0.png)
### After
![post-local-score](https://user-images.githubusercontent.com/22216761/111073422-d0094d80-849b-11eb-92ec-7ae5ec3b190d.png)
Co-authored-by: Josh Mcguigan <[email protected]>
Diffstat (limited to 'editors/code/.vscodeignore')
0 files changed, 0 insertions, 0 deletions