Skip to content

Remove redundant configurations and clean up extension#20

Merged
ram-nadella merged 1 commit intomainfrom
remove-redundant-file-watcher
Jun 30, 2025
Merged

Remove redundant configurations and clean up extension#20
ram-nadella merged 1 commit intomainfrom
remove-redundant-file-watcher

Conversation

@ram-nadella
Copy link
Owner

Summary

  • Removed redundant file system watcher since pylight handles file watching internally
  • Made LSP tracing configurable (defaults to "off" instead of verbose)
  • Removed redundant Python language registration that VS Code already provides
  • Made exclude patterns user-configurable with empty default
  • Cleaned up 6 unused test utility exports

Details

File System Watcher

The extension was creating a VS Code file watcher for Python files, but this is redundant since pylight already implements its own file watching. This eliminates:

  • Double file watching overhead
  • Unnecessary IPC messages for file change notifications
  • Memory overhead from duplicate watchers

Configuration Changes

Added two new settings:

  • pydance.trace.server: Control LSP trace verbosity (off/messages/verbose)
  • pydance.excludePatterns: User-configurable exclude patterns (empty by default)

Code Cleanup

  • Removed hardcoded virtual environment exclusions - users can now configure their own
  • Removed unused test utilities that were never referenced
  • Removed redundant Python language contribution from package.json

Test Plan

  • Run formatter and linter (npm run format:check && npm run lint)
  • Run tests (npm test)
  • Verify extension still activates on Python files
  • Verify workspace symbol search still works
  • Test new configuration options work as expected

🤖 Generated with Claude Code

- Remove redundant file system watcher (pylight handles file watching internally)
- Remove verbose LSP tracing by default, make it configurable via settings
- Remove redundant Python language registration (VS Code provides this)
- Make exclude patterns configurable with empty default (let users decide)
- Clean up unused test utilities (doc, editor, documentEol, platformEol, setTestContent)

These changes reduce overhead, improve configurability, and remove unnecessary code.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@ram-nadella ram-nadella merged commit 0f60fdb into main Jun 30, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant