Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Definition mismatch and wrong conversion of InlineValueContext #934

Closed
d-biehl opened this issue May 11, 2022 · 2 comments
Closed

Definition mismatch and wrong conversion of InlineValueContext #934

d-biehl opened this issue May 11, 2022 · 2 comments
Milestone

Comments

@d-biehl
Copy link
Contributor

d-biehl commented May 11, 2022

Hi,

wanted to implement 'textDocument/inlineValue' from version 3.17 of LSP Documentation in Python and use Version 8.0.0 of vscode-languageclient in my VSCode extension.

But struggeling with the different definition of InlineValueContext in LSP Documentation and the implementation in vscode-languageserver-types and the implementation of what I get in textDocument/inlineValue request:

{
  "jsonrpc": "2.0",
  "id": 21,
  "method": "textDocument/inlineValue",
  "params": {
    "textDocument": { "uri": "file:///c%3A/tmp/rt1/tests/w.robot" },
    "range": {
      "start": { "line": 0, "character": 0 },
      "end": { "line": 17, "character": 0 }
    },
    "context": {
      "frameId": 2381178444560,
      "stoppedLocation": [
        { "line": 6, "character": 1 },
        { "line": 6, "character": 1 }
      ]
    }
  }
}

stoppedLocation is not a Range structure, I think it is not converted correctly from vscode.Range to lsp.Range. The frameID is interessting, but I think in LSP implementation not relevant, maybe only together with a DAP implementation.

ok, so what is the correct defintion/implementation of InlineValueContext?

thanks
Daniel

@dbaeumer dbaeumer added this to the 3.17.1 milestone May 11, 2022
@dbaeumer
Copy link
Member

I added the frameId to the spec. I think it could be useful in cases where a server knows about DAP which is OSS as well.

@dbaeumer
Copy link
Member

Done and ships with 8.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants