show snippet command in command palette
This commit is contained in:
parent
bdac99bdb3
commit
107a382b9c
5
main.js
5
main.js
|
@ -1770,14 +1770,15 @@ function commandpalette()
|
||||||
{
|
{
|
||||||
return {
|
return {
|
||||||
text: command.hint,
|
text: command.hint,
|
||||||
suffix: command.shortcut ? [command.shortcut] : null
|
suffix: command.shortcut ? [command.shortcut.toLowerCase()] : null
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
.concat(snippets.map(s =>
|
.concat(snippets.map(s =>
|
||||||
{
|
{
|
||||||
return {
|
return {
|
||||||
prefix: "snippet: ",
|
prefix: "snippet: ",
|
||||||
text: s.hint
|
text: s.hint,
|
||||||
|
suffix: [s.command]
|
||||||
};
|
};
|
||||||
}))
|
}))
|
||||||
.concat(localdata.map(n =>
|
.concat(localdata.map(n =>
|
||||||
|
|
Loading…
Reference in New Issue