Skip to content
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

The depth of auto-signature-help #11984

Open
ixxie opened this issue Nov 1, 2024 · 0 comments
Open

The depth of auto-signature-help #11984

ixxie opened this issue Nov 1, 2024 · 0 comments

Comments

@ixxie
Copy link

ixxie commented Nov 1, 2024

I like the auto-signature-help feature, but it currently has a major drawback: it's applied regardless of how deep you are in the function.

Consider the scenario where you pass a large object to the function; this is common in configuration functions, like defineConfig from Vite:
image
As you can imagine, this becomes incredible annoying: the signature help is continuously displayed as you edit the configuration object.

Having auto-signature-help be shallow could resolve it: if the cursor is immediately inside the function signature, you render the help, but if it is deeper, e.g. inside an object nested inside the signature, than it is not rendered.

If this is usecase dependent it could be a configuration option, but I would argue it should be shallow by default.

My be related to #9144 and #5827 but I am not sure how those are scoped.

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