Skip to content

Commit

Permalink
chore: use initLog() in utils, to handle use case when LSP server is …
Browse files Browse the repository at this point in the history
…not loaded (#6424)
  • Loading branch information
wiedld authored and jeffreyssmith2nd committed Dec 21, 2022
1 parent 5abf87e commit 5ba8e15
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/languageSupport/languages/flux/parser/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import {File} from 'src/types/ast'
import {
initLog,
parse as flux_parse,
format_from_js_file as flux_format_from_js_file,
} from '@influxdata/flux-lsp-browser'

initLog()

/*
NOTE: This is a work around for flux being generated (from rust) for the browser and jest tests running in
a node environment (this is only for handling tests). If a test requires a specific AST result
Expand Down

0 comments on commit 5ba8e15

Please sign in to comment.