From 3711d7a2dc9bc659e474ad9f2fe29b6b1b5c64fb Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Mon, 25 Nov 2024 00:39:26 -0800 Subject: [PATCH] lag audit cleanup --- gui/src/App.tsx | 1 - gui/src/hooks/useSetup.ts | 2 +- gui/src/hooks/useSubmenuContextProviders.tsx | 0 gui/src/pages/gui/Chat.tsx | 2 -- gui/src/redux/slices/stateSlice.ts | 2 +- 5 files changed, 2 insertions(+), 5 deletions(-) delete mode 100644 gui/src/hooks/useSubmenuContextProviders.tsx diff --git a/gui/src/App.tsx b/gui/src/App.tsx index ea5173db0..646043629 100644 --- a/gui/src/App.tsx +++ b/gui/src/App.tsx @@ -87,7 +87,6 @@ function SetupListeners() { } function App() { - console.log("app rendering"); return ( diff --git a/gui/src/hooks/useSetup.ts b/gui/src/hooks/useSetup.ts index c4d547ae4..141e2b091 100644 --- a/gui/src/hooks/useSetup.ts +++ b/gui/src/hooks/useSetup.ts @@ -62,7 +62,7 @@ function useSetup(dispatch: Dispatch) { ideMessenger.post("indexing/initStatuses", undefined); return; } - // loadConfig(true); + loadConfig(true); }, 2_000); return () => clearInterval(interval); diff --git a/gui/src/hooks/useSubmenuContextProviders.tsx b/gui/src/hooks/useSubmenuContextProviders.tsx deleted file mode 100644 index e69de29bb..000000000 diff --git a/gui/src/pages/gui/Chat.tsx b/gui/src/pages/gui/Chat.tsx index 3a38ca9c4..adea3ec80 100644 --- a/gui/src/pages/gui/Chat.tsx +++ b/gui/src/pages/gui/Chat.tsx @@ -139,8 +139,6 @@ export function Chat() { const { saveSession, getLastSessionId, loadLastSession } = useHistory(dispatch); - console.log("chat rendering"); - const snapToBottom = useCallback(() => { if (!stepsDivRef.current) return; const elem = stepsDivRef.current; diff --git a/gui/src/redux/slices/stateSlice.ts b/gui/src/redux/slices/stateSlice.ts index a979d9b38..296134087 100644 --- a/gui/src/redux/slices/stateSlice.ts +++ b/gui/src/redux/slices/stateSlice.ts @@ -341,7 +341,7 @@ export const stateSlice = createSlice({ payload.rangeInFileWithContents.range.start.line + 1 }-${payload.rangeInFileWithContents.range.end.line + 1})`; contextItems.push({ - name: `${base} ${lineNums}s`, + name: `${base} ${lineNums}`, description: payload.rangeInFileWithContents.filepath, id: { providerTitle: "code",