Remove the debug_lexer option, replace with loggerLevel check
This commit is contained in:
parent
758fe29253
commit
b13fa00d98
|
@ -121,7 +121,8 @@ module.exports = class Gherkin extends Beautifier
|
||||||
lexer = new Lexer(recorder)
|
lexer = new Lexer(recorder)
|
||||||
lexer.scan(text)
|
lexer.scan(text)
|
||||||
|
|
||||||
if options.debug_lexer
|
loggerLevel = atom?.config.get('atom-beautify._loggerLevel')
|
||||||
|
if loggerLevel is 'verbose'
|
||||||
for line in recorder.lines
|
for line in recorder.lines
|
||||||
logger.verbose("> #{line}")
|
logger.verbose("> #{line}")
|
||||||
|
|
||||||
|
|
|
@ -29,9 +29,4 @@ module.exports = {
|
||||||
default: defaultIndentChar
|
default: defaultIndentChar
|
||||||
minimum: 0
|
minimum: 0
|
||||||
description: "Indentation character"
|
description: "Indentation character"
|
||||||
debug_lexer:
|
|
||||||
type: 'boolean'
|
|
||||||
default: false
|
|
||||||
description: "Enable debug logs of the Gherkin Lexer"
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue