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

symbols table #1515

Open
Akuli opened this issue Jun 23, 2024 · 0 comments
Open

symbols table #1515

Akuli opened this issue Jun 23, 2024 · 0 comments

Comments

@Akuli
Copy link
Owner

Akuli commented Jun 23, 2024

Was thinking of maybe adding a symbols table to this this, something that looks like:

(06-22-2024) 14:26:55

Let me know what you think, i've already got a class that i wrote for another project that'd work wonderfully for just this thing. I'd only need to modify it to work with the other languages as it only works for python at the moment.

Originally posted by @celltoolz in #1512 (comment)

@celltoolz Feel free to contribute a symbols table if you want :)

I think you have two options for getting the symbols in a language-independent way:

  • Langserver. Will work for any language with langserver configured, but it is a lot of work to implement, and will probably require changes to sansio-lsp-client.
  • Parsing text. This is probably what your existing class does, but it will require more configuration for each programming language in Porcupine's filetypes.toml.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant