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(
656
656
...( language === 'sql'
657
657
? [ ]
658
658
: [
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
+ ] ) ,
665
665
] ;
666
666
}
667
667
@@ -683,11 +683,11 @@ export function panelNameCompletions(
683
683
) {
684
684
return panels . map (
685
685
( 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 )
691
691
) ;
692
692
}
693
693
@@ -770,7 +770,8 @@ export function makeAutocomplete(
770
770
]
771
771
. flat ( )
772
772
. 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 ( ) )
774
775
) ;
775
776
} ;
776
777
}
You can’t perform that action at this time.
0 commit comments