Skip to content

Commit

Permalink
feat: watch bun lock file to update diagnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
tjx666 committed Jul 13, 2024
1 parent 73cb782 commit 4606a94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ export function activate(context: vscode.ExtensionContext) {
}),
);

const filesToWatch = ['pnpm-lock.yaml', 'package-lock.json', 'yarn.lock'].map((file) =>
path.resolve(vscode.workspace.workspaceFolders![0].uri.fsPath, file),
const filesToWatch = ['pnpm-lock.yaml', 'package-lock.json', 'yarn.lock', 'bun.lockb'].map(
(file) => path.resolve(vscode.workspace.workspaceFolders![0].uri.fsPath, file),
);
const watchers = filesToWatch.map((file) => {
const watcher = watchFile(file, () => {
Expand Down

0 comments on commit 4606a94

Please sign in to comment.