Skip to content

Commit

Permalink
Merge pull request #564 from detaso/didChangeConfiguration
Browse files Browse the repository at this point in the history
Ignore workspace/didChangeConfiguration
  • Loading branch information
searls authored May 31, 2023
2 parents 8554f1e + 98810c2 commit e8e4f69
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 e8e4f69

Please sign in to comment.