Skip to content

Instantly share code, notes, and snippets.

@goofansu
Created January 6, 2024 02:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goofansu/ff055cc58f853856101ac7183d67bf8c to your computer and use it in GitHub Desktop.
Save goofansu/ff055cc58f853856101ac7183d67bf8c to your computer and use it in GitHub Desktop.
ruby-lsp events
[client-notification] Sat Jan 6 09:55:51 2024:
(:jsonrpc "2.0" :method "textDocument/didChange" :params
(:textDocument
(:uri "file:///Users/james/work/myproj/demo.rb" :version 8)
:contentChanges
[(:range
(:start
(:line 0 :character 0)
:end
(:line 0 :character 0))
:rangeLength 0 :text "d")]))
[client-request] (id:58) Sat Jan 6 09:55:51 2024:
(:jsonrpc "2.0" :id 58 :method "textDocument/onTypeFormatting" :params
(:textDocument
(:uri "file:///Users/james/work/myproj/demo.rb")
:options
(:tabSize 8 :insertSpaces t :insertFinalNewline t :trimFinalNewlines t)
:position
(:line 0 :character 1)
:ch "d"))
[server-reply] (id:58) Sat Jan 6 09:55:51 2024:
(:id 58 :result
[]
:jsonrpc "2.0")
[client-notification] Sat Jan 6 09:55:51 2024:
(:jsonrpc "2.0" :method "textDocument/didChange" :params
(:textDocument
(:uri "file:///Users/james/work/myproj/demo.rb" :version 10)
:contentChanges
[(:range
(:start
(:line 0 :character 1)
:end
(:line 0 :character 1))
:rangeLength 0 :text "o")
(:range
(:start
(:line 0 :character 2)
:end
(:line 0 :character 2))
:rangeLength 0 :text " ")]))
[client-request] (id:59) Sat Jan 6 09:55:51 2024:
(:jsonrpc "2.0" :id 59 :method "textDocument/hover" :params
(:textDocument
(:uri "file:///Users/james/work/myproj/demo.rb")
:position
(:line 0 :character 3)))
[client-request] (id:60) Sat Jan 6 09:55:51 2024:
(:jsonrpc "2.0" :id 60 :method "textDocument/documentHighlight" :params
(:textDocument
(:uri "file:///Users/james/work/myproj/demo.rb")
:position
(:line 0 :character 3)))
[server-reply] (id:59) Sat Jan 6 09:55:51 2024:
(:id 59 :result nil :jsonrpc "2.0")
[server-reply] (id:60) Sat Jan 6 09:55:51 2024:
(:id 60 :result
[]
:jsonrpc "2.0")
[client-notification] Sat Jan 6 09:55:52 2024:
(:jsonrpc "2.0" :method "textDocument/didChange" :params
(:textDocument
(:uri "file:///Users/james/work/myproj/demo.rb" :version 11)
:contentChanges
[(:range
(:start
(:line 0 :character 3)
:end
(:line 0 :character 3))
:rangeLength 0 :text "|")]))
[client-request] (id:61) Sat Jan 6 09:55:52 2024:
(:jsonrpc "2.0" :id 61 :method "textDocument/onTypeFormatting" :params
(:textDocument
(:uri "file:///Users/james/work/myproj/demo.rb")
:options
(:tabSize 8 :insertSpaces t :insertFinalNewline t :trimFinalNewlines t)
:position
(:line 0 :character 4)
:ch "|"))
[server-reply] (id:61) Sat Jan 6 09:55:52 2024:
(:id 61 :result
[(:range
(:start
(:line 0 :character 4)
:end
(:line 0 :character 4))
:newText "|")
(:range
(:start
(:line 0 :character 4)
:end
(:line 0 :character 4))
:newText "$0")]
:jsonrpc "2.0")
[internal] (id:62) Sat Jan 6 09:55:52 2024:
(:deferring :textDocument/hover :id 62 :params
(:textDocument
(:uri "file:///Users/james/work/myproj/demo.rb")
:position
(:line 0 :character 4)))
[internal] (id:63) Sat Jan 6 09:55:52 2024:
(:deferring :textDocument/documentHighlight :id 63 :params
(:textDocument
(:uri "file:///Users/james/work/myproj/demo.rb")
:position
(:line 0 :character 4)))
[client-notification] Sat Jan 6 09:55:52 2024:
(:jsonrpc "2.0" :method "textDocument/didChange" :params
(:textDocument
(:uri "file:///Users/james/work/myproj/demo.rb" :version 13)
:contentChanges
[(:range
(:start
(:line 0 :character 4)
:end
(:line 0 :character 4))
:rangeLength 0 :text "$0")
(:range
(:start
(:line 0 :character 4)
:end
(:line 0 :character 4))
:rangeLength 0 :text "|")]))
[internal] Sat Jan 6 09:55:52 2024:
(:maybe-run-deferred
(63 62))
[client-request] (id:63) Sat Jan 6 09:55:52 2024:
(:jsonrpc "2.0" :id 63 :method "textDocument/documentHighlight" :params
(:textDocument
(:uri "file:///Users/james/work/myproj/demo.rb")
:position
(:line 0 :character 4)))
[client-request] (id:62) Sat Jan 6 09:55:52 2024:
(:jsonrpc "2.0" :id 62 :method "textDocument/hover" :params
(:textDocument
(:uri "file:///Users/james/work/myproj/demo.rb")
:position
(:line 0 :character 4)))
[server-reply] (id:63) Sat Jan 6 09:55:52 2024:
(:id 63 :result
[]
:jsonrpc "2.0")
[server-reply] (id:62) Sat Jan 6 09:55:52 2024:
(:id 62 :result nil :jsonrpc "2.0")
[internal] (id:62) Sat Jan 6 09:56:02 2024:
(:timed-out :textDocument/hover :id 62 :params
(:textDocument
(:uri "file:///Users/james/work/myproj/demo.rb")
:position
(:line 0 :character 4)))
[internal] (id:63) Sat Jan 6 09:56:02 2024:
(:timed-out :textDocument/documentHighlight :id 63 :params
(:textDocument
(:uri "file:///Users/james/work/myproj/demo.rb")
:position
(:line 0 :character 4)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment