Skip to content

Feature: Language Server Protocol, Definition support #676

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

Closed
processing-bot opened this issue Feb 23, 2023 · 2 comments
Closed

Feature: Language Server Protocol, Definition support #676

processing-bot opened this issue Feb 23, 2023 · 2 comments

Comments

@processing-bot
Copy link
Collaborator

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

@processing-bot
Copy link
Collaborator Author

Created by: benfry

A PR would be great, thank you!

@processing-bot
Copy link
Collaborator Author

Created by: benfry

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

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant