EmmyLua / IntelliJ-EmmyLua

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

lua文件中定义多个类时,补全提示项有问题 #427

Closed HaoWShi closed 3 years ago

HaoWShi commented 3 years ago

Environment(环境)

name version
IDEA version 2020.2.4
EmmyLua version 1.3.5.194-IDEA202
OS Windows 10

What are the steps to reproduce this issue?(重现步骤?)

1.define script.lua

InputChannels = Class("InputChannels")
InputChannels.area = nil;

function InputChannels:Ctor() end

function InputChannels:getChannels() end
function InputChannels:setChannels(channel) end

EBusMsg = Class("EBusMsg")
EBusMsg.msg = nil;

function EBusMsg:Ctor() end

function EBusMsg:getEBus() end
function EBusMsg:setEBus(EBus) end
  1. define test.lua
    function getName(name)
    print(InputChannels.area)
    print(EBusMsg.)
    print(name)
    end

What happens?(出现什么问题?)

当提示EBusMsg补全时,会提供定义在InputChannels中的成员变量和方法 image

What were you expecting to happen?(期望?)

提示EBusMsg补全项是,不应该出现area/getChannels/setChannels

Any logs, error output, etc?(有没有什么log, error输出?)

Any other comments?(其它说明)