Change the scoring system for autocomplete, scale 0-100

This commit is contained in:
Shane Kilkelly 2017-06-29 10:53:52 +01:00
parent b73b78e570
commit 3deebc8642

View file

@ -93,7 +93,7 @@ define [
caption: "\\#{commandName}{}",
snippet: "\\#{commandName}{}",
meta: "reference",
score: 11000
score: 60
}
if references.keys and references.keys.length > 0
references.keys.forEach (key) ->
@ -102,7 +102,7 @@ define [
caption: "\\#{commandName}{#{previousArgsCaption}#{key}#{if needsClosingBrace then '}' else ''}",
value: "\\#{commandName}{#{previousArgs}#{key}#{if needsClosingBrace then '}' else ''}",
meta: "reference",
score: 10000
score: 50
})
callback null, result
else