mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
lsp: Fix bad argument for compile
This commit is contained in:
parent
ceb70271fd
commit
3c424d03a4
2 changed files with 3 additions and 3 deletions
|
@ -326,7 +326,7 @@ class LanguageServer:
|
|||
xml = None
|
||||
try:
|
||||
output = XmlOutput()
|
||||
xml = output.emit(open_file.ast, generated_notice=False)
|
||||
xml = output.emit(open_file.ast, indent=2, generated_notice=False)
|
||||
except:
|
||||
printerr(traceback.format_exc())
|
||||
self._send_error(id, ErrorCode.RequestFailed, "Could not compile document")
|
||||
|
|
|
@ -6,8 +6,8 @@ from .xml_emitter import XmlEmitter
|
|||
|
||||
|
||||
class XmlOutput(OutputFormat):
|
||||
def emit(self, ui: UI) -> str:
|
||||
xml = XmlEmitter()
|
||||
def emit(self, ui: UI, indent=2, generated_notice=True) -> str:
|
||||
xml = XmlEmitter(indent, generated_notice)
|
||||
self._emit_ui(ui, xml)
|
||||
return xml.result
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue