Skip to content

Commit

Permalink
merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangvi7 committed Aug 9, 2024
1 parent b0262d3 commit eb97ad2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
14 changes: 0 additions & 14 deletions querybook/webapp/components/QueryEditor/QueryEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ import {
import { useAutoComplete } from 'hooks/queryEditor/useAutoComplete';
import { useCodeAnalysis } from 'hooks/queryEditor/useCodeAnalysis';
import { useLint } from 'hooks/queryEditor/useLint';
import { useUserQueryEditorConfig } from 'hooks/redux/useUserQueryEditorConfig';
import { useUserQueryEditorConfig } from 'hooks/redux/useUserQueryEditorConfig';
import { useDebouncedFn } from 'hooks/useDebouncedFn';
import CodeMirror, { CodeMirrorKeyMap } from 'lib/codemirror';
import { SQL_JINJA_MODE } from 'lib/codemirror/codemirror-mode';
Expand Down Expand Up @@ -60,7 +58,6 @@ export interface IQueryEditorProps extends IStyledQueryEditorProps {
className?: string;
autoCompleteType?: AutoCompleteType;
querySuggestionsEnabled?: boolean;
querySuggestionsEnabled?: boolean;

/**
* If provided, then the container component will handle the fullscreen logic
Expand Down Expand Up @@ -120,7 +117,6 @@ export const QueryEditor: React.FC<
className,
autoCompleteType = 'all',
querySuggestionsEnabled,
querySuggestionsEnabled,
onFullScreen,

onChange,
Expand Down Expand Up @@ -542,16 +538,6 @@ export const QueryEditor: React.FC<
});
}, [codeAnalysis]);

useEffect(() => {
if (querySuggestionsEnabled) {
// Enable copilot suggestion feature
enableCopilotSuggestions();
} else {
// Disable copilot suggestion feature
disableCopilotSuggestions();
}
}, [querySuggestionsEnabled]);

useImperativeHandle(
ref,
() => ({
Expand Down
4 changes: 0 additions & 4 deletions querybook/webapp/lib/codemirror/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ declare module 'codemirror' {
function normalizeKeyMap(
keyMap: Record<string, string | (() => any)>
): Record<string, string | (() => any)>;

interface Editor {
querySuggestions(): void;
}
}

attachCustomCommand(CodeMirror.commands);
Expand Down

0 comments on commit eb97ad2

Please sign in to comment.