Git branching

This commit is contained in:
Elio Struyf
2024-01-19 18:11:53 +01:00
parent 965fac68c9
commit d45cd0d015
14 changed files with 390 additions and 189 deletions

View File

@@ -20,15 +20,15 @@ export const SyncButton: React.FunctionComponent<ISyncButtonProps> = (
const { getColors } = useThemeColors();
const pull = () => {
Messenger.send(GeneralCommands.toVSCode.gitSync);
Messenger.send(GeneralCommands.toVSCode.git.sync);
};
const messageListener = (message: MessageEvent<EventData<any>>) => {
const { command } = message.data;
if (command === GeneralCommands.toWebview.gitSyncingStart) {
if (command === GeneralCommands.toWebview.git.syncingStart) {
setIsSyncing(true);
} else if (command === GeneralCommands.toWebview.gitSyncingEnd) {
} else if (command === GeneralCommands.toWebview.git.syncingEnd) {
setIsSyncing(false);
}
};