Skip to content

Feature: Language Server Protocol, Definition support #676

Closed

Description

@processing-bot

Created by: Efratror

Description

Since there now is LSP support for processing, it would be nice if the server would be able to "find declarations"

Expected Behavior

Finding declarations is supported in the PDE, so it should also be available for the LS

Current Behavior

Finding declarations isn't supported at the moment

Your Environment

  • Processing version: 4.2
  • Operating System and OS version: Windows 10

Possible Causes / Solutions

  • Add a declarationFinder class to the LSP folder
  • Use it to find a declaration using the AST from the preprocessor (Use "InspectMode" as an example)
  • Send (found) the declaration back to a LS-client

I'm willing to implement this, so a PR is in the making

Activity

  1. processing-bot commented on Feb 23, 2023

    @processing-bot
    CollaboratorAuthor

    Created by: benfry

    A PR would be great, thank you!

  2. processing-bot commented on Feb 27, 2023

    @processing-bot
    CollaboratorAuthor

    Created by: benfry

    Now incorporated for the release that comes after 4.2 (probably 4.2.1).

  3. locked as resolved and limited conversation to collaborators on Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions