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

textDocument/foldingRange is not handled correctly #142

Closed
fgreinacher opened this issue May 24, 2019 · 1 comment · Fixed by #143
Closed

textDocument/foldingRange is not handled correctly #142

fgreinacher opened this issue May 24, 2019 · 1 comment · Fixed by #143

Comments

@fgreinacher
Copy link
Contributor

Folding ranges are controlled through the capability textDocument/foldingRange. This capability is currently not deserialized correctly at the server side.

Given initialize params like this:

{
    // ...
    "capabilities": {
        // ...
        "textDocument": {
            // ...
            "foldingRange": {
                "dynamicRegistration": true,
                "rangeLimit": 5000,
                "lineFoldingOnly": true
            }
        }        
    },
   // ..
}

The OnInitialize handle will get a capability model like this:

OmniSharp.Extensions.LanguageServer.Protocol.Supports`1[[OmniSharp.Extensions.LanguageServer.Protocol.Client.Capabilities.FoldingRangeCapability, OmniSharp.Extensions.LanguageProtocol, Version=0.0.9.9, Culture=neutral, PublicKeyToken=6d868dff454e6022]]
[xUnit.net 00:00:03.04]       {
[xUnit.net 00:00:03.04]          IsSupported = 
[xUnit.net 00:00:03.04]       False
[xUnit.net 00:00:03.04]          Value = <null>
[xUnit.net 00:00:03.04]          ValueType = 
[xUnit.net 00:00:03.04]       OmniSharp.Extensions.LanguageServer.Protocol.Client.Capabilities.FoldingRangeCapability
[xUnit.net 00:00:03.04]       }
@fgreinacher fgreinacher changed the title textDocument/foldingRange is not handled correct textDocument/foldingRange is not handled correctly May 24, 2019
@fgreinacher
Copy link
Contributor Author

Can you estimate when this will be released?

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

Successfully merging a pull request may close this issue.

1 participant