Skip to content

Commit

Permalink
Fixed js compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
Nimaoth committed Apr 30, 2024
1 parent 6c25ecd commit 71f59a0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/workspaces/workspace.nim
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ proc getDirectoryListingRec*(folder: WorkspaceFolder, path: string): Future[seq[

return resultItems

proc shouldIgnore(folder: WorkspaceFolder, path: string): bool =
if folder.ignore.matches(path) or folder.ignore.matches(path.extractFilename):
return true
return false

proc iterateDirectoryRec*(folder: WorkspaceFolder, path: string, cancellationToken: CancellationToken, callback: proc(files: seq[string]): Future[void]): Future[void] {.async.} =
let path = path
var resultItems: seq[string]
Expand All @@ -96,11 +101,6 @@ proc iterateDirectoryRec*(folder: WorkspaceFolder, path: string, cancellationTok
if cancellationToken.canceled:
return

proc shouldIgnore(folder: WorkspaceFolder, path: string): bool =
if folder.ignore.matches(path) or folder.ignore.matches(path.extractFilename):
return true
return false

for file in items.files:
let fullPath = if file.isAbsolute:
file
Expand Down

0 comments on commit 71f59a0

Please sign in to comment.