add translation for "open command palette" command
This commit is contained in:
parent
2c293694c0
commit
34b30b2bc2
3 changed files with 11 additions and 1 deletions
|
@ -1,4 +1,9 @@
|
||||||
{
|
{
|
||||||
|
"shell": {
|
||||||
|
"command": {
|
||||||
|
"openCommandPalette": "Open command palette"
|
||||||
|
}
|
||||||
|
},
|
||||||
"page": {
|
"page": {
|
||||||
"welcome": {
|
"welcome": {
|
||||||
"title": "Hi, welcome!",
|
"title": "Hi, welcome!",
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
{
|
{
|
||||||
|
"shell": {
|
||||||
|
"command": {
|
||||||
|
"openCommandPalette": "Open commando palet"
|
||||||
|
}
|
||||||
|
},
|
||||||
"page": {
|
"page": {
|
||||||
"welcome": {
|
"welcome": {
|
||||||
"title": "Hoi, welkom!",
|
"title": "Hoi, welkom!",
|
||||||
|
|
|
@ -28,7 +28,7 @@ export default function Editor(props: ParentProps) {
|
||||||
const lightness = createMemo(() => colorScheme() === ColorScheme.Light ? .9 : .2);
|
const lightness = createMemo(() => colorScheme() === ColorScheme.Light ? .9 : .2);
|
||||||
|
|
||||||
const commands = [
|
const commands = [
|
||||||
createCommand('open command palette', () => {
|
createCommand('shell.command.openCommandPalette', () => {
|
||||||
commandPalette()?.show();
|
commandPalette()?.show();
|
||||||
}, { key: 'p', modifier: Modifier.Control | Modifier.Shift }),
|
}, { key: 'p', modifier: Modifier.Control | Modifier.Shift }),
|
||||||
];
|
];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue