Skip to content

Do not send signature help inside of callback args on requests #11794

Closed
@RblSb

Description

@RblSb

Probably related to:
https://github.com/HaxeFoundation/haxe/blob/development/src/typing/typerDisplay.ml#L199

class Main {
	static function main() {
		foo(0, (name, age) -> {});

		foo(0, (name, age) -> {
			final f = (a, b, c) -> {}
			f(1, 2, 3); // type this line to see signature for `foo` after `;`
			// or just type here `,` to see same useless signature that blocks your view
		});
	}

	/** Foo **/
	static function foo(
		a:Int,
		?cb:(name:String, age:Int) -> Void,
		?b:Int,
		?c:Int,
	):Void {}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions