Skip to content

Commit

Permalink
Binary file watcher polling should not await
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Yu committed Nov 21, 2024
1 parent c315c5e commit 40406ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/watcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ class Watcher {

this.polling[uriString] = { size, time: firstChangeTime }

const pollingInterval = setInterval(async () => {
await this.handlePolling(uri, size, firstChangeTime, pollingInterval)
const pollingInterval = setInterval(() => {
void this.handlePolling(uri, size, firstChangeTime, pollingInterval)
}, vscode.workspace.getConfiguration('latex-workshop').get('latex.watch.pdf.delay') as number)
}

Expand Down

0 comments on commit 40406ff

Please sign in to comment.