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 @@ -11,7 +11,6 @@ import {
1111 AST,
1212 AlterTableStatement,
1313} from '@joe-re/sql-parser'
14- import log4js from 'log4js'
1514import { CompletionItem } from 'vscode-languageserver-types'
1615import { Schema, Table } from '../database_libs/AbstractClient'
1716import { getRidOfAfterPosString } from './StringUtils'
@@ -40,7 +39,15 @@ import { ICONS, toCompletionItemForKeyword } from './CompletionItemUtils'
4039
4140export type Pos = { line: number; column: number }
4241
43- const logger = log4js.getLogger()
42+ // stubbing logger to make the lib work in browser
43+ const logger = {
44+ isDebugEnabled: function () {
45+ return false
46+ },
47+ debug: function (_: unknown) {
48+ return undefined
49+ },
50+ }
4451
4552function getFromNodesFromClause(sql: string): FromClauseParserResult | null {
4653 try {
You can’t perform that action at this time.
0 commit comments