sendInit method

void sendInit({
  1. required AffogatoVFS vfs,
})

Implementation

void sendInit({
  required AffogatoVFS vfs,
}) {
  // print(vfs.pathToEntity(vfs.root.entityId));
  return;
  /* send({
    "jsonrpc": "2.0",
    "method": "initialize",
    "params": {
      "processId": 12345,
      "rootUri": "vfs:///path/to/project",
      "capabilities": {
        "workspace": {
          "applyEdit": true,
          "workspaceEdit": {
            "documentChanges": false,
            "resourceOperations": ["create", "rename", "delete"]
          },
          "symbol": {"dynamicRegistration": false},
          "executeCommand": {"dynamicRegistration": false}
        },
        "textDocument": {
          "synchronization": {
            "dynamicRegistration": true,
            "willSave": true,
            "willSaveWaitUntil": true,
            "didSave": true
          },
          "completion": {
            "dynamicRegistration": true,
            "completionItem": {
              "snippetSupport": true,
              "commitCharactersSupport": true,
              "documentationFormat": ["markdown", "plaintext"]
            }
          },
          "hover": {
            "dynamicRegistration": true,
            "contentFormat": ["markdown", "plaintext"]
          },
          "definition": {"dynamicRegistration": false},
          "references": {"dynamicRegistration": false},
          "rename": {"dynamicRegistration": true, "prepareSupport": true}
        },
        "window": {
          "showMessage": {
            "messageActionItem": {"additionalPropertiesSupport": false}
          },
          "workDoneProgress": false,
        },
        "general": {
          "positionEncodings": ["utf-8"]
        }
      },
      "trace": "off",
      "workspaceFolders": [
        {"uri": "file:///path/to/project", "name": "project"}
      ]
    }
  }); */
}