Skip to content

fix: send workspace/didChangeConfiguration with {} if configuration is empty - #339

Merged
fbricon merged 1 commit into
redhat-developer:mainfrom
angelozerr:user_defined_ls_didChangeConfiguration
Jun 11, 2024
Merged

fbricon merged 1 commit into
redhat-developer:mainfrom
angelozerr:user_defined_ls_didChangeConfiguration

Conversation

@angelozerr

@angelozerr angelozerr commented Jun 10, 2024 •

Copy link
Copy Markdown
Contributor

fix: send workspace/didChangeConfiguration with {} if configuration is empty

This PR:

  • send workspace/didChangeConfiguration with {} if configuration textbox is empty and server starts
  • send workspace/didChangeConfiguration if configuration textbox is not empty and server starts
  • send workspace/didChangeConfiguration if configuration textbox ichanged and it is empty / or not empty

@codecov

codecov Bot commented Jun 10, 2024 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 0% with 17 lines in your changes missing coverage. Please review.

Project coverage is 23.72%. Comparing base (c821fe9) to head (39e4c6a).

Files Patch % Lines
...efinition/launching/UserDefinedLanguageClient.java 0.00% 9 Missing ⚠️
...inition/launching/UserDefinedLanguageListener.java 0.00% 6 Missing ⚠️
...hat/devtools/lsp4ij/client/LanguageClientImpl.java 0.00% 1 Missing ⚠️
...launching/UserDefinedLanguageServerDefinition.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #339      +/-   ##
==========================================
+ Coverage   23.65%   23.72%   +0.07%     
==========================================
  Files         264      264              
  Lines        9061     9017      -44     
  Branches     1648     1634      -14     
==========================================
- Hits         2143     2139       -4     
+ Misses       6520     6482      -38     
+ Partials      398      396       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@angelozerr
angelozerr force-pushed the user_defined_ls_didChangeConfiguration branch from b41e2da to 327dc61 Compare June 10, 2024 12:06
@angelozerr
angelozerr marked this pull request as ready for review June 10, 2024 12:10
@angelozerr
angelozerr force-pushed the user_defined_ls_didChangeConfiguration branch from 327dc61 to c6f8563 Compare June 10, 2024 12:35
@angelozerr angelozerr changed the title fix: don't send workspace/disChangeConfiguration if configuration is empty fix: don't send workspace/didChangeConfiguration if configuration is empty Jun 10, 2024
@angelozerr angelozerr added this to the 0.0.2 milestone Jun 10, 2024
@angelozerr
angelozerr force-pushed the user_defined_ls_didChangeConfiguration branch from c6f8563 to 79b1ab3 Compare June 10, 2024 13:15
@angelozerr angelozerr changed the title fix: don't send workspace/didChangeConfiguration if configuration is empty fix: send workspace/didChangeConfiguration with {} if configuration is empty Jun 10, 2024
@angelozerr
angelozerr force-pushed the user_defined_ls_didChangeConfiguration branch from 79b1ab3 to 39e4c6a Compare June 10, 2024 13:17
@fbricon
fbricon force-pushed the user_defined_ls_didChangeConfiguration branch from 39e4c6a to 5e947ca Compare June 11, 2024 16:31
@fbricon
fbricon merged commit 960be09 into redhat-developer:main Jun 11, 2024
@fbricon

fbricon commented Jun 11, 2024

Copy link
Copy Markdown
Contributor

thanks @angelozerr!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working user-defined LS

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants