Skip to content

Conversation

@ydaveluy
Copy link
Contributor

Solves #1871

Add an optional fileNames entry in the langium configuration.

In VSCode contributions it is also possible to provide a filenamePatterns: https://code.visualstudio.com/api/references/contribution-points#contributes.languages but to add this to Langium it would requires to add a glob library as dependency.

It changes the API of traverseFolder and includeEntry in workspace-manager.ts so maybe for 4.0 ?

Copy link
Contributor

@spoenemann spoenemann left a comment

Choose a reason for hiding this comment

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

Shall we unify the two into filePatterns where an extension is a special case translated to *.ext?

It should be easy to implement by translating the pattern to a regexp: * becomes .* and ? becomes .

Copy link
Contributor

@montymxb montymxb left a comment

Choose a reason for hiding this comment

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

Nice! This looks pretty good so far. Just a handful of comments for a couple small things that would be nice to adjust, and one requested change for how we report errors in the service registry.

Copy link
Contributor

@montymxb montymxb left a comment

Choose a reason for hiding this comment

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

:octocat: approved! Plus thanks for the changes.

@montymxb
Copy link
Contributor

One last note before we pull this in. Per @spoenemann 's comment above, we can still consider a follow-up PR where we unify the two patterns we're now using.

@montymxb montymxb merged commit 68c0fa3 into eclipse-langium:main Mar 31, 2025
4 checks passed
@spoenemann spoenemann added this to the v3.5.0 milestone Apr 5, 2025
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