Class: Gauge::LSPServer

Inherits:
Messages::LspService::Service show all
Includes:
Processors
Defined in:
lib/lsp_server.rb

Instance Method Summary collapse

Methods included from Processors

#cache_file_response, #create_step_position_messages, #create_suggestion, #get_step, #implement_stub_response, #implementation_files, #implementation_glob_pattern_response, #process_cache_file_request, #process_datastore_init, #process_execute_step_request, #process_execution_end_request, #process_execution_start_request, #process_implementation_file_list_request, #process_implementation_glob_pattern_request, #process_kill_processor_request, #process_scenario_execution_end_request, #process_scenario_execution_start_request, #process_spec_execution_end_request, #process_spec_execution_start_request, #process_step_execution_end_request, #process_step_execution_start_request, #process_step_name_request, #process_step_names_request, #process_step_positions_request, #process_step_validation_request, #process_stub_implementation_code_request, #refactor_response, #refactor_step, #step_name_response, #step_names_response, #step_positions, #step_validate_response

Methods included from Processors::ExecutionHandler

#create_param_values, #get_code_snippet, #handle_failure, #handle_hooks_execution, #handle_pass, #screenshot_bytes, #time_elapsed_since

Constructor Details

#initialize(server) ⇒ LSPServer

Returns a new instance of LSPServer.



33
34
35
# File 'lib/lsp_server.rb', line 33

def initialize(server)
  @server = server
end

Instance Method Details

#cache_file(request, _call) ⇒ Object



41
42
43
# File 'lib/lsp_server.rb', line 41

def cache_file(request, _call)
  cache_file_response(request)
end

#get_glob_patterns(_request, _call) ⇒ Object



69
70
71
# File 'lib/lsp_server.rb', line 69

def get_glob_patterns(_request, _call)
  implementation_glob_pattern_response
end

#get_implementation_files(_request, _call) ⇒ Object



49
50
51
# File 'lib/lsp_server.rb', line 49

def get_implementation_files(_request, _call)
  implementation_files
end

#get_step_name(request, _call) ⇒ Object



65
66
67
# File 'lib/lsp_server.rb', line 65

def get_step_name(request, _call)
  step_name_response(request)
end

#get_step_names(_request, _call) ⇒ Object



37
38
39
# File 'lib/lsp_server.rb', line 37

def get_step_names(_request, _call)
  step_names_response
end

#get_step_positions(request, _call) ⇒ Object



45
46
47
# File 'lib/lsp_server.rb', line 45

def get_step_positions(request, _call)
  step_positions(request)
end

#implement_stub(request, _call) ⇒ Object



53
54
55
# File 'lib/lsp_server.rb', line 53

def implement_stub(request, _call)
  implement_stub_response(request)
end

#kill_process(_request, _call) ⇒ Object



73
74
75
76
# File 'lib/lsp_server.rb', line 73

def kill_process(_request, _call)
  @server.stop
  exit(0)
end

#refactor(request, _call) ⇒ Object



61
62
63
# File 'lib/lsp_server.rb', line 61

def refactor(request, _call)
  refactor_response(request)
end

#validate_step(request, _call) ⇒ Object



57
58
59
# File 'lib/lsp_server.rb', line 57

def validate_step(request, _call)
  step_validate_response(request)
end