Skip to content

Commit

Permalink
fix(hogql): autocomplete (#23046)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusandra authored and timgl committed Jun 18, 2024
1 parent 3908b7d commit fe8dcc1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions frontend/src/queries/nodes/HogQLQuery/HogQLQueryEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export function HogQLQueryEditor(props: HogQLQueryEditorProps): JSX.Element {
height="100%"
onMount={(editor, monaco) => {
const completetionItemProviderDisposable =
monaco.languages.registerCompletionItemProvider('mysql', {
monaco.languages.registerCompletionItemProvider('hogql', {
triggerCharacters: [' ', ',', '.'],
provideCompletionItems: async (model, position) => {
const word = model.getWordUntilPosition(position)
Expand Down Expand Up @@ -294,7 +294,7 @@ export function HogQLQueryEditor(props: HogQLQueryEditorProps): JSX.Element {
monacoDisposables.current.push(completetionItemProviderDisposable)

const codeActionProviderDisposable = monaco.languages.registerCodeActionProvider(
'mysql',
'hogql',
{
provideCodeActions: (model, _range, context) => {
if (logic.isMounted()) {
Expand Down

0 comments on commit fe8dcc1

Please sign in to comment.