File tree Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -656,12 +656,12 @@ export function builtinCompletions(
656656 ...( language === 'sql'
657657 ? [ ]
658658 : [
659- {
660- value : 'DM_setPanel(result)' ,
661- meta : 'Set results of this DataStation panel' ,
662- score : 1000 ,
663- } ,
664- ] ) ,
659+ {
660+ value : 'DM_setPanel(result)' ,
661+ meta : 'Set results of this DataStation panel' ,
662+ score : 1000 ,
663+ } ,
664+ ] ) ,
665665 ] ;
666666}
667667
@@ -683,11 +683,11 @@ export function panelNameCompletions(
683683 ) {
684684 return panels . map (
685685 ( panel ) =>
686- ( {
687- value : panel . name ,
688- meta : 'Panel' ,
689- score : 1000 ,
690- } as Ace . Completion )
686+ ( {
687+ value : panel . name ,
688+ meta : 'Panel' ,
689+ score : 1000 ,
690+ } as Ace . Completion )
691691 ) ;
692692 }
693693
@@ -770,7 +770,8 @@ export function makeAutocomplete(
770770 ]
771771 . flat ( )
772772 . filter (
773- ( c ) => c && c . value . toLowerCase ( ) . startsWith ( prefix . toLowerCase ( ) )
773+ // TODO: Make sure autocomplete is still working.
774+ ( c ) => c && ( c as any ) . value && ( c as any ) . value . toLowerCase ( ) . startsWith ( prefix . toLowerCase ( ) )
774775 ) ;
775776 } ;
776777}
You can’t perform that action at this time.
0 commit comments