Skip to content

SymbolInformation is deprecated #146

@cmoulliard

Description

@cmoulliard

Issue

The following class used to populate the response is deprecated within the LSP specification - https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/ and by consequence the code should be reviewed

package org.eclipse.lsp4j;

import com.google.gson.annotations.JsonAdapter;
import java.util.List;
import org.eclipse.lsp4j.adapters.SymbolInformationTypeAdapter;
import org.eclipse.lsp4j.jsonrpc.util.Preconditions;
import org.eclipse.lsp4j.jsonrpc.util.ToStringBuilder;
import org.eclipse.lsp4j.jsonrpc.validation.NonNull;

/**
 * Represents information about programming constructs like variables, classes, interfaces etc.
 * 
 * Deprecated Use {@link DocumentSymbol} or {@link WorkspaceSymbol} instead if supported.
 * 
 * This class is deprecated in the LSP specification. It is not annotated with Deprecated
 * annotation because the {@link org.eclipse.lsp4j.services.TextDocumentService#documentSymbol(DocumentSymbolParams)}
 * method requires it and causes deprecated warning in the code of all users of that API.
 */
@JsonAdapter(SymbolInformationTypeAdapter.Factory.class)
@SuppressWarnings("all")
public class SymbolInformation {

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/api-changeCategorizes issue or PR as related to adding, removing, or otherwise changing an APIpriority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions