Skip to content

Instantly share code, notes, and snippets.

@MilesMcBain
Created March 12, 2021 11:25
Show Gist options
  • Save MilesMcBain/a8ea9f0bc9a6a3522fe57a21f7282fb1 to your computer and use it in GitHub Desktop.
Save MilesMcBain/a8ea9f0bc9a6a3522fe57a21f7282fb1 to your computer and use it in GitHub Desktop.
Prepare languageserver tcp client
client <- TCPLanguageClient$new(port = 8888) #session 1
run(port = 8888) # session 2
client$start()
data <- client$fetch(blocking = TRUE)
client$handle_raw(data)
## do stuff with client
client %>% did_save(defn_file_path2)
result <- client %>% respond_document_symbol(defn_file_path2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment