mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Add autocomplete entries for the end{}
commands
This commit is contained in:
parent
d655e99439
commit
95a6e1900e
1 changed files with 10 additions and 0 deletions
|
@ -140,6 +140,16 @@ define () ->
|
|||
"""
|
||||
meta: "env"
|
||||
}
|
||||
).concat(
|
||||
# arguably these `end` commands shouldn't be here, as they're not snippets
|
||||
# but this is where we have access to the `begin` environment names
|
||||
# *shrug*
|
||||
parsedNames.map (name) ->
|
||||
{
|
||||
caption: "\\end{#{name}}"
|
||||
value: "\\end{#{name}}"
|
||||
meta: "env"
|
||||
}
|
||||
)
|
||||
callback null, snippets
|
||||
|
||||
|
|
Loading…
Reference in a new issue