mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-27 04:16:05 +00:00
fix: suggestions disappearing after .
This commit is contained in:
parent
93024d76cd
commit
8386826d6e
@ -17,6 +17,7 @@ import { Button, Card, Collapse, Popover, Tag } from 'antd';
|
||||
import { getKeySuggestions } from 'api/querySuggestions/getKeySuggestions';
|
||||
import { getValueSuggestions } from 'api/querySuggestions/getValueSuggestion';
|
||||
import cx from 'classnames';
|
||||
import { isNull } from 'lodash-es';
|
||||
import { TriangleAlert } from 'lucide-react';
|
||||
import { useCallback, useEffect, useRef, useState } from 'react';
|
||||
import {
|
||||
@ -33,12 +34,11 @@ import {
|
||||
validateQuery,
|
||||
} from 'utils/antlrQueryUtils';
|
||||
import {
|
||||
getQueryContextAtCursor,
|
||||
getCurrentValueIndexAtCursor,
|
||||
getQueryContextAtCursor,
|
||||
} from 'utils/queryContextUtils';
|
||||
|
||||
import { queryExamples } from './constants';
|
||||
import { isNull } from 'lodash-es';
|
||||
|
||||
const { Panel } = Collapse;
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -130,7 +130,7 @@ export default class FilterQueryLexer extends Lexer {
|
||||
0,82,82,114,114,2,0,71,71,103,103,2,0,80,80,112,112,2,0,67,67,99,99,2,0,
|
||||
79,79,111,111,2,0,65,65,97,97,2,0,68,68,100,100,2,0,72,72,104,104,2,0,89,
|
||||
89,121,121,2,0,85,85,117,117,2,0,70,70,102,102,2,0,43,43,45,45,2,0,34,34,
|
||||
92,92,2,0,39,39,92,92,3,0,36,36,65,90,97,122,6,0,36,36,45,45,48,58,65,90,
|
||||
92,92,2,0,39,39,92,92,3,0,36,36,65,90,97,122,6,0,36,36,45,46,48,58,65,90,
|
||||
95,95,97,122,3,0,9,10,13,13,32,32,1,0,48,57,8,0,9,10,13,13,32,34,39,41,
|
||||
44,44,60,62,91,91,93,93,325,0,1,1,0,0,0,0,3,1,0,0,0,0,5,1,0,0,0,0,7,1,0,
|
||||
0,0,0,9,1,0,0,0,0,11,1,0,0,0,0,13,1,0,0,0,0,15,1,0,0,0,0,17,1,0,0,0,0,19,
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -171,7 +171,7 @@ public class FilterQueryLexer extends Lexer {
|
||||
"\u0000GGgg\u0002\u0000PPpp\u0002\u0000CCcc\u0002\u0000OOoo\u0002\u0000"+
|
||||
"AAaa\u0002\u0000DDdd\u0002\u0000HHhh\u0002\u0000YYyy\u0002\u0000UUuu\u0002"+
|
||||
"\u0000FFff\u0002\u0000++--\u0002\u0000\"\"\\\\\u0002\u0000\'\'\\\\\u0003"+
|
||||
"\u0000$$AZaz\u0006\u0000$$--0:AZ__az\u0003\u0000\t\n\r\r \u0001\u0000"+
|
||||
"\u0000$$AZaz\u0006\u0000$$-.0:AZ__az\u0003\u0000\t\n\r\r \u0001\u0000"+
|
||||
"09\b\u0000\t\n\r\r \"\'),,<>[[]]\u0145\u0000\u0001\u0001\u0000\u0000\u0000"+
|
||||
"\u0000\u0003\u0001\u0000\u0000\u0000\u0000\u0005\u0001\u0000\u0000\u0000"+
|
||||
"\u0000\u0007\u0001\u0000\u0000\u0000\u0000\t\u0001\u0000\u0000\u0000\u0000"+
|
||||
|
||||
@ -206,7 +206,7 @@ QUOTED_TEXT
|
||||
)
|
||||
;
|
||||
|
||||
fragment SEGMENT : [a-zA-Z$] [a-zA-Z0-9$_:\-]* ;
|
||||
fragment SEGMENT : [a-zA-Z$] [a-zA-Z0-9$_:\-.]* ;
|
||||
fragment EMPTY_BRACKS : '[' ']' ;
|
||||
fragment OLD_JSON_BRACKS: '[' '*' ']';
|
||||
|
||||
|
||||
@ -208,7 +208,7 @@ QUOTED_TEXT
|
||||
)
|
||||
;
|
||||
|
||||
fragment SEGMENT : [a-zA-Z$] [a-zA-Z0-9$_:\-]* ;
|
||||
fragment SEGMENT : [a-zA-Z$] [a-zA-Z0-9$_:\-.]* ;
|
||||
fragment EMPTY_BRACKS : '[' ']' ;
|
||||
fragment OLD_JSON_BRACKS: '[' '*' ']';
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user