Sublime Forum

4149 update breaks {} indentation for Java syntax

#1

I have been using Java with LSP for months, and after the update, typing an if statement with curly braces, and then pressing Return, caused the close curly brace not to be indented at all.

I simply reverted back to 4148 and it went back to normal.

Shoot - I think I might need to file a bug rather than mention it here. Happy to do so if someone can tell me how/where to do it? (If it hasn’t already been done…)

0 Likes

#2
0 Likes

#3

The only Java related change between 4148 and 4149 is https://github.com/sublimehq/Packages/pull/3488.

I don’t see how it should be involved in changing indentation behavior.

I’ve tried with following simple dummy. Indentation in if statements seems to work fine.

class Foo () {

	public interface foo();

	public void method() {

		if (true) {
			|
		}
	}
}

Therefore an example code would be appriciated which it fails for.

0 Likes

#4

Sorry for not getting back. Looks like it was fixed in a subsequent update.

0 Likes