File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
packages/server/src/complete Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import {
1212 AlterTableStatement ,
1313 DropTableStatement ,
1414} from '@joe-re/sql-parser'
15- import log4js from 'log4js'
1615import { CompletionItem } from 'vscode-languageserver-types'
1716import { Schema , Table } from '../database_libs/AbstractClient'
1817import { getRidOfAfterPosString } from './StringUtils'
@@ -41,7 +40,15 @@ import { ICONS, toCompletionItemForKeyword } from './CompletionItemUtils'
4140
4241export type Pos = { line : number ; column : number }
4342
44- const logger = log4js . getLogger ( )
43+ // stubbing logger to make the lib work in browser
44+ const logger = {
45+ isDebugEnabled : function ( ) {
46+ return false
47+ } ,
48+ debug : function ( _ : unknown ) {
49+ return undefined
50+ } ,
51+ }
4552
4653function getFromNodesFromClause ( sql : string ) : FromClauseParserResult | null {
4754 try {
You can’t perform that action at this time.
0 commit comments