Open p-bakker opened 2 years ago
@p-bakker this project is very old and it could have some bugs. I'm moving ec4e to Eclipse Platform (step by step).
I started the PR https://github.com/eclipse-platform/eclipse.platform.text/pull/90 which provide only apply of proprties (without syntax coloration, without validation etc for .edtorconfig). Please be patient :)
K, was hoping though to be able to use it before this eventually gets rolled into Eclipse
I'm sorry I have no time to maintain both projects.
When I open a .ts file from within a subfolder of my project in the Generic Editor (also got WWD installed) and I press tab, I still get a tab character inserted, instead of 4 dots.
I checked "Insert spaces for tabs" in Workspace's "Text Editors" setting, it inserted 2 spaces, when I have "indent_size=2" setting in EditorConfig. That's right when the Workspace configuration is 4 spaces.
One thing I found bad, is that if you don't type Enter after characters that are automatically inserted, the error messages don't go away. For example, if we have the code:
const a=()=>{
return 1;
}
and enter the code:
const b=()=>{
return 2;
}
above it, the "}" is automatically inserted, when we type "{". The final code looks like this:
const b=()=>{
return 2;
}
const a=()=>{
return 1;
}
The Editor displays the message Trim traling whitespace
in line return 2;
, as long as we don't type Enter after the "}".
But let's wait for the PR made by @angelozerr !
The Editor displays the message Trim traling whitespace in line return 2;, as long as we don't type Enter after the "}".
But let's wait for the PR made by @angelozerr !
Thanks for reporting this issue. My PR on Platform text will not takecare of validation like ec4e, it will provide at firts just basic .editorconfig to apply properties like tabs.
Got the following ,editorconfig file in the root of my project:
When I open a .ts file from within a subfolder of my project in the Generic Editor (also got WWD installed) and I press tab, I still get a tab character inserted, instead of 4 dots.
Seems like the settings of the .editorconfig file aren't getting applied, cause what happens when I hit tab in the editor follows the global Eclipse workspace setting instead