mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Temporarily remove up-ranking of exact match
This commit is contained in:
parent
0b84caa730
commit
1fb036811a
1 changed files with 8 additions and 7 deletions
|
@ -83,7 +83,7 @@ define [], () ->
|
||||||
completions = []
|
completions = []
|
||||||
for command in commands
|
for command in commands
|
||||||
caption = "\\#{command[0]}"
|
caption = "\\#{command[0]}"
|
||||||
score = if prefix == caption then 99 else 50
|
score = 50
|
||||||
snippet = caption
|
snippet = caption
|
||||||
i = 1
|
i = 1
|
||||||
_.times command[1], () ->
|
_.times command[1], () ->
|
||||||
|
@ -94,12 +94,13 @@ define [], () ->
|
||||||
snippet += "{${#{i}}}"
|
snippet += "{${#{i}}}"
|
||||||
caption += "{}"
|
caption += "{}"
|
||||||
i++
|
i++
|
||||||
completions.push {
|
unless caption == prefix
|
||||||
caption: caption
|
completions.push {
|
||||||
snippet: snippet
|
caption: caption
|
||||||
meta: "cmd"
|
snippet: snippet
|
||||||
score: score
|
meta: "cmd"
|
||||||
}
|
score: score
|
||||||
|
}
|
||||||
|
|
||||||
callback null, completions
|
callback null, completions
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue