@@ -30,16 +30,16 @@ export class DefaultOpts {
3030 label : name ,
3131 insertText : name ,
3232 sortText : `A${ name } ` ,
33- kind : this . monaco . languages . CompletionItemKind . Folder
33+ kind : this . monaco . languages . CompletionItemKind . Folder ,
3434 } ;
35- } )
35+ } ) ,
3636 ) ;
3737 } ;
3838
3939 public onSuggestTableFields ?: (
4040 tableInfo ?: ITableInfo ,
4141 cursorValue ?: string ,
42- rootStatement ?: IStatement
42+ rootStatement ?: IStatement ,
4343 ) => Promise < ICompletionItem [ ] > = tableInfo => {
4444 return Promise . resolve (
4545 [ 'aa' , 'bb' , 'cc' ]
@@ -51,9 +51,9 @@ export class DefaultOpts {
5151 label : fieldName ,
5252 insertText : fieldName ,
5353 sortText : `B${ fieldName } ` ,
54- kind : this . monaco . languages . CompletionItemKind . Field
54+ kind : this . monaco . languages . CompletionItemKind . Field ,
5555 } ;
56- } )
56+ } ) ,
5757 ) ;
5858 } ;
5959
@@ -72,7 +72,7 @@ export class DefaultOpts {
7272 documentation : 'documentation' ,
7373 detail : 'detail' ,
7474 kind : this . monaco . languages . CompletionItemKind . Keyword ,
75- sortText : `W${ matching . value } `
75+ sortText : `W${ matching . value } ` ,
7676 } ;
7777 } ) ;
7878 } ;
@@ -84,9 +84,9 @@ export class DefaultOpts {
8484 label : each ,
8585 insertText : each ,
8686 sortText : `C${ each } ` ,
87- kind : this . monaco . languages . CompletionItemKind . Function
87+ kind : this . monaco . languages . CompletionItemKind . Function ,
8888 } ;
89- } )
89+ } ) ,
9090 ) ;
9191 } ;
9292
@@ -95,34 +95,34 @@ export class DefaultOpts {
9595 label : tableNameOrAlias ,
9696 insertText : tableNameOrAlias ,
9797 sortText : `D${ tableNameOrAlias } ` ,
98- kind : this . monaco . languages . CompletionItemKind . Folder
98+ kind : this . monaco . languages . CompletionItemKind . Folder ,
9999 } ;
100100 } ;
101101
102102 public onHoverTableField ?: ( fieldName ?: string , extra ?: ICompletionItem ) => Promise < any > = ( ...args ) => {
103103 return Promise . resolve ( [
104104 { value : 'onHoverTableField' } ,
105105 {
106- value : `\`\`\`json\n${ JSON . stringify ( args , null , 2 ) } \n\`\`\``
107- }
106+ value : `\`\`\`json\n${ JSON . stringify ( args , null , 2 ) } \n\`\`\`` ,
107+ } ,
108108 ] ) ;
109109 } ;
110110
111111 public onHoverTableName ?: ( cursorInfo ?: ICursorInfo ) => Promise < any > = ( ...args ) => {
112112 return Promise . resolve ( [
113113 { value : 'onHoverTableName' } ,
114114 {
115- value : `\`\`\`json\n${ JSON . stringify ( args , null , 2 ) } \n\`\`\``
116- }
115+ value : `\`\`\`json\n${ JSON . stringify ( args , null , 2 ) } \n\`\`\`` ,
116+ } ,
117117 ] ) ;
118118 } ;
119119
120120 public onHoverFunctionName ?: ( functionName ?: string ) => Promise < any > = ( ...args ) => {
121121 return Promise . resolve ( [
122122 { value : 'onHoverFunctionName' } ,
123123 {
124- value : `\`\`\`json\n${ JSON . stringify ( args , null , 2 ) } \n\`\`\``
125- }
124+ value : `\`\`\`json\n${ JSON . stringify ( args , null , 2 ) } \n\`\`\`` ,
125+ } ,
126126 ] ) ;
127127 } ;
128128}
0 commit comments