-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
fix(editorconfig): only warn once on errors #24848
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
Conversation
8a6451a to
7174e48
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
I also do not feel good about supporting off-spec values, particularly this one which is just a no-op (it's equivalent to not setting the property at all. Why??)
I think validating the .editorconfig values is valuable to catch typos/common errors (is it |
Then ideally these diagnostics should be thrown when editing a |
|
I made a PR to LuaLS to drop the off-spec value LuaLS/lua-language-server#2287. |
Interesting idea, I hadn't thought of that but seems reasonable. |
7174e48 to
f3e8942
Compare
|
Done. Improved the typing a bit in typical fashion. |
|
Successfully created backport PR for |
This isn't in the spec, but is used here: https://github.com/LuaLS/lua-language-server/blob/6c934845ad891f2e279ed96ffb0a163994e3729b/.editorconfig#L23 and https://github.com/CppCXY/EmmyLuaCodeStyle/blob/e6f382c58c09e5dca481e55ba125b9fbbbeadc26/lua.template.editorconfig#L23I assume this comes from something like vscode?Ref: #21669
EDIT: changed to warn once instead