Skip to content

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

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

Closed
RblSb opened this issue Oct 20, 2024 · 0 comments
Closed

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

RblSb opened this issue Oct 20, 2024 · 0 comments

Comments

@RblSb
Copy link
Member

RblSb commented Oct 20, 2024

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 {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant