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

Add Notebook support #642

Merged
merged 4 commits into from
Jul 6, 2022
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@

### v0.15.0 (TBD)

* Added Notebook support
* Added `WorkspaceSymbol.data`

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

Nightly japicmp report: <https://download.eclipse.org/lsp4j/builds/main/japicmp-report/>

### v0.14.0 (May 2022)

* Implemented LSP version 3.17.0 (except Notebook support) - includes changes to the LSP 3.17
specification that were added after specification was published as done.
* Added changes to the LSP 3.17 specification that were added after specification was published as done.
* See [#630](https://github.com/eclipse/lsp4j/pull/630) for all changes.

Fixed issues: <https://github.com/eclipse/lsp4j/milestone/21?closed=1>
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ The Maven Repositories, p2 Update Sites, and the Snapshots contain _signed jars_

### Supported LSP Versions

* LSP4J 0.15.&ast; *(Next release)* &rarr; LSP 3.17.0 (except Notebook support)
* LSP4J 0.14.&ast; &rarr; LSP 3.17.0 (except Notebook support)
* LSP4J 0.15.&ast; _(Next release)_ &rarr; LSP 3.17.0
* LSP4J 0.14.&ast; &rarr; LSP 3.17.0 (except Notebook support and `WorkspaceSymbol.data`)
* LSP4J 0.13.&ast; &rarr; LSP 3.17.0 (except Notebook support and some changes to the LSP 3.17
specification that were added after specification was published as done)
* LSP4J 0.12.&ast; &rarr; LSP 3.16.0
Expand All @@ -52,7 +52,7 @@ The Maven Repositories, p2 Update Sites, and the Snapshots contain _signed jars_

### Supported DAP Versions

* LSP4J 0.15.&ast; *(Next release)* &rarr; DAP 1.55.0
* LSP4J 0.15.&ast; _(Next release)_ &rarr; DAP 1.55.0
* LSP4J 0.14.&ast; &rarr; DAP 1.55.0
* LSP4J 0.13.&ast; &rarr; DAP 1.55.0
* LSP4J 0.12.&ast; &rarr; DAP 1.44.0
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/******************************************************************************
* Copyright (c) 2022 KamasamaK and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0,
* or the Eclipse Distribution License v. 1.0 which is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
******************************************************************************/
package org.eclipse.lsp4j;

/**
* A notebook cell kind.
* <p>
* Since 3.17.0
*/
public enum NotebookCellKind {
/**
* A markup-cell is formatted source that is used for display.
*/
Markup(1),

/**
* A code-cell is source code.
*/
Code(2);

private final int value;

NotebookCellKind(int value) {
this.value = value;
}

public int getValue() {
return value;
}

public static NotebookCellKind forValue(int value) {
NotebookCellKind[] allValues = NotebookCellKind.values();
if (value < 1 || value > allValues.length) {
throw new IllegalArgumentException("Illegal enum value: " + value);
}
return allValues[value - 1];
}
}
Loading