Skip to content

Commit

Permalink
Make chokidar excludes list match the top-level excludes
Browse files Browse the repository at this point in the history
See packages/pyright-internal/src/analyzer/service.ts#L585 for the associated array.

The way pyright works is to eagerly watch everything using chokidar and then filter in the consumer, since the LS doesn't know which workspace we're in
  • Loading branch information
blast-hardcheese committed Mar 22, 2024
1 parent 2cf4350 commit 9a2f643
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class ChokidarFileWatcherProvider implements FileWatcherProvider {
watcherOptions.usePolling = false;
}

const excludes: string[] = ['**/__pycache__/**'];
const excludes: string[] = ['**/node_modules', '**/__pycache__', '**/.*'];
if (_isMacintosh || _isLinux) {
if (paths.some((path) => path === '' || path === '/')) {
excludes.push('/dev/**');
Expand Down

0 comments on commit 9a2f643

Please sign in to comment.