Skip to content

Support documentSelector in registerCapability #517

Closed

Description

@angelozerr

MicroProfile LS manages bot Java and microprofile-config.properties but for not the same LSP features. For instance microproile-config.properties support format, documentHighlight but it is not supported for Jav alanguage.

To do that the MP LS uses the documentSelector to know the language where the LSP feature is supported.

Ex:

[Trace - 8:55:36 AM] Received request 'client/registerCapability - (9)'.
Params: {
    "registrations": [
        {
            "id": "1081813a-62a7-42ec-8df5-b24d5b835491",
            "method": "textDocument/documentHighlight",
            "registerOptions": {
                "documentSelector": [
                    {
                        "language": "microprofile-properties"
                    }
                ]
            }
        }
    ]
}
[Trace - 8:55:36 AM] Received request 'client/registerCapability - (7)'.
Params: {
    "registrations": [
        {
            "id": "018e64c1-47b0-4397-be3d-a182c1ce53c8",
            "method": "textDocument/formatting",
            "registerOptions": {
                "documentSelector": [
                    {
                        "language": "microprofile-properties"
                    },
                    {
                        "language": "quarkus-properties"
                    }
                ]
            }
        }
    ]
}

LSP4IJ must take car of documentSelector.

Activity

  1. added
    enhancement
    on Sep 10, 2024
  2. changed the title [-]Support documentSelect in registerCapability[/-] [+]Support documentSelector in registerCapability[/+] on Sep 10, 2024
  3. added this to the 0.7.0 milestone on Oct 5, 2024
  4. self-assigned this
    on Oct 5, 2024
  5. added 11 commits that reference this issue on Oct 5, 2024
    c55ee78
    d3764e7
    3049cb9
    07a20cf
    d9ce6f5
    cca1b55
    5c3d700
    38547e6
    e72fd39
    96f50f0
    7e3892a
  6. 2 remaining items

  7. added 5 commits that reference this issue on Oct 7, 2024
    fa53ffa
    638a21b
    cc99f8c
    6eebc15
    ef0b19a
  8. moved this to 👀 In review in IDE Cloudaptorson Oct 7, 2024
  9. added 6 commits that reference this issue on Oct 7, 2024
    a232f5d
    9975813
    8a30246
    8efe451
    d5e7278
    5f2d875
  10. moved this from 👀 In review to ✅ Done in IDE Cloudaptorson Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions