-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
fix: cleanup root patterns #2906
fix: cleanup root patterns #2906
Conversation
f8fbbf4
to
afd6441
Compare
@@ -27,7 +24,7 @@ require'lspconfig'.cairo_ls.setup{} | |||
*cairo-language-server is still under active development, some features might not work yet !* | |||
]], | |||
default_config = { | |||
root_dir = [[root_pattern("package.json", "tsconfig.json", "jsconfig.json", ".git")]], | |||
root_dir = [[root_pattern("Scarb.toml", "cairo_project.toml", ".git")]], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
were the "package.json", "tsconfig.json" entries accidental?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume so. The docs didn't match the root_dir
field above so I just updated the two to match whilst I was in there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for driving this topic to the right solution!
Simplify
root_dir
in multiple language server configurations where root patterns needed to be prioritised.util.root_pattern
now prioritises root patterns provided first - see #2885.Closes #2904