Skip to content

Commit

Permalink
Fixed commpile error when ast not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Nimaoth committed May 12, 2024
1 parent 3b5c9a4 commit 58b2ec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 58b2ec2

Please sign in to comment.