Skip to content

robertov8/elixir_intellisense_rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ElixirIntellisenseRest

To start your Phoenix server:

  • Install dependencies with mix deps.get
  • Start Phoenix endpoint with mix phx.server

Now you can visit localhost:4000 from your browser.

Ready to run in production? Please check our deployment guides.

Servidor de integração

Tentativa de criar um servidor para desacoplar o autocomplete e todas as ferramentas de análise de código do elixir (elixir-ls). objetivo é tentar melhorar o autocomplete das ferramentas da jetbrains.

  • request
{
    "request": "suggestions",
    "payload": {
        "buffer": "\ndefmodule MyModule do\n    alias List, as: MyList\n    MyList.flatten(par0,\nend\n",
        "line": 3,
        "column": 23
    }
}
  • response
{
    "data": [
        {
            "metadata": {},
            "name": "Chars",
            "subtype": "protocol",
            "summary": "The `List.Chars` protocol is responsible for\nconverting a structure to a charlist (only if applicable).",
            "type": "module"
        },
        {
            "args": "atom",
            "args_list": [
                "atom"
            ],
            "arity": 1,
            "def_arity": 1,
            "metadata": {
                "builtin": true
            },
            "name": "__info__",
            "origin": "List",
            "snippet": null,
            "spec": "@spec __info__(:attributes) :: keyword()\n@spec __info__(:compile) :: [term()]\n@spec __info__(:functions) :: [{atom, non_neg_integer}]\n@spec __info__(:macros) :: [{atom, non_neg_integer}]\n@spec __info__(:md5) :: binary()\n@spec __info__(:module) :: module()",
            "summary": "Built-in function",
            "type": "function",
            "visibility": "public"
        },
        ...
    ],
    "size": 44,
    "status": true
}

Learn more