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

Request textDocument/documentSymbol failed in the Tools for MircroProfile VS Code extension #178

Closed
danieloh30 opened this issue Jan 28, 2024 · 2 comments · Fixed by eclipse/lsp4mp#433
Labels
bug Something isn't working
Milestone

Comments

@danieloh30
Copy link

When I type in quarkus properties, the suggestion automatically shows but the MP error keeps showing in the output.

image image image image
@angelozerr
Copy link
Contributor

I can reproduce the issue. The problem is when a property starts with . like

.a

We split property with . and the first segment is empty and document segment (that it is used to fill outline and breadcrumbs) name is empty

[Trace - 12:43:26 PM] Received response 'textDocument/documentSymbol - (166)' in 3ms.
Result: [
    {
        "name": "",
        "kind": 4,
        "range": {
            "start": {
                "line": 0,
                "character": 0
            },
            "end": {
                "line": 0,
                "character": 2
            }
        },
        "selectionRange": {
            "start": {
                "line": 0,
                "character": 0
            },
            "end": {
                "line": 0,
                "character": 2
            }
        },
        "children": [
            {
                "name": "a",
                "kind": 7,
                "range": {
                    "start": {
                        "line": 0,
                        "character": 0
                    },
                    "end": {
                        "line": 0,
                        "character": 2
                    }
                },
                "selectionRange": {
                    "start": {
                        "line": 0,
                        "character": 0
                    },
                    "end": {
                        "line": 0,
                        "character": 2
                    }
                },
                "children": []
            }
        ]
    }
]

vscode seems not like document symbol name which are empty. We need to take care of this problem.

@danieloh30
Copy link
Author

Cool. Thanks for the quick confirmation. Hope it could be fixed easily and quickly :)

@fbricon fbricon added the bug Something isn't working label Feb 1, 2024
@fbricon fbricon transferred this issue from redhat-developer/vscode-quarkus Feb 1, 2024
@fbricon fbricon added this to the 0.11.0 milestone Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants