Skip to content

Watch files over LSP #806

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Conversation

andrewbranch
Copy link
Member

No description provided.

@andrewbranch andrewbranch marked this pull request as ready for review April 28, 2025 23:10
@Copilot Copilot AI review requested due to automatic review settings April 28, 2025 23:10
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for watching files over LSP by integrating file watcher functionality into various parts of the project and refactoring how file events are processed.

  • Introduces new file watch APIs and methods in the project and LSP server modules.
  • Refactors and propagates comparePathsOptions, file watchers, and diagnostic publishing across services and tests.
  • Updates tests and utilities for consistent use of configuration and file watching.

Reviewed Changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated no comments.

Show a summary per file
File Description
internal/tsoptions/* Introduces new utility functions for pattern matching.
internal/project/* Adds file watcher fields and update logic in projects.
internal/lsp/server.go Integrates LSP file watch requests, notifications, and dynamic registration.
internal/api/api.go Updates to script info creation reflecting FS injection.
internal/testutil/projecttestutil/projecttestutil.go Refactors file variable naming to improve consistency.
Comments suppressed due to low confidence (1)

internal/lsp/server.go:70

  • The variable name 'watcheEnabled' appears to have a typo. Consider renaming it to 'watchEnabled' for clarity and consistency.
watcheEnabled  bool

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