This commit is contained in:
Zef Hemel
2022-12-16 12:44:04 +01:00
parent be83f305dd
commit 88cc80cd1a
8 changed files with 50 additions and 10 deletions
+6
View File
@@ -197,6 +197,12 @@ export function editorSyscalls(editor: Editor): SysCallMapping {
enabled,
});
},
"editor.getVimEnabled": (): boolean => {
return editor.enableVimMode;
},
"editor.setVimEnabled": (_ctx, enabled: boolean) => {
editor.setVimMode(enabled);
},
};
return syscalls;