Skip to content

Conversation

@rintaro
Copy link
Member

@rintaro rintaro commented Nov 21, 2025

This should be an immutable value and MessageRegistry.init() is not a trivial constructor. No reason to keep it a computed property.

Also, Move MessageRegistry.lspProtocol to LanguageServerProtocol/Messages.swift to align with the BSP couterpart.


@available(*, deprecated, message: "use MessageRegistry.bspProtocol instead")
public let bspRegistry = MessageRegistry(requests: requestTypes, notifications: notificationTypes)
public let bspRegistry = MessageRegistry.bspProtocol
Copy link
Member

Choose a reason for hiding this comment

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

Should this be a computed property so we don't store the BSP registry twice if anyone is using the deprecated accessory?

This should be an immutable value and `MessageRegistry.init()` is not a
trivial constructor. No reason to keep it a computed property.

Also, Move `MessageRegistry.lspProtocol` to
LanguageServerProtocol/Messages.swift to align with the BSP couterpart.
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.

3 participants