Skip to content
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

Set up file watcher #936

Merged
merged 2 commits into from
Oct 20, 2023
Merged

Set up file watcher #936

merged 2 commits into from
Oct 20, 2023

Conversation

soutaro
Copy link
Owner

@soutaro soutaro commented Oct 20, 2023

Use LSP file watcher protocol for edits made by other tools.

The pattern syntax is defined here. It looks like compatible with Ruby's glob syntax.

#933

@soutaro soutaro added this to the Steep 1.6 milestone Oct 20, 2023
when "textDocument/didOpen"
uri = request[:params][:textDocument][:uri]
text = request[:params][:textDocument][:text]
when "$/file/reset"
Copy link
Owner Author

Choose a reason for hiding this comment

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

Introduce new $/file/reset endpoint that resets the content of a file.
Used by textDocument/didOpen and workspace/didChangeWatchedFiles.

@soutaro soutaro merged commit 85bdb82 into master Oct 20, 2023
17 checks passed
@soutaro soutaro deleted the watcher branch October 20, 2023 07:27
@soutaro soutaro linked an issue Oct 20, 2023 that may be closed by this pull request
3 tasks
@soutaro soutaro added the Released The PR is already included in a published release label Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Released The PR is already included in a published release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve text synchronization
1 participant