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

Expose workspace folders via a readonly getter #1679

Merged
merged 1 commit into from
Sep 15, 2024

Conversation

aabounegm
Copy link
Member

I could not figure out how to get information about the current workspace roots (important in a multi-root workspace), so I added a getter for it.

If we want to enforce that it is only accessed after ready is resolved, we could have ready resolve to it and remove the getter.

@aabounegm
Copy link
Member Author

Specifically, the reason I needed this is these commits: https://github.com/SnakeskinTpl/language-tools/pull/8/files/7f54af2eaffee9085209975609521fe0db86b9b9..98e2571ba34e1dcbf1ad30412f8752cd5c160a67

If there is a better way to implement multi-root workspace support (with separate config files in each) using existing APIs, please let me know.

Copy link
Member

@msujew msujew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, makes sense to expose the workspace folders on the manager. Thanks 👍

@msujew msujew merged commit 335f9a9 into eclipse-langium:main Sep 15, 2024
4 checks passed
@aabounegm aabounegm deleted the workspace-folders branch September 15, 2024 15:43
@spoenemann spoenemann added this to the v3.3.0 milestone Sep 25, 2024
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 this pull request may close these issues.

3 participants