Skip to content

Commit

Permalink
chore: keep the relative pattern in watcher
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Oct 12, 2024
1 parent b9a3368 commit c1eaaa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/watcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export class ExtensionWatcher extends vscode.Disposable {
return
}

const pattern = getConfig(api.workspaceFolder).filesWatcherInclude
log.info('[VSCODE] Watching', api.workspaceFolder.name, 'with pattern', pattern)
const pattern = new vscode.RelativePattern(api.workspaceFolder, getConfig(api.workspaceFolder).filesWatcherInclude)
log.info('[VSCODE] Watching', api.workspaceFolder.name, 'with pattern', pattern.pattern)
const watcher = vscode.workspace.createFileSystemWatcher(
pattern,
)
Expand Down

0 comments on commit c1eaaa1

Please sign in to comment.