Skip to content

Support workProgressParams on initialize request #750

Closed

Description

@ericdallo

Problem: The InitializeParams extends WorkProgressParams, but there is no option in lsp4ij to specify a workDoneToken.

Use case: clojure-lsp server uses this feature a lot during server initialization, without it users don't have good feedback during server initialization.

ref

Activity

  1. self-assigned this
    on Jan 22, 2025
  2. added
    enhancement
    on Jan 22, 2025
  3. added this to the 0.10.0 milestone on Jan 22, 2025
  4. added 2 commits that reference this issue on Jan 24, 2025
    1766976
    e44f468
  5. angelozerr commented on Jan 24, 2025

    @angelozerr
    Contributor

    @ericdallo you should now customize initialize params as you wish with LSPClientFeatures. See https://github.com/redhat-developer/lsp4ij/blob/main/docs/LSPApi.md

    Create a new class like ClojureLSPClientFeatures which extends LSPClientFeatures and override the LSPClientFeatures#initializeParameters(InitializeParameters initializeParameters) and update the parameters with your token.

    Returns an instance of ClojureLSPClientFeatures by overriding your LanguageServerFactory#createClientFeatures()

    See doc https://github.com/redhat-developer/lsp4ij/blob/main/docs/LSPApi.md for more infos.

    This new API is available by installing nightly-builds

  6. added a commit that references this issue on Jan 24, 2025
    2ff3a13
  7. ericdallo commented on Jan 24, 2025

    @ericdallo
    ContributorAuthor

    Awesome, I will test it @angelozerr, thank you!

  8. ericdallo commented on Jan 24, 2025

    @ericdallo
    ContributorAuthor

    @angelozerr not sure nightly builds are building properly, I see some failed when should-build is true: https://github.com/angelozerr/lsp4ij/actions/workflows/nightly.yml
    Would be possible to manually trigger it so I can test this change?

  9. angelozerr commented on Jan 24, 2025

    @angelozerr
    Contributor

    You dont see the proper github repo. The link should be redhat developer and not zngelozerr. See https://github.com/redhat-developer/lsp4ij/actions/workflows/nightly.yml

  10. ericdallo commented on Jan 24, 2025

    @ericdallo
    ContributorAuthor

    Got it, that explains a lot 😅

  11. ericdallo commented on Jan 24, 2025

    @ericdallo
    ContributorAuthor

    That worked @angelozerr!

    I just expected that the title of the task would be the message, any chance we can improve that?

    Image
    Image

  12. angelozerr commented on Jan 24, 2025

    @angelozerr
    Contributor

    You mean using setText instead of setText2 ?

  13. ericdallo commented on Jan 24, 2025

    @ericdallo
    ContributorAuthor

    I don't know what methods are those 🤔

  14. angelozerr commented on Jan 24, 2025

    @angelozerr
    Contributor
  15. ericdallo commented on Jan 24, 2025

    @ericdallo
    ContributorAuthor

    Ah yes, is it possible for me to customize that? I suppose something in LSPClientFeatures?

  16. angelozerr commented on Jan 24, 2025

    @angelozerr
    Contributor

    The setText -> setText2 change has been done in #647

    Since you don't likethis behaviour, it makes senses to customize it, please create a new issue.

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