open-policy-agent / vscode-opa

An extension for VS Code which provides support for OPA and the Rego policy language
https://openpolicyagent.org
Apache License 2.0
112 stars 31 forks source link

feat: add config property to set trace level #247

Open nikpivkin opened 2 months ago

nikpivkin commented 2 months ago

This PR adds the ability to set the trace level for intercepting requests and responses between client and server.

[Trace - 01:54:39] Sending request 'initialize - (0)'.
Params: {
    "processId": 91401,
    "clientInfo": {
        "name": "Visual Studio Code",
        "version": "1.92.1"
    },
    "locale": "en",
    "rootPath": "/Users/.../projects/rego-lsp-test",
    "rootUri": "file:///Users/.../projects/rego-lsp-test",
    "capabilities": {
        "workspace": {
            "applyEdit": true,
            "workspaceEdit": {
                "documentChanges": true,
                "resourceOperations": [
                    "create",
                    "rename",
                    "delete"
                ],
...