move const declarations to top of file
This commit is contained in:
parent
769e09d276
commit
589d025fa4
1 changed files with 8 additions and 10 deletions
|
|
@ -29,6 +29,14 @@ export function useMainEditorWebviewListeners({
|
|||
inputId: string;
|
||||
editorFocusedRef: MutableRefObject<boolean | undefined>;
|
||||
}) {
|
||||
const activeContextProviders = useAppSelector(
|
||||
(state) => state.config.config.contextProviders,
|
||||
);
|
||||
const useCurrentFileAsContext = useAppSelector(
|
||||
(state) => state.config.config.experimental?.useCurrentFileAsContext,
|
||||
);
|
||||
const mode = useAppSelector((state) => state.session.mode);
|
||||
|
||||
useWebviewListener(
|
||||
"isContinueInputFocused",
|
||||
async () => {
|
||||
|
|
@ -181,16 +189,6 @@ export function useMainEditorWebviewListeners({
|
|||
[],
|
||||
);
|
||||
|
||||
const activeContextProviders = useAppSelector(
|
||||
(state) => state.config.config.contextProviders,
|
||||
);
|
||||
const useCurrentFileAsContext = useAppSelector(
|
||||
(state) => state.config.config.experimental?.useCurrentFileAsContext,
|
||||
);
|
||||
const mode = useAppSelector((state) => state.session.mode);
|
||||
|
||||
console.log("debug1 current file", useCurrentFileAsContext);
|
||||
|
||||
useWebviewListener(
|
||||
"newSession",
|
||||
async () => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue