From 98810c2aba8dc4198ec2fae0cc2e8fc38044e436 Mon Sep 17 00:00:00 2001 From: Ryan Schlesinger Date: Tue, 25 Apr 2023 07:03:13 -0300 Subject: [PATCH] Ignore workspace/didChangeConfiguration --- lib/standard/lsp/routes.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/standard/lsp/routes.rb b/lib/standard/lsp/routes.rb index 8cd58773..d688e924 100644 --- a/lib/standard/lsp/routes.rb +++ b/lib/standard/lsp/routes.rb @@ -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"