Skip to content

Commit

Permalink
Deprecate lsp4j.websocket in preparation for removal in the future. (#…
Browse files Browse the repository at this point in the history
…803)

The bundle has been annotated deprecated for removal in a future
version.

The bundle will not be part of the SDK feature, nor part of SimRel
going forward.

Part of #647
  • Loading branch information
jonahgraham committed Feb 13, 2024
1 parent 3002aa3 commit 9bc4650
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 15 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

Fixed issues: <https://github.com/eclipse-lsp4j/lsp4j/milestone/29?closed=1>

* The `org.eclipse.lsp4j.websocket` bundle has been deprecated in preparation for removal in the future.
* Please migrate to `org.eclipse.lsp4j.websocket.jakarta`
* The `org.eclipse.lsp4j.websocket` bundle is no longer included in the SDK feature nor published to Eclipse SimRel
* See [#647](https://github.com/eclipse-lsp4j/lsp4j/issues/647) for detailed discussion.

Breaking API changes:

* The Message class now has a new transient field, `jsonHandler`, to enable the `toString` implementation to properly format messages when custom type adapters are used.
Expand Down
2 changes: 1 addition & 1 deletion org.eclipse.lsp4j.websocket/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
******************************************************************************/

ext.title = 'LSP4J WebSocket'
description = 'WebSocket support for LSP4J'
description = 'WebSocket support for LSP4J (deprecated, please migrate to org.eclipse.lsp4j.websocket.jakarta)'

dependencies {
api project(":org.eclipse.lsp4j.jsonrpc")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
* WebSocket endpoint implementation that connects to a JSON-RPC service.
*
* @param <T> remote service interface type
* @deprecated Please migrate to org.eclipse.lsp4j.websocket.jakarta
*/
@Deprecated(forRemoval = true)
public abstract class WebSocketEndpoint<T> extends Endpoint {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
* JSON-RPC launcher builder for use in {@link WebSocketEndpoint}.
*
* @param <T> remote service interface type
* @deprecated Please migrate to org.eclipse.lsp4j.websocket.jakarta
*/
@Deprecated(forRemoval = true)
public class WebSocketLauncherBuilder<T> extends Launcher.Builder<T> {

protected Session session;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@

/**
* Message consumer that sends messages via a WebSocket session.
* @deprecated Please migrate to org.eclipse.lsp4j.websocket.jakarta
*/
@Deprecated(forRemoval = true)
public class WebSocketMessageConsumer implements MessageConsumer {

private static final Logger LOG = Logger.getLogger(WebSocketMessageConsumer.class.getName());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@

/**
* WebSocket message handler that parses JSON messages and forwards them to a {@link MessageConsumer}.
* @deprecated Please migrate to org.eclipse.lsp4j.websocket.jakarta
*/
@Deprecated(forRemoval = true)
public class WebSocketMessageHandler implements MessageHandler.Whole<String> {

private final MessageConsumer callback;
Expand Down
14 changes: 0 additions & 14 deletions releng/lsp4j-feature/feature.xml
Original file line number Diff line number Diff line change
Expand Up @@ -119,18 +119,4 @@
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.lsp4j.websocket"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

<plugin
id="org.eclipse.lsp4j.websocket.source"
download-size="0"
install-size="0"
version="0.0.0"
unpack="false"/>

</feature>
1 change: 1 addition & 0 deletions releng/p2/category.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<bundle id="jakarta.websocket-api.source" version="0.0.0"/>
<bundle id="jakarta.websocket-client-api" version="0.0.0"/>
<bundle id="jakarta.websocket-client-api.source" version="0.0.0"/>
<!-- The use of javax.websocket is deprecated for deletion. See https://github.com/eclipse-lsp4j/lsp4j/issues/647 -->
<bundle id="javax.websocket" version="0.0.0"/>
<bundle id="javax.websocket.source" version="0.0.0"/>
<category-def name="lsp4j" label="Lsp4j"/>
Expand Down
1 change: 1 addition & 0 deletions releng/releng-target/lsp4j.target.target
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
</location>
<location includeAllPlatforms="false" includeConfigurePhase="false" includeMode="planner" includeSource="false" type="InstallableUnit">
<repository location="https://download.eclipse.org/tools/orbit/downloads/2022-03"/>
<!-- The use of javax.websocket is deprecated for deletion. See https://github.com/eclipse-lsp4j/lsp4j/issues/647 -->
<unit id="javax.websocket" version="0.0.0"/>
<unit id="javax.websocket.source" version="0.0.0"/>
</location>
Expand Down

0 comments on commit 9bc4650

Please sign in to comment.