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

    needs-kindIndicates an issue or PR lacks a `kind/foo` label and requires one.needs-priorityIndicates an issue or PR lacks a `priority/foo` label and requires one.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions