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

fix: expand server settings returned by LanguageClientMiddleware [HEAD-975] #392

Merged
merged 4 commits into from
Nov 20, 2023

Conversation

cat2608
Copy link
Contributor

@cat2608 cat2608 commented Nov 16, 2023

Description

LanguageClientMiddleware includes new attributes such as deviceId, integrationName, and integrationVersion to align with the initialization options.

BREAKING CHANGE: The middleware now requires a User object to be instantiated.

Checklist

  • Tests added and all succeed
  • Linted
  • CHANGELOG.md updated
  • README.md updated, if user-facing

`LanguageClientMiddleware` includes new attributes such as `deviceId`, `integrationName`,
and `integrationVersion` to align with the initialization options.

BREAKING CHANGE: The middleware now requires a `User` object to be instantiated.
@cat2608 cat2608 requested a review from a team as a code owner November 16, 2023 20:51
@bastiandoetsch
Copy link
Contributor

nitpick: Please update the changelog :)

`ServerSettings` includes user-specific attributes such as `integrationName`,
`integrationVersion`, `automaticAuthentication`, and `deviceId`. This change
consolidates all configuration-related options into a single `ServerSettings` structure.

BREAKING CHANGE: The `fromConfiguration` method in `LanguageServerSettings` now requires `User` object.
All consumers of `ServerSettings` must now expect the additional user-specific properties.
Reworked ServerSettings to enhance clarity and logical grouping of configuration properties.
Added `defaultToTrue` utility function to handle undefined feature flags, defaulting them to 'true'
and ensuring consistent server settings initialization.
Comment on lines +3 to +4
## [1.26.1]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about this version 🤔 Where can I validate it?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be the next version (minor) after the currently released.

@bastiandoetsch bastiandoetsch merged commit 8a16c16 into main Nov 20, 2023
6 checks passed
@bastiandoetsch bastiandoetsch deleted the fix/HEAD-975-expand-server-settings-middleware branch November 20, 2023 08:33
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 this pull request may close these issues.

2 participants