github.com/tiagovtristao/plz@v13.4.0+incompatible/tools/build_langserver/outline.txt (about)

     1  LSP
     2  ----
     3  
     4  It should work the same way as any of our other tools, such as `jarcat`.
     5  
     6  command: plz tool lsp
     7  .. or it should just work on installation/bootstrap of plz
     8  
     9  
    10  
    11  main.go
    12  -------
    13  - parse arguments
    14      - mode: stdio/tcp
    15      - address: listen to tcp address ':4389'
    16  
    17  
    18  langserver
    19  ----------------
    20  this directory should contain everything about the language server
    21  
    22  - jsonRPC
    23  - Responses:
    24      - result of requests sent by *client*
    25      - ResponseMessage: id, result, error
    26      - success: result should be nil
    27  
    28  functionalities:
    29      - completion.go
    30          - handled completion
    31      - Analyzer.go
    32          - analyzes project build_defs
    33      - Handler.go
    34          - handles requests
    35          - should be the same structure as please.go
    36              - a map for different requests
    37  
    38  
    39  Ideas
    40  -----
    41  - there should be a binary called build-langserver
    42      - ~/.please/build-langserver
    43  - integration with IDE
    44  
    45  
    46  
    47  Completion
    48  ----------
    49  - build labels
    50  - build_def functions,
    51  - arg suggestions
    52  - ******plz query completion******
    53  
    54  
    55  BINARY
    56  ------
    57  Add to package/BUILD
    58  
    59  
    60  cli
    61  ----
    62  --mode: tcp or stdio, default stdio
    63  --host: 127.0.0.20
    64  --port: 4387
    65  
    66  
    67  
    68  lsp
    69  -----------------
    70  
    71  specs.go
    72  - This file will have all the specification structs
    73  - TODO: Decide if I need to add createFile options
    74  
    75  
    76  init.go
    77  - initialize request structs
    78  - handles initialization of the request
    79  
    80  
    81  Wishlist
    82  --------