diff --git a/libs/remix-ui/git/src/components/panels/commits.tsx b/libs/remix-ui/git/src/components/panels/commits.tsx index b6b62b476b..9bdd268916 100644 --- a/libs/remix-ui/git/src/components/panels/commits.tsx +++ b/libs/remix-ui/git/src/components/panels/commits.tsx @@ -15,16 +15,13 @@ export const Commits = () => { const checkout = async (oid: string) => { try { - //await ModalRef.current?.show(); actions.checkout({ ref: oid }) - //Utils.log("yes"); } catch (e) { - //Utils.log("no"); + // } }; const loadNextPage = () => { - //actions.fetch(null, context.currentBranch.name, null, 5, true, true) actions.fetch({ remote: null, ref: context.currentBranch, @@ -32,7 +29,7 @@ export const Commits = () => { depth: 5, singleBranch: true }) - //actions.getBranchCommits(branch, lastPageNumber+1) + } const getRemote = () => { diff --git a/libs/remix-ui/git/src/lib/listeners.ts b/libs/remix-ui/git/src/lib/listeners.ts index 53d7701b73..6c44938fa6 100644 --- a/libs/remix-ui/git/src/lib/listeners.ts +++ b/libs/remix-ui/git/src/lib/listeners.ts @@ -55,15 +55,15 @@ export const setCallBacks = (viewPlugin: Plugin, gitDispatcher: React.Dispatch { - //await synTimerStart(); - }); - - plugin.on("fileManager", "currentFileChanged", async (e) => { - //await synTimerStart(); + loadFileQueue.enqueue(async () => { + loadFiles() + }) }); plugin.on("fileManager", "fileRenamed", async (oldfile, newfile) => { - //await synTimerStart(); + loadFileQueue.enqueue(async () => { + loadFiles() + }) }); plugin.on("filePanel", "setWorkspace", async (x: any) => { @@ -81,14 +81,6 @@ export const setCallBacks = (viewPlugin: Plugin, gitDispatcher: React.Dispatch { - //await synTimerStart(); - }); - - plugin.on("filePanel", "renameWorkspace" as any, async (x: any) => { - //await synTimerStart(); - }); - plugin.on('dgitApi', 'checkout', async () => { loadFileQueue.enqueue(async () => { gitlog()