-
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
Allow empty section string for configuration request #218
Allow empty section string for configuration request #218
Conversation
microsoft/vscode-eslint requests configuration with a section of ''. This change returns the expected settings in that case. https://github.com/microsoft/vscode-eslint/blob/be30e933c56ea6e8e579808d5f7c7b205c8e16cc/server/src/eslintServer.ts#L668
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 think that if item.section
doesn't include ".", VSCode does not return the whole config.settings
but return config built by URI resource.
So would you recommend leaving it as is? I'm struggling to find the code corresponding to |
I'll check VSCode behavior. |
@ms Sorry I haven't been able to start addressing this. |
No rush, Iike you point out in microsoft/language-server-protocol#972 it's not really clear what the client should do, and either way it's easy enough to add an empty string key for now. |
@ms I read some clients implements and spec. |
Reopened, feel free to merge as is or push changes if you'd like |
@ms ty : ) |
microsoft/vscode-eslint requests configuration with a section of ''.
This change returns the expected settings in that case.
https://github.com/microsoft/vscode-eslint/blob/be30e933c56ea6e8e579808d5f7c7b205c8e16cc/server/src/eslintServer.ts#L668