Skip to content

Commit

Permalink
Ignore workspace/didChangeConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansch committed May 29, 2023
1 parent a1cbcfa commit 98810c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/standard/lsp/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ def for(name)
@writer.write({id: request[:id], result: format_file(uri)})
end

handle "workspace/didChangeConfiguration" do |_request|
@logger.puts "Ignoring workspace/didChangeConfiguration"
end

handle "workspace/didChangeWatchedFiles" do |request|
if request[:params][:changes].any? { |change| change[:uri].end_with?(".standard.yml") }
@logger.puts "Configuration file changed; restart required"
Expand Down

0 comments on commit 98810c2

Please sign in to comment.