lib/theme_check/language_server/server.rb in theme-check-0.6.0 vs lib/theme_check/language_server/server.rb in theme-check-0.7.0

- old
+ new

@@ -1,9 +1,8 @@ # frozen_string_literal: true require 'json' require 'stringio' -require 'active_support/core_ext/string/inflections' module ThemeCheck module LanguageServer class DoneStreaming < StandardError; end @@ -97,10 +96,10 @@ @handler.send(method_name, id, params) end end def to_snake_case(method_name) - method_name.gsub(/[^\w]/, '_').underscore + StringHelpers.underscore(method_name.gsub(/[^\w]/, '_')) end def initial_line # Scanning for lines that fit the protocol. while true