Create an Source Editor core extension for getting values from .editorconfig
Release notes
Problem to solve
As discussed in #267514 (closed), the behavior of the single file editor doesn't match the Web IDE when it comes to dealing with trailing lines. The Web IDE defaults to adding newline characters at the end of every file, but can be configured by including the .editorconfig
file and defining your desired behavior.
The Single File editor does not respect the .editorconfig
preferences so the behavior will not match. Additionally, the default behavior is different. Where the Web IDE automatically includes the newline, the Single File Editor does not. However, changing the default behavior of the Single File Editor without also implementing a way for users to override that behavior would result in files that could never remove the blank line at the end of the file.
Proposal
I'm not exactly sure how this would work, but the Single File Editor could be configured using the same .editorconfig
values. The goal would be consistent behavior between the Web IDE and SFE.
If this is something that can or should be implemented as part of Editor Lite, we should consider applying the same behavior to the Snippet editor as well.
Notes
We don't need this to be a "core" extension but we would want this effort to be an extension that applies to both the SFE and Web IDE