Skip to content

Commit

Permalink
Rescue NonExistingDocumentError in base server
Browse files Browse the repository at this point in the history
  • Loading branch information
vinistock committed Jul 18, 2024
1 parent bf8ada6 commit 4dd4873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ruby_lsp/base_server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def start

# We don't want to try to parse documents on text synchronization notifications
@store.get(parsed_uri).parse unless method.start_with?("textDocument/did")
rescue Errno::ENOENT
rescue Errno::ENOENT, Store::NonExistingDocumentError
# If we receive a request for a file that no longer exists, we don't want to fail
end
end
Expand Down

0 comments on commit 4dd4873

Please sign in to comment.