show snippet command in command palette

This commit is contained in:
quenousimporte 2023-11-15 21:03:43 +01:00
parent bdac99bdb3
commit 107a382b9c
1 changed files with 3 additions and 2 deletions

View File

@ -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 =>