Skip to content

symbols table #1515

@Akuli

Description

@Akuli

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions