Refactor all the things
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
name: sync
|
||||
functions:
|
||||
syncSpaceCommand:
|
||||
path: "./sync.ts:syncSpaceCommand"
|
||||
command:
|
||||
name: "Sync: Now"
|
||||
key: "Alt-Shift-s"
|
||||
mac: "Cmd-Shift-s"
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
import { editor, sync } from "$sb/syscalls.ts";
|
||||
|
||||
export async function syncSpaceCommand() {
|
||||
await editor.flashNotification("Syncing space...");
|
||||
await sync.scheduleSpaceSync();
|
||||
await editor.flashNotification("Done.");
|
||||
}
|
||||
Reference in New Issue
Block a user