Skip to content

Instantly share code, notes, and snippets.

{
"label":"fmt",
"kind":9,
"detail":"\"fmt\"",
"preselect":true,
"sortText":"00000",
"filterText":"fmt",
"insertTextFormat":1,
"textEdit":{
"range":{
{
"insertText":"if",
"sortText":"aif",
"kind":14,
"documentation":"The \"if\" statement\n\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*\n\nThe \"if\" statement is used for conditional execution:\n\n   if_stmt ::= \"if\" expression \":\" suite\n               (
\"elif\" expression \":\" suite )\\*\n               [\"else\" \":\" suite]\n\nIt selects exactly one of the suites by evaluating the expressions one\nby one until one is found to be true (see section Boolean operations\nfor the definition
of true and false); then that suite is executed\n(and no other part of the \"if\" statement is executed or evaluated).\nIf all expressions are false, the suite of the \"else\" clause, if\npresent, is executed.",
"detail":"",
"label":"if"
}
@masahino
masahino / completion_response_clangd_sample.json
Created June 8, 2019 07:21
example of completion response(clangd)
[{
"filterText":"define",
"insertText":"define",
"insertTextFormat":1,
"kind":15,
"label":" define macro(args)",
"sortText":"3f800000define",
"textEdit":{
"newText":"define",
"range":{
@masahino
masahino / completion_response_solargraph_sample.json
Last active June 8, 2019 07:20
example of completion response(solargraph)
[{
"label":"Class",
"kind":7,
"detail":"=> Class<Class>",
"data":{
"path":"Class",
"return_type":"Class<Class>",
"location":null,
"deprecated":false,
"uri":"file:///foo/bar/example.rb"