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

[FEATURE] Multiple tab support #28

Open
Efratror opened this issue Apr 1, 2022 · 0 comments · May be fixed by #29
Open

[FEATURE] Multiple tab support #28

Efratror opened this issue Apr 1, 2022 · 0 comments · May be fixed by #29

Comments

@Efratror
Copy link

Efratror commented Apr 1, 2022

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.

@Efratror Efratror linked a pull request Apr 1, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant