Skip to content

[FEATURE] Multiple tab support #28

Open
@Efratror

Description

@Efratror

Current behavior:
Currently the server only compiles the currently opened file on a file change event. Scripts that are divided in multiple files compile with missing symbol errors ect.

Wanted behavior:
It would be nice to be able to separate a sketch in to multiple files/tabs to simplify coding a bit.

Suggested implementation:
This is based on how the processing pde processes multiple files/tabs

  • Get the contents of all files in the directory and append them together to create one big unprocessed string
  • Keep track of which line in the unprocessed string corresponds to which line in a file/tab in a map
  • Use the map to send the correct filename and line number back to vs-code

As an addition the contents should be updated on every file or workspace change. Doing a file read won't work when the file isn't saved yet.

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