diff --git a/src/app.nim b/src/app.nim index f4eeaa3d..92aab6e1 100644 --- a/src/app.nim +++ b/src/app.nim @@ -1138,7 +1138,7 @@ proc openDocument*(self: App, path: string, workspace = WorkspaceFolder.none, ap try: log lvlInfo, &"Open new document '{path}'" - let document = when enableAst: + let document: Document = when enableAst: if path.endsWith(".ast-model"): newModelDocument(path, app=appFile, workspaceFolder=workspace) else: