EmmyLua / IntelliJ-EmmyLua

Lua IDE/Debugger Plugin for IntelliJ IDEA
https://emmylua.github.io
Apache License 2.0
1.74k stars 292 forks source link

Fixed suggestions when providing generic type of `self` as the first parameter #529

Open ChrisUMB opened 1 year ago

ChrisUMB commented 1 year ago

Previously, there was an issue where if you provided a generic to a type, it would not properly suggest functions.

As you can see, if there is no generic, it properly suggests the function. image

However, if there is a generic, it doesn't properly suggest the function. image

This commit fixes that. image

Furthermore, there was an issue where if you provided a generic type to the first parameter of a non-self function, it would not suggest it. It would suggest it if it wasn't a generic. image

This commit also fixes that.

image

Note: I modified the gradle build file because it wouldn't properly build on my setup for some reason.

alek13 commented 2 months ago

@ChrisUMB , is this the same problem?:

With @generic image

Without @generic no error: image

alek13 commented 2 months ago

@ChrisUMB , anyway, can you rebase and solve conflicts, please ?

CppCXY commented 2 months ago

R%8I9}O`ULE5{ %RCY 7QG8 You can use VSCode to get more powerful generic support.