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

Differentiate UFCS functions from regular fields #752

Closed
ryuukk opened this issue Sep 18, 2023 · 2 comments
Closed

Differentiate UFCS functions from regular fields #752

ryuukk opened this issue Sep 18, 2023 · 2 comments

Comments

@ryuukk
Copy link
Contributor

ryuukk commented Sep 18, 2023

I got confused from a completion for a struct, there was bunch of functions there, i thought they were defined in that struct, but nope it was a global function..

image

Perhaps prefix the name with a symbol? >on_tick or [u] on_tick?

Or have an option to disable it, i personally don't use UFCS, i find it to be code confuser, and i suspect it cause bunch of delays in the completion from large modules (windows one)

@vushu
Copy link
Contributor

vushu commented Sep 18, 2023

You can make a flag for it wrapping this call:

auto ufcsSymbols = getUFCSSymbolsForCursor(first.moduleScope, tokens, cursorPosition);

@WebFreak001
Copy link
Member

UFCS functions are using F instead of f as completion kind

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

3 participants