Skip to content

Commit

Permalink
chore: don't use relative pattern for watcher
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Oct 12, 2024
1 parent 48dc1f5 commit 03f6610
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 @@ -20,8 +20,8 @@ export class ExtensionWatcher extends vscode.Disposable {
if (this.watcherByFolder.has(api.workspaceFolder))
return

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

0 comments on commit 03f6610

Please sign in to comment.